-
Notifications
You must be signed in to change notification settings - Fork 4
/
todo.txt
34 lines (27 loc) · 963 Bytes
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- Port docs to sveltepress?
- Port demo to a better looking css
- Support CLoseWatcher?
- https://twitter.com/bramus/status/1730325130033697278/photo/1
- Add tests
import { playwright } from '@playwright/test';
const test = async () => {
// Open a new browser window.
const browser = await playwright.chromium.launch();
const context = await browser.newContext();
const page = await context.newPage();
// Navigate to the home page.
await page.goto('http://localhost:3000');
// Check that the title of the page is "Home".
const title = await page.title();
expect(title).toBe('Home');
// Click on the "About" link.
await page.click('a[href="/about"]');
// Check that the title of the page is now "About".
title = await page.title();
expect(title).toBe('About');
// Close the browser window.
await context.close();
await browser.close();
};
// Run the test suite.
await test();