Login blocked for suspended user (Playwright)
Generated output
Section titled “Generated output”### ✅ Login blocked for suspended user
- **Given** the user account exists- **And** the account is suspended- **When** the user submits valid credentials- **Then** the user should see an error message- **But** the user should not be logged inbut() always renders as “But” (never auto-converted to “And”).
Playwright code
Section titled “Playwright code”import { test } from '@playwright/test';import { story } from 'executable-stories-playwright';
test.describe('Login', () => { test('Login blocked for suspended user', async ({}, testInfo) => { story.init(testInfo); story.given('the user account exists'); story.given('the account is suspended'); story.when('the user submits valid credentials'); story.then('the user should see an error message'); story.but('the user should not be logged in'); });});