Analyze Results Download Mocked

Framework: BDD Generated: 2026-06-24 Model: claude-sonnet-4-6
Test Name: Filename reflects role and source file (no add-ons) -- Product Owner, auth.feature, , Documentation, shiftdoc-po-auth.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-5
Description: When a Product Owner uploads a file and runs analysis with no add-ons selected, the downloaded Markdown file is named to reflect their role and the source filename.
This Test Verifies:
Verification StepWhat It Checks
Panel heading shown as Documentation Analysis results are displayed under the correct section heading when no add-ons are used
Downloaded file is named shiftdoc-po-auth.md The filename encodes the user role and source file name correctly when no add-ons are selected
Test Name: Filename reflects role and source file (no add-ons) -- QA Manager, auth.feature, , Documentation, shiftdoc-qam-auth.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-5
Description: When a QA Manager uploads a file and runs analysis with no add-ons selected, the downloaded Markdown file is named to reflect their role and the source filename.
This Test Verifies:
Verification StepWhat It Checks
Panel heading shown as Documentation Analysis results are displayed under the correct section heading when no add-ons are used
Downloaded file is named shiftdoc-qam-auth.md The filename correctly uses the QA Manager role shortcode alongside the source file name
Test Name: Filename reflects role and source file (no add-ons) -- Product Owner, checkout_flow.feature, , Documentation, shiftdoc-po-checkout_flow.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-5
Description: When a Product Owner uploads a different source file and runs analysis with no add-ons, the downloaded filename correctly reflects both the role and the new source filename.
This Test Verifies:
Verification StepWhat It Checks
Panel heading shown as Documentation Analysis results are displayed under the correct section heading for this source file
Downloaded file is named shiftdoc-po-checkout_flow.md The filename adapts to the uploaded source file name, confirming the naming convention works across different files
Test Name: Filename reflects role and source file (no add-ons) -- Product Owner, login.spec.ts, , Documentation, shiftdoc-po-login.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-5
Description: When a Product Owner uploads a non-Gherkin test file (.spec.ts) and runs analysis with no add-ons, the downloaded filename uses only the base name without the original extension.
This Test Verifies:
Verification StepWhat It Checks
Panel heading shown as Documentation Analysis results are displayed correctly for a non-.feature source file
Downloaded file is named shiftdoc-po-login.md The filename strips the original file extension and uses only the base name, regardless of the source file type
Test Name: Filename appends add-on short codes -- Product Owner, auth.feature, Technical Review, Documentation and Analysis, shiftdoc-po-auth+tr.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-6
Description: When a Product Owner selects a single add-on alongside their analysis, the downloaded filename appends the add-on's short code to reflect the enriched output.
This Test Verifies:
Verification StepWhat It Checks
Panel heading shown as Documentation and Analysis The results panel updates its heading to reflect that add-on content is included
Downloaded file is named shiftdoc-po-auth+tr.md A single add-on short code is correctly appended to the filename
Test Name: Filename appends add-on short codes -- QA Manager, auth.feature, Technical Review, Gap Analysis, Risk Assessment, Documentation and Analysis, shiftdoc-qam-auth+tr+gap+risk.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-6
Description: When a QA Manager selects three add-ons, the downloaded filename includes all three short codes appended in order, confirming multi-add-on naming works correctly.
This Test Verifies:
Verification StepWhat It Checks
Panel heading shown as Documentation and Analysis The results panel reflects that multiple add-ons were included in the analysis
Downloaded file is named shiftdoc-qam-auth+tr+gap+risk.md All three add-on short codes are appended to the filename in the correct order
Test Name: Filename appends add-on short codes -- QA Manager, auth.feature, Technical Review, Gap Analysis, Annotation Summary, Risk Assessment, Recommendations, Documentation and Analysis, shiftdoc-qam-auth+tr+gap+ann+risk+rec.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-6
Description: When a QA Manager selects five add-ons, the downloaded filename correctly includes all five short codes, verifying that the naming convention scales to the maximum number of add-ons.
This Test Verifies:
Verification StepWhat It Checks
Panel heading shown as Documentation and Analysis The results panel correctly reflects a fully enriched analysis with five add-ons
Downloaded file is named shiftdoc-qam-auth+tr+gap+ann+risk+rec.md All five add-on short codes are correctly appended to the filename without omission or reordering
Test Name: Pasted text with no filename falls back to date-time
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-7
Description: When a user pastes test content directly instead of uploading a file, the downloaded filename falls back to a date-time stamp since no source filename is available.
This Test Verifies:
Verification StepWhat It Checks
Documentation shown in output panel Analysis completes successfully when content is pasted rather than uploaded
Downloaded file matches date-time pattern shiftdoc-po-YYYYMMDD-HHmmss.md The filename uses a date-time fallback when no source file name exists
Test Name: Pasted text with add-ons falls back to date-time with add-on suffix
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-7
Description: When a user pastes test content with add-ons selected, the downloaded filename combines the date-time fallback with the appropriate add-on short codes.
This Test Verifies:
Verification StepWhat It Checks
Documentation and analysis shown in output panel Analysis with add-ons completes successfully when content is pasted rather than uploaded
Downloaded file matches date-time pattern with +tr+gap suffix Add-on short codes are correctly appended to the date-time fallback filename
Test Name: Download format extension -- Markdown, shiftdoc-po-auth.md
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-8
Description: When a user downloads analysis results as Markdown, the file is saved with a .md extension.
This Test Verifies:
Verification StepWhat It Checks
Downloaded file is named shiftdoc-po-auth.md The Markdown download option produces a file with the correct .md extension
Test Name: Download format extension -- HTML, shiftdoc-po-auth.html
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-8
Description: When a user downloads analysis results as HTML, the file is saved with a .html extension.
This Test Verifies:
Verification StepWhat It Checks
Downloaded file is named shiftdoc-po-auth.html The HTML download option produces a file with the correct .html extension
Test Name: Download format extension -- JSON, shiftdoc-po-auth.json
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability: @SHIFT-8
Description: When a user downloads analysis results as JSON, the file is saved with a .json extension.
This Test Verifies:
Verification StepWhat It Checks
Downloaded file is named shiftdoc-po-auth.json The JSON download option produces a file with the correct .json extension