Login errors (Cypress)
Generated output
Section titled “Generated output”Example for one row:
### ✅ Login errors: Account is locked
- **Given** the user is on the login page- **Then** the error message should be "Account is locked"Cypress code
Section titled “Cypress code”import { story } from 'executable-stories-cypress';
const loginErrorExamples = [];for (const row of loginErrorExamples) { it(`Login errors: ${row.message}`, () => { story.init(); story.given("the user is on the login page"); story.when(`the user logs in with "${row.email}" and "${row.password}"`); story.then(`the error message should be "${row.message}"`); });}