Tests: 4. Submit Desires Functionality. Multiple User approcah needs to be fixed.

This commit is contained in:
aodulov
2025-10-29 17:31:16 +02:00
parent 482d36fc8a
commit 13e150d7d7
7 changed files with 440 additions and 0 deletions

View File

@@ -91,3 +91,87 @@ The Unisono application facilitates harmonizing desires among participants throu
**Expected Results:**
- A success message (e.g., "Link copied to clipboard!") is displayed.
- The session URL is copied to the clipboard.
### 4. Submit Desires Functionality
#### 4.1 Single User - Submit All Desire Categories
**Steps:**
1. Ensure a session is created and the user is on the active session page.
2. Enter items into "What You Want" textbox (e.g., "Item A\nItem B").
3. Enter items into "Afraid to Ask (Private)" textbox (e.g., "Secret Item").
4. Enter items into "What You Accept" textbox (e.g., "Acceptable Item").
5. Enter items into "What You Do Not Want" textbox (e.g., "Unwanted Item").
6. Click the "Submit Desires" button.
**Expected Results:**
- A success message indicating desires have been submitted is displayed.
- The input fields are cleared or disabled.
- The page transitions to a "Waiting for other participants" or similar state if `Expected Responses` > 1.
#### 4.2 Multi-User - All Participants Submit Desires
**Steps:**
1. Create a session with `Number of Expected Responses` set to 2.
2. Copy the session link.
3. **User 1:**
a. Enter desires into all categories.
b. Click "Submit Desires".
4. **User 2 (in a new browser context/page):**
a. Navigate to the copied session link.
b. Enter desires into all categories.
c. Click "Submit Desires".
**Expected Results:**
- After User 1 submits, their page shows a "Waiting for other participants" message.
- After User 2 submits, both User 1 and User 2's pages transition to the "Results Display" page.
- The "Results Display" page shows a summary of all submitted desires, categorized and potentially aggregated.
- Private desires are not visible to other users.
#### 4.3 Single User - Submit Only "What You Want"
**Steps:**
1. Ensure a session is created and the user is on the active session page.
2. Enter items into "What You Want" textbox (e.g., "Only Want This").
3. Leave other desire fields empty.
4. Click the "Submit Desires" button.
**Expected Results:**
- Desires are submitted successfully.
- The page transitions to a "Waiting for other participants" or similar state.
#### 4.4 Multi-User - Different Desire Submissions
**Steps:**
1. Create a session with `Number of Expected Responses` set to 2.
2. Copy the session link.
3. **User 1:**
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):**
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".
**Expected Results:**
- Both users' pages transition to the "Results Display" page.
- The "Results Display" page accurately reflects the combined desires from both users, with correct categorization.
### 5. Results Display Functionality
#### 5.1 Verify Results Display After All Submissions
**Steps:**
1. Follow steps for "4.2 Multi-User - All Participants Submit Desires" to reach the results page.
**Expected Results:**
- The "Results Display" page is visible.
- All submitted desires (excluding private ones) are displayed in their respective categories (Want, Accept, Do Not Want).
- The count of participants who submitted desires matches the `Number of Expected Responses`.
- The session topic and details are still visible.
#### 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.
**Expected Results:**
- User 1's private desire is only visible to User 1 (if applicable, or not displayed at all on the results page).
- User 2's results page does not show User 1's private desire.