Testing Layer

Framework: BDD Generated: 2026-06-23 Model: claude-sonnet-4-6
Test Name: Testing layer selector renders on the Analyze page
Feature: Testing Layer Selection
Traceability: @SHIFT-9
Description: Verifies that the testing layer selector is visible to users when they arrive on the Analyze page.
This Test Verifies:
Verification StepWhat It Checks
Then the testing layer selector is visible The testing layer selector is present and visible on the Analyze page
Test Name: Selecting a layer shows it in the dropdown summary
Feature: Testing Layer Selection
Traceability: @SHIFT-9
Description: Verifies that when a user selects a testing layer, the selection is reflected in the dropdown summary display.
This Test Verifies:
Verification StepWhat It Checks
When I select testing layer "Unit" User can select a predefined testing layer
Then the testing layer selector shows "Unit" The selected layer name appears in the dropdown summary
Test Name: Selected testing layers appear in the analysis metadata
Feature: Testing Layer Selection
Traceability: @SHIFT-9@SHIFT-10
Description: Verifies that a testing layer selected by the user is recorded in the JSON output metadata produced by the analysis.
This Test Verifies:
Verification StepWhat It Checks
When I select testing layer "Unit" User selects a testing layer before running analysis
And the JSON output has no unresolved values The downloaded JSON output is complete with no missing or placeholder values
And the JSON shiftdoc metadata includes testing layer "unit" The selected testing layer is correctly captured in the analysis output metadata
Test Name: Entering a custom layer via Other shows it in the dropdown summary
Feature: Testing Layer Selection
Traceability: @SHIFT-9@SHIFT-11
Description: Verifies that a custom testing layer name typed by the user appears in the dropdown summary.
This Test Verifies:
Verification StepWhat It Checks
When I enter custom testing layer "smoke-only" User can type a custom testing layer name using the Other option
Then the testing layer selector shows "smoke-only" The custom layer name is displayed in the dropdown summary
Test Name: Typing more than 50 characters in Other shows an error
Feature: Testing Layer Selection
Traceability: @SHIFT-13
Description: Verifies that the application shows an error when a user types a custom testing layer name exceeding the 50-character limit.
This Test Verifies:
Verification StepWhat It Checks
When I type a 51-character string into the Other layer input User enters a custom layer name that exceeds the allowed character limit
Then the testing layer shows an over-limit error An error message is displayed indicating the input is too long
Test Name: Selecting 4 or more layers falls back silently and analysis still runs
Feature: Testing Layer Selection
Traceability: @SHIFT-12
Description: Verifies that selecting four or more testing layers does not break the analysis and output is still produced without disrupting the user experience.
This Test Verifies:
Verification StepWhat It Checks
When I select testing layers Unit, Integration, API / Contract, and UI / Component User selects four or more testing layers simultaneously
Then I see documentation in the output panel Analysis completes successfully and results are shown despite the high number of layers selected
Test Name: A custom layer entered via Other appears in the analysis metadata
Feature: Testing Layer Selection
Traceability: @SHIFT-10@SHIFT-11
Description: Verifies that a custom testing layer name entered by the user is correctly included in the JSON analysis output metadata.
This Test Verifies:
Verification StepWhat It Checks
And I enter custom testing layer "smoke-layer" User provides a custom testing layer name before running analysis
And the JSON output has no unresolved values The downloaded JSON output is complete with no missing or placeholder values
And the JSON shiftdoc metadata includes testing layer "smoke-layer" The custom testing layer name is correctly saved in the analysis output metadata
Test Name: Error below trigger persists after dropdown is closed with 51+ char Other text
Feature: Testing Layer Selection
Traceability: @SHIFT-13
Description: Verifies that the character-limit error for a custom testing layer remains visible even after the user closes the dropdown.
This Test Verifies:
Verification StepWhat It Checks
When I type a 51-character string into the Other layer input User enters a custom layer name exceeding the character limit
And I close the testing layer dropdown User closes the dropdown after triggering the error
Then the collapsed layer error is visible below the trigger The error message persists and remains visible in the collapsed state
Test Name: Analyze button is disabled while Other text exceeds 50 characters
Feature: Testing Layer Selection
Traceability: @SHIFT-13
Description: Verifies that users cannot run analysis when a custom testing layer name exceeds the 50-character limit, preventing invalid submissions.
This Test Verifies:
Verification StepWhat It Checks
And I type a 51-character string into the Other layer input User enters an over-limit custom layer name with a file already uploaded
Then the Analyze button is disabled The Analyze button is blocked from submission while the input error exists
Test Name: Analyze button re-enables once the Other text error is fixed
Feature: Testing Layer Selection
Traceability: @SHIFT-13
Description: Verifies that the Analyze button becomes available again once the user corrects a custom testing layer name that was over the character limit.
This Test Verifies:
Verification StepWhat It Checks
And I type a 51-character string into the Other layer input User enters an over-limit custom layer name, disabling the Analyze button
And I delete one character from the Other layer input User corrects the input by reducing it to within the allowed limit
Then the Analyze button is enabled The Analyze button becomes active again once the error is resolved