Journey:A user with a completed BDD Product Owner analysis downloads an HTML file and verifies it is a well-formed HTML document with opening and closing html tags.
Scenario
Given Context
When Action
Then Assertion
Gherkin Type
HTML download contains rendered content
A completed BDD Product Owner analysis exists
User clicks Download HTML
A .html file is downloaded and its content contains both '<html lang=' and '</html>'
Positive
Test Name:JSON download contains complete analysis payload
Journey:A user with a completed BDD Product Owner analysis downloads a JSON file and verifies it carries the correct shiftdoc framework metadata and at least one test entry.
Scenario
Given Context
When Action
Then Assertion
Gherkin Type
JSON download contains complete analysis payload
A completed BDD Product Owner analysis exists
User clicks Download JSON
A .json file is downloaded, shiftdoc metadata has framework 'bdd', and the JSON contains 1 or more tests
Positive
Test Name:JSON download contains add-on sections when add-ons were selected
Journey:A user who ran a BDD Product Owner analysis with the Gap Analysis add-on downloads a JSON file and verifies the add-on output is present as a top-level key.
Scenario
Given Context
When Action
Then Assertion
Gherkin Type
JSON download contains add-on sections when add-ons were selected
A completed BDD Product Owner analysis with Gap Analysis add-on exists
User clicks Download JSON
A .json file is downloaded and the JSON contains a top-level key 'gap_analysis'