Changes to be committed:
modified: package-lock.json modified: package.json renamed: tests/example.spec.ts -> tests/test.ts
This commit is contained in:
parent
e2cd6455b0
commit
4dd52db9b6
File diff suppressed because it is too large
Load Diff
|
@ -45,7 +45,6 @@
|
||||||
"svelte-check": "^3.1.4",
|
"svelte-check": "^3.1.4",
|
||||||
"svelte-i18n": "^3.6.0",
|
"svelte-i18n": "^3.6.0",
|
||||||
"svelte-routing": "^1.6.0",
|
"svelte-routing": "^1.6.0",
|
||||||
"workbox": "^0.0.0",
|
|
||||||
"yallist": "^4.0.0"
|
"yallist": "^4.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
test('has title', async ({ page }) => {
|
test('has title', async ({ page }) => {
|
||||||
await page.goto('https://playwright.dev/');
|
await page.goto('https://erant.cz/');
|
||||||
|
|
||||||
// Expect a title "to contain" a substring.
|
// Expect a title "to contain" a substring.
|
||||||
await expect(page).toHaveTitle(/Playwright/);
|
await expect(page).toHaveTitle(/Erant/);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('get started link', async ({ page }) => {
|
test('get started link', async ({ page }) => {
|
||||||
await page.goto('https://playwright.dev/');
|
await page.goto('https://erant.cz/profile');
|
||||||
|
|
||||||
// Click the get started link.
|
// Click the get started link.
|
||||||
await page.getByRole('link', { name: 'Get started' }).click();
|
await page.getByRole('link', { name: 'profile' }).click();
|
||||||
|
|
||||||
// Expects the URL to contain intro.
|
// Expects the URL to contain intro.
|
||||||
await expect(page).toHaveURL(/.*intro/);
|
await expect(page).toHaveURL(/.*intro/);
|
Loading…
Reference in New Issue