Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 9f7317a

Browse files
author
Adva Oren
committed
add test to import
1 parent db6667b commit 9f7317a

File tree

10 files changed

+714
-81
lines changed

10 files changed

+714
-81
lines changed

e2e/example.spec.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('has title', async ({ page }) => {
4+
await page.goto('https://playwright.dev/');
5+
6+
// Expect a title "to contain" a substring.
7+
await expect(page).toHaveTitle(/Playwright/);
8+
});
9+
10+
test('get started link', async ({ page }) => {
11+
await page.goto('https://playwright.dev/');
12+
13+
// Click the get started link.
14+
await page.getByRole('link', { name: 'Get started' }).click();
15+
16+
// Expects page to have a heading with the name of Installation.
17+
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
18+
});

package-lock.json

Lines changed: 38 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
"author": "",
1919
"license": "ISC",
2020
"devDependencies": {
21-
"axios": "^1.8.2",
2221
"@hey-api/client-axios": "^0.6.2",
2322
"@hey-api/openapi-ts": "^0.64.10",
23+
"@playwright/test": "^1.53.0",
2424
"@types/node": "^22.0.2",
25+
"axios": "^1.8.2",
2526
"playwright-bdd": "^8.0.1",
2627
"prettier": "^3.3.3"
2728
}

0 commit comments

Comments
 (0)