E2e Tests updated
This commit is contained in:
@@ -6,6 +6,8 @@ The Unisono application facilitates harmonizing desires among participants throu
|
||||
|
||||
## Test Scenarios
|
||||
|
||||
*Note on Multi-User Scenarios*: For tests involving multiple users, each user should be simulated in an isolated browser context (e.g., using `browser.newContext()` in Playwright) to ensure independent session states.
|
||||
|
||||
### 1. Authentication
|
||||
|
||||
#### 1.1 Successful Login with Valid Passphrase
|
||||
@@ -112,13 +114,14 @@ The Unisono application facilitates harmonizing desires among participants throu
|
||||
**Steps:**
|
||||
1. Create a session with `Number of Expected Responses` set to 2.
|
||||
2. Copy the session link.
|
||||
3. **User 1:**
|
||||
3. **User 1 (in the initial browser context):**
|
||||
a. Enter desires into all categories.
|
||||
b. Click "Submit Desires".
|
||||
4. **User 2 (in a new browser context/page):**
|
||||
4. **User 2 (in a new browser context, e.g., using `browser.newContext()` in Playwright):**
|
||||
a. Navigate to the copied session link.
|
||||
b. Enter desires into all categories.
|
||||
c. Click "Submit Desires".
|
||||
b. Log in with the valid `AUTH_PASSPHRASE`.
|
||||
c. Enter desires into all categories.
|
||||
d. Click "Submit Desires".
|
||||
|
||||
**Expected Results:**
|
||||
- After User 1 submits, their page shows a "Waiting for other participants" message.
|
||||
@@ -141,15 +144,16 @@ The Unisono application facilitates harmonizing desires among participants throu
|
||||
**Steps:**
|
||||
1. Create a session with `Number of Expected Responses` set to 2.
|
||||
2. Copy the session link.
|
||||
3. **User 1:**
|
||||
3. **User 1 (in the initial browser context):**
|
||||
a. Enter items into "What You Want" (e.g., "User1 Want A").
|
||||
b. Enter items into "What You Do Not Want" (e.g., "User1 Not Want B").
|
||||
c. Click "Submit Desires".
|
||||
4. **User 2 (in a new browser context/page):**
|
||||
4. **User 2 (in a new browser context, e.g., using `browser.newContext()` in Playwright):**
|
||||
a. Navigate to the copied session link.
|
||||
b. Enter items into "What You Want" (e.g., "User2 Want C").
|
||||
c. Enter items into "What You Accept" (e.g., "User2 Accept D").
|
||||
d. Click "Submit Desires".
|
||||
b. Log in with the valid `AUTH_PASSPHRASE`.
|
||||
c. Enter items into "What You Want" (e.g., "User2 Want C").
|
||||
d. Enter items into "What You Accept" (e.g., "User2 Accept D").
|
||||
e. Click "Submit Desires".
|
||||
|
||||
**Expected Results:**
|
||||
- Both users' pages transition to the "Results Display" page.
|
||||
@@ -170,7 +174,7 @@ The Unisono application facilitates harmonizing desires among participants throu
|
||||
#### 5.2 Verify Private Desires are Not Shared
|
||||
**Steps:**
|
||||
1. Follow steps for "4.2 Multi-User - All Participants Submit Desires", ensuring User 1 submits a "Afraid to Ask (Private)" item.
|
||||
2. On User 2's results page, verify that User 1's private desire is *not* displayed.
|
||||
2. On User 2's results page (in its separate browser context, after logging in with `AUTH_PASSPHRASE`), verify that User 1's private desire is *not* displayed.
|
||||
|
||||
**Expected Results:**
|
||||
- User 1's private desire is only visible to User 1 (if applicable, or not displayed at all on the results page).
|
||||
|
||||
Reference in New Issue
Block a user