The open source
AI testing framework
Customizable TypeScript testing framework for web, mobile apps, and more.
checkout.e2e.ts
import { test, expect } from 'e2e';
test('upgrade to Pro', async ({ app, agent, screen }) => {
await app.open('/settings/billing');
await agent.act('upgrade the workspace to Pro');
await expect(screen.getByRole('status'))
.toContainText('Pro');
});import { test, expect } from 'e2e';
test('upgrade to Pro', async ({ app, agent, screen }) => {
await app.open('/settings/billing');
await agent.act('upgrade the workspace to Pro');
await expect(screen.getByRole('status'))
.toContainText('Pro');
});