mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-24 09:21:03 +00:00
17 lines
728 B
TypeScript
17 lines
728 B
TypeScript
![]() |
import { test } from './fixture';
|
||
|
|
||
|
test.beforeEach(async ({ page }) => {
|
||
|
await page.goto('https://todomvc.com/examples/react/dist/');
|
||
|
});
|
||
|
|
||
|
test('ai todo', async ({ ai }) => {
|
||
|
await ai('Enter "Learn JS today" in the task box, then press Enter to create');
|
||
|
await ai('Enter "Learn Rust tomorrow" in the task box, then press Enter to create');
|
||
|
await ai('Enter "Learning AI the day after tomorrow" in the task box, then press Enter to create');
|
||
|
await ai(
|
||
|
'Move your mouse over the second item in the task list and click the Delete button to the right of the second task',
|
||
|
);
|
||
|
await ai('Click the check button to the left of the second task');
|
||
|
await ai('Click the completed Status button below the task list');
|
||
|
});
|