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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What 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 Step | What It Checks |
| Downloaded file is named shiftdoc-po-auth.json |
The JSON download option produces a file with the correct .json extension |
Test Name: Filename reflects role and source file (no add-ons)
Feature: Download Analysis Results - Filename and Format (Mocked)
Type: Scenario Outline
Traceability:
@SHIFT-5
Journey: A user selects a role, uploads a source file without any add-ons, submits the analysis, and verifies that the downloaded Markdown file is named using the role shortcode and source filename stem.
Examples
| Role |
Source |
Add Ons |
Panel Heading |
Expected |
| Product Owner |
auth.feature |
|
Documentation |
shiftdoc-po-auth.md |
| QA Manager |
auth.feature |
|
Documentation |
shiftdoc-qam-auth.md |
| Product Owner |
checkout_flow.feature |
|
Documentation |
shiftdoc-po-checkout_flow.md |
| Product Owner |
login.spec.ts |
|
Documentation |
shiftdoc-po-login.md |
Test Name: Filename appends add-on short codes
Feature: Download Analysis Results - Filename and Format (Mocked)
Type: Scenario Outline
Traceability:
@SHIFT-6
Journey: A user selects a role, chooses one or more add-ons, uploads a source file, submits the analysis, and verifies that the downloaded filename encodes each selected add-on as an ordered short code suffix.
Examples
| Role |
Source |
Add Ons |
Panel Heading |
Expected |
| Product Owner |
auth.feature |
Technical Review |
Documentation and Analysis |
shiftdoc-po-auth+tr.md |
| QA Manager |
auth.feature |
Technical Review, Gap Analysis, Risk Assessment |
Documentation and Analysis |
shiftdoc-qam-auth+tr+gap+risk.md |
| 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 |
Test Name: Pasted text with no filename falls back to date-time
Feature: Download Analysis Results - Filename and Format (Mocked)
Traceability:
@SHIFT-7
Journey: A user pastes BDD content directly (no file upload), submits the analysis, and verifies the downloaded Markdown filename falls back to a date-time stamp pattern since no source filename is available.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Pasted text with no filename falls back to date-time
|
Analyze page with mocked API, Product Owner role, no file uploaded — content pasted instead
|
User submits analysis and clicks Download Markdown
|
Downloaded filename matches regex shiftdoc-po-\d{8}-\d{6}\.md
|
Edge Case
|
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
Journey: A user pastes BDD content with add-ons selected, submits the analysis, and verifies the downloaded Markdown filename combines the date-time fallback with the encoded add-on short codes.
| Scenario |
Given Context |
When Action |
Then Assertion |
Gherkin Type |
|
Pasted text with add-ons falls back to date-time with add-on suffix
|
Analyze page with mocked API, Product Owner role, Technical Review and Gap Analysis add-ons selected, content pasted with no file upload
|
User submits analysis and clicks Download Markdown
|
Downloaded filename matches regex shiftdoc-po-\d{8}-\d{6}\+tr\+gap\.md
|
Edge Case
|
Test Name: Download format extension
Feature: Download Analysis Results - Filename and Format (Mocked)
Type: Scenario Outline
Traceability:
@SHIFT-8
Journey: A user uploads a source file, submits the analysis, and verifies that selecting each supported download format produces a file with the correct extension.
Examples
| Format |
Expected |
| Markdown |
shiftdoc-po-auth.md |
| HTML |
shiftdoc-po-auth.html |
| JSON |
shiftdoc-po-auth.json |