Back to saved runs
Saved run detail
As a locked user, I want to be blocked from signing in so that the app protects account access.
Ready to run
Runs only against QA Demo Bank in an isolated GitHub Actions worker.
Ready
0
Failed
0
Test cases
1
Duration
0ms
AI-created test cases
What the AI planned
Jun 30, 4:02 AM
Locked user is blocked from signing in and sees account locked error message
negative
- Verify that an error message indicating the account is locked is visible
- Verify that the URL remains on the login page
- Verify that the user is not redirected to the dashboard
Generated Playwright
generated.spec.ts
import { test, expect } from '@playwright/test';
test('TC-001: Locked user is blocked from signing in and sees account locked error message', async ({ page }) => {
// Navigate to the login page
await page.goto('https://qa-demo-bank.vercel.app/login');
// Fill in the email field with the locked user's email
await page.getByLabel('Email address').fill('locked@qademobank.test');
// Fill in the password field with the password
await page.getByLabel('Password').fill('demo-password');
// Click the sign-in button
await page.getByTestId('login-submit').click();
// Verify that an error message indicating the account is locked is visible
const errorMessage = page.getByTestId('login-error');
await expect(errorMessage).toBeVisible();
await expect(errorMessage).toHaveText('This demo user is locked for negative authentication testing.');
// Verify that the URL remains on the login page
await expect(page).toHaveURL('https://qa-demo-bank.vercel.app/login');
// Verify that the user is not redirected to the dashboard
await expect(page).not.toHaveURL(/.*dashboard.*/);
});