Files
e2e/docs/examples/quickstart/tests/example.e2e.ts
T

15 lines
458 B
TypeScript

import { test } from '@e2edev/playwright';
import { expect } from 'e2e';
test('app opens', async ({ app, web }) => {
await app.open('/');
await expect(web.locator('body')).toBeVisible();
});
// With the model key in the environment, uncomment:
// test('the agent drives a flow', async ({ app, agent }) => {
// await app.open('/');
// await agent.act('one goal in natural language');
// await agent.assert('one question about the screen');
// });