Multi File Validation

Framework: BDD Generated: 2026-06-23 Model: claude-sonnet-4-6
Test Name: Adding more than the maximum files shows a warning toast and rejects the file
Feature: Multi-file mode — file limits and validation
Traceability: @SHIFT-50
Description: Verifies that attempting to add a file beyond the maximum queue limit is blocked and the user is notified with a warning.
This Test Verifies:
Verification StepWhat It Checks
Fill queue to maximum and attempt to add another file The system prevents adding files beyond the maximum allowed limit
Warning toast appears The user receives a visible notification explaining the file limit has been reached
Queue file count does not increase The rejected file is not added to the queue
Test Name: Adding two files when one slot remains toasts and accepts only the first
Feature: Multi-file mode — file limits and validation
Traceability: @SHIFT-50
Description: Verifies that when only one queue slot remains and two files are added simultaneously, the system accepts the first file, rejects the second, and notifies the user.
This Test Verifies:
Verification StepWhat It Checks
Fill queue to 19 files and attempt to add 2 at once The system handles partial acceptance when the batch addition would exceed the limit
Warning toast appears The user is informed that the file limit was hit during the batch upload
Queue shows 20 files Exactly one of the two files was accepted, filling the queue to its maximum
Test Name: A file with no test cases shows an error badge at selection time
Feature: Multi-file mode — file limits and validation
Traceability: @SHIFT-50
Description: Verifies that a BDD file containing no test cases is immediately flagged with an error badge and a descriptive message when added to the queue.
This Test Verifies:
Verification StepWhat It Checks
Add a BDD fixture file with no scenarios The system detects that the file contains no test cases at the point of selection
File row shows an error badge The user can clearly see which file in the queue is invalid
Error message mentions 'No test cases found' The user receives a clear explanation of why the file is invalid
Test Name: A file in the wrong format shows a warning badge at selection time
Feature: Multi-file mode — file limits and validation
Traceability: @SHIFT-50
Description: Verifies that adding a file whose format does not match the selected analysis format results in a warning badge on that file's queue entry.
This Test Verifies:
Verification StepWhat It Checks
Select BDD format and add a Playwright spec file The system detects a mismatch between the selected analysis format and the file's actual format
File row shows a warning badge The user is alerted that the file may not be compatible with the chosen analysis format
Test Name: A file that exceeds the size limit shows an error badge at selection time
Feature: Multi-file mode — file limits and validation
Traceability: @SHIFT-50
Description: Verifies that a file exceeding the allowed size limit is immediately flagged with an error badge and a descriptive message when added to the queue.
This Test Verifies:
Verification StepWhat It Checks
Add an oversized file to the queue The system detects that the file exceeds the permitted size at the point of selection
File row shows an error badge The user can clearly see which file in the queue is too large
Error message mentions 'File too large' The user receives a clear explanation of why the file was rejected
Test Name: A valid file shows an ok badge
Feature: Multi-file mode — file limits and validation
Traceability: @SHIFT-50
Description: Verifies that a well-formed BDD file matching the selected analysis format is accepted and shown with a positive status badge in the queue.
This Test Verifies:
Verification StepWhat It Checks
Select BDD format and add a valid BDD fixture file The system correctly identifies the file as valid for the chosen analysis format
File row shows an ok badge The user receives clear confirmation that the file is ready for analysis