Analyze File Validation

Framework: BDD Generated: 2026-06-23 Model: claude-sonnet-4-6
Test Name: Uploading a test case file with no test cases shows an error toast
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: Uploading a BDD file that contains no test cases blocks the user with an error and leaves the input empty.
This Test Verifies:
Verification StepWhat It Checks
Upload empty BDD file An error notification appears when the uploaded file contains no test cases
Test case box is empty No content is loaded into the input area when the file has no usable test cases
Test Name: Uploading a test case file in the wrong format shows a warning toast with suggestion -- bdd, robot_single_sample.robot, doesn't look like a BDD / Gherkin file, Robot Framework
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: When a user uploads a file that doesn't match the selected format, a warning is shown with a suggestion of the correct format, while still loading the file content.
This Test Verifies:
Verification StepWhat It Checks
Warning toast appears with mismatch phrase User is notified that the uploaded file doesn't match the chosen format (BDD)
Toast includes format suggestion The warning recommends the correct format (Robot Framework) based on the file content
Test case box is populated Despite the format mismatch, the file content is still loaded so the user can proceed
Test Name: Uploading a test case file in the wrong format shows a warning toast with suggestion -- robot, playwright_single_sample.spec.ts, doesn't look like a Robot Framework, Playwright
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: When a user uploads a file that doesn't match the selected format, a warning is shown with a suggestion of the correct format, while still loading the file content.
This Test Verifies:
Verification StepWhat It Checks
Warning toast appears with mismatch phrase User is notified that the uploaded file doesn't match the chosen format (Robot Framework)
Toast includes format suggestion The warning recommends the correct format (Playwright) based on the file content
Test case box is populated Despite the format mismatch, the file content is still loaded so the user can proceed
Test Name: Uploading a test case file in the wrong format shows a warning toast with suggestion -- playwright, bdd_sample.feature, doesn't look like a Playwright file, BDD / Gherkin
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: When a user uploads a file that doesn't match the selected format, a warning is shown with a suggestion of the correct format, while still loading the file content.
This Test Verifies:
Verification StepWhat It Checks
Warning toast appears with mismatch phrase User is notified that the uploaded file doesn't match the chosen format (Playwright)
Toast includes format suggestion The warning recommends the correct format (BDD / Gherkin) based on the file content
Test case box is populated Despite the format mismatch, the file content is still loaded so the user can proceed
Test Name: Uploading a test case file in the wrong format shows a warning toast with suggestion -- cypress, bdd_sample.feature, doesn't look like a Cypress file, BDD / Gherkin
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: When a user uploads a file that doesn't match the selected format, a warning is shown with a suggestion of the correct format, while still loading the file content.
This Test Verifies:
Verification StepWhat It Checks
Warning toast appears with mismatch phrase User is notified that the uploaded file doesn't match the chosen format (Cypress)
Toast includes format suggestion The warning recommends the correct format (BDD / Gherkin) based on the file content
Test case box is populated Despite the format mismatch, the file content is still loaded so the user can proceed
Test Name: Uploading a test case file in the wrong format shows a warning toast with suggestion -- swift, playwright_single_sample.spec.ts, doesn't look like a Swift / XCTest, Playwright
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: When a user uploads a file that doesn't match the selected format, a warning is shown with a suggestion of the correct format, while still loading the file content.
This Test Verifies:
Verification StepWhat It Checks
Warning toast appears with mismatch phrase User is notified that the uploaded file doesn't match the chosen format (Swift / XCTest)
Toast includes format suggestion The warning recommends the correct format (Playwright) based on the file content
Test case box is populated Despite the format mismatch, the file content is still loaded so the user can proceed
Test Name: Uploading a test case file in the wrong format shows a warning toast with suggestion -- espresso, bdd_sample.feature, doesn't look like an Espresso, BDD / Gherkin
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: When a user uploads a file that doesn't match the selected format, a warning is shown with a suggestion of the correct format, while still loading the file content.
This Test Verifies:
Verification StepWhat It Checks
Warning toast appears with mismatch phrase User is notified that the uploaded file doesn't match the chosen format (Espresso)
Toast includes format suggestion The warning recommends the correct format (BDD / Gherkin) based on the file content
Test case box is populated Despite the format mismatch, the file content is still loaded so the user can proceed
Test Name: Uploading a valid test case file shows no toast
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: Uploading a file that matches the selected format loads the content silently with no warnings or errors.
This Test Verifies:
Verification StepWhat It Checks
No toast is displayed A correctly matched file upload does not trigger any warning or error notifications
Test case box is populated The valid file content is successfully loaded into the input area
Test Name: Pasting content that exceeds the character limit shows an error and does not load the box
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-35
Description: Pasting content that is too long is blocked with a clear error message, preventing oversized input from being submitted.
This Test Verifies:
Verification StepWhat It Checks
Paste error shown with 'too long' message Users receive a clear error when their pasted content exceeds the allowed character limit
Test case box is empty Oversized content is rejected and not loaded into the input area
Test Name: Pasting valid matching content shows no toast
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-34@SHIFT-35
Description: Pasting content that matches the selected format and is within size limits loads cleanly with no warnings or errors.
This Test Verifies:
Verification StepWhat It Checks
No toast is displayed Valid pasted content does not trigger any warning or error notifications
Test case box is populated The pasted content is successfully loaded into the input area
Test Name: Warning toast dismisses and content remains loaded
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-33
Description: After dismissing a format mismatch warning, the uploaded content remains available so the user can continue working.
This Test Verifies:
Verification StepWhat It Checks
Warning toast appears on mismatched upload A format mismatch triggers a warning notification
Toast is dismissed The user can manually close the warning notification
Test case box is still populated Dismissing the warning does not clear the loaded content — the user's work is preserved
Test Name: Dropping multiple test case files in single-file mode shows a dismissible warning
Feature: Test case file validation on the Analyze page
Traceability: @SHIFT-48
Description: Dropping multiple files when the page is in single-file mode shows a helpful warning guiding the user to switch modes, and the warning can be dismissed.
This Test Verifies:
Verification StepWhat It Checks
Warning message is visible with multi-file guidance Users are clearly informed they need to switch to multi-file mode to upload more than one file at once
Dismiss button is visible on the warning The warning provides a way for users to close it manually
Test case box is empty No content is loaded when multiple files are dropped in single-file mode
Warning message is no longer visible after dismissal Clicking the dismiss button successfully removes the warning from view