Login errors (Playwright)
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"Playwright code
Section titled “Playwright code”import { test } from '@playwright/test';import { story } from 'executable-stories-playwright';
const loginErrorExamples = [];for (const row of loginErrorExamples) { test(`Login errors: ${row.message}`, async ({}, testInfo) => { story.init(testInfo); 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}"`); });}