Back to saved runs
Saved run detail
As Alex, I want to log in with my email and password so that I can see my account dashboard.
Ready to run
Runs only against QA Demo Bank in an isolated GitHub Actions worker.
Ready
0
Failed
0
Test cases
2
Duration
0ms
AI-created test cases
What the AI planned
Jun 30, 3:57 AM
Successful login with valid credentials
happy
- Verify the URL redirects to '/dashboard' or '/account'
- Verify the dashboard welcome message contains 'Alex Rivera'
- Verify the logout button is visible
Login fails with invalid password
negative
- Verify an error message 'Invalid credentials' or similar is displayed
- Verify the URL remains on the login page
- Verify the password field is cleared or highlighted as invalid
Generated Playwright
generated.spec.ts
import { test, expect } from '@playwright/test';
test.describe('Login Flow', () => {
test('TC-001: Successful login with valid credentials', async ({ page }) => {
await page.goto('https://qa-demo-bank.vercel.app/login');
await page.getByLabel('Email address').fill('alex.rivera@qademobank.test');
await page.getByLabel('Password').fill('demo-password');
await page.getByTestId('login-submit').click();
await expect(page).toHaveURL(/\/dashboard/);
await expect(page.getByRole('heading', { name: 'Dashboard', exact: true })).toBeVisible();
await expect(page.getByRole('button', { name: /sign out|logout/i })).toBeVisible();
});
test('TC-002: Login fails with invalid password', async ({ page }) => {
await page.goto('https://qa-demo-bank.vercel.app/login');
await page.getByLabel('Email address').fill('alex.rivera@qademobank.test');
await page.getByLabel('Password').fill('wrong-password');
await page.getByTestId('login-submit').click();
await expect(page.getByTestId('login-error')).toHaveText('Invalid demo credentials.');
await expect(page).toHaveURL(/\/login/);
});
});