mirror of
https://github.com/tester-army/e2e.git
synced 2026-11-25 02:24:26 +08:00
14 lines
450 B
TypeScript
14 lines
450 B
TypeScript
import { test } from '@e2e-dev/web';
|
|
import { expect } from 'e2e';
|
|
|
|
test('a visitor signs up for a trial', async ({ app, agent, screen }) => {
|
|
await app.open('/');
|
|
|
|
await agent.act('sign up for a free trial as {name} with email {email}', {
|
|
params: { name: 'Ada Lovelace', email: 'ada@example.test' },
|
|
});
|
|
|
|
await agent.assert('the welcome screen greets Ada by name');
|
|
await expect(screen.getByRole('status')).toContainText('trial');
|
|
});
|