Skip to content

Commit a7fd966

Browse files
committed
e2e tests
1 parent fad600d commit a7fd966

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/end-to-end/official-site.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ test('form example', async ({ page }) => {
4545

4646
test('File upload', async ({ page }) => {
4747
await page.goto(BASE);
48-
await page.getByRole('link', { name: 'Examples', exact: true }).click();
48+
await page.getByRole('button', { name: 'Examples', exact: true }).click();
4949
await page.getByText('File uploads').click();
5050
const my_svg = '<svg><text y="20">Hello World</text></svg>';
5151
// @ts-ignore

tests/end-to-end/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
6-
"scripts": {},
6+
"scripts": {
7+
"test": "playwright test"
8+
},
79
"keywords": [],
810
"author": "",
911
"license": "ISC",

0 commit comments

Comments
 (0)