Test Name: Multi-file toggle is visible in the input panel
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Description: Verifies that the multi-file toggle control is present on the Analyze page for all users.
This Test Verifies:
| Verification Step | What It Checks |
| Toggle visibility |
The multi-file toggle appears in the input area of the Analyze page |
Test Name: Multi-file toggle shows a lock icon when not logged in
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Description: Verifies that guest users see a lock icon on the multi-file toggle, signaling the feature requires sign-in.
This Test Verifies:
| Verification Step | What It Checks |
| Lock icon for unauthenticated users |
A lock icon is displayed on the multi-file toggle when the user is not signed in |
Test Name: Clicking the multi-file toggle when not logged in shows a sign-in prompt
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Description: Verifies that guest users who attempt to enable multi-file mode are shown a sign-in prompt and the feature remains disabled.
This Test Verifies:
| Verification Step | What It Checks |
| Warning toast on toggle click |
A 'Sign in to use multi-file mode.' message appears when an unauthenticated user clicks the toggle |
| Multi-file mode stays off |
Multi-file mode is not activated after the click attempt by a guest user |
Test Name: Hovering the lock icon shows a tooltip
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Description: Verifies that hovering over the lock icon on the multi-file toggle displays a helpful tooltip directing users to sign in.
This Test Verifies:
| Verification Step | What It Checks |
| Tooltip on lock icon hover |
A 'Sign in to unlock' tooltip becomes visible when a guest user hovers over the lock icon |
Test Name: Clicking the lock icon navigates to the login page
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Description: Verifies that guest users are taken to the login page when they click the lock icon on the multi-file toggle.
This Test Verifies:
| Verification Step | What It Checks |
| Navigation to login page |
Clicking the lock icon redirects an unauthenticated user to the login page |
Test Name: Open lock icon is shown when logged in and is not a link
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Description: Verifies that signed-in users see an open lock icon on the multi-file toggle and that it does not navigate away from the page.
This Test Verifies:
| Verification Step | What It Checks |
| Open lock icon for authenticated users |
The multi-file toggle shows an open lock icon when the user is signed in |
| Open lock icon is not clickable as a link |
The open lock icon does not function as a navigation link for authenticated users |
Test Name: Multi-file mode is disabled and queue is cleared when the user logs out
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Description: Verifies that when a signed-in user logs out, multi-file mode is automatically turned off and any queued files are removed.
This Test Verifies:
| Verification Step | What It Checks |
| Multi-file mode disabled after logout |
Multi-file mode is no longer active after the user signs out and returns to the Analyze page |
| File queue cleared after logout |
Any files previously added to the multi-file queue are no longer visible after logout |
| Lock icon restored after logout |
The multi-file toggle reverts to showing a lock icon once the user has signed out |
Test Name: Multi-file toggle is visible in the input panel
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Journey: A user visiting the Analyze page can see the multi-file toggle in the input panel.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Multi-file toggle is visible in the input panel
|
Analysis API and multi-file API are mocked; user is on the Analyze page
|
No action taken
|
The multi-file toggle is visible in the input panel
|
Positive
|
Test Name: Multi-file toggle shows a lock icon when not logged in
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Journey: An unauthenticated user sees a lock icon on the multi-file toggle, indicating the feature requires sign-in.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Multi-file toggle shows a lock icon when not logged in
|
User is not logged in
|
No action taken
|
The multi-file toggle displays a lock icon
|
Negative
|
Test Name: Clicking the multi-file toggle when not logged in shows a sign-in prompt
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Journey: An unauthenticated user who clicks the multi-file toggle receives a warning toast and multi-file mode remains disabled.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Clicking the multi-file toggle when not logged in shows a sign-in prompt
|
User is not logged in
|
User clicks the multi-file toggle
|
A warning toast 'Sign in to use multi-file mode.' is shown and multi-file mode is not enabled
|
Negative
|
Test Name: Hovering the lock icon shows a tooltip
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Journey: An unauthenticated user hovering over the lock icon on the multi-file toggle sees a tooltip prompting them to sign in.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Hovering the lock icon shows a tooltip
|
User is not logged in
|
User hovers over the lock icon on the multi-file toggle
|
A tooltip reading 'Sign in to unlock' is visible
|
Positive
|
Test Name: Clicking the lock icon navigates to the login page
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Journey: An unauthenticated user clicking the lock icon is redirected to the login page.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Clicking the lock icon navigates to the login page
|
User is not logged in
|
User clicks the lock icon on the multi-file toggle
|
The user is on the login page
|
Positive
|
Test Name: Open lock icon is shown when logged in and is not a link
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Journey: An authenticated user sees an open lock icon on the multi-file toggle that is purely decorative and not a navigation link.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Open lock icon is shown when logged in and is not a link
|
User is logged in and on the Analyze page
|
No action taken
|
The multi-file toggle shows an open lock icon and that icon is not a link
|
Positive
|
Test Name: Multi-file mode is disabled and queue is cleared when the user logs out
Feature: Multi-file mode — toggle and lock behavior
Traceability:
@SHIFT-49
Execution:
Tag: @requires_login
Journey: A logged-in user who enables multi-file mode and adds a file to the queue finds both features reset and the toggle locked after logging out.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Multi-file mode is disabled and queue is cleared when the user logs out
|
APIs are mocked and user is on the Analyze page (via Background)
|
User enables multi-file mode, adds a fixture file to the queue, logs out, and returns to the Analyze page
|
Multi-file mode is not enabled, the file queue is not visible, and the toggle shows a lock icon
|
Edge Case
|