Changes to be committed:

modified:   package-lock.json
	modified:   package.json
	renamed:    tests/example.spec.ts -> tests/test.ts
This commit is contained in:
matthieu42morin 2023-03-15 19:34:04 +01:00
parent e2cd6455b0
commit 4dd52db9b6
3 changed files with 12011 additions and 12121 deletions

24123
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
} }
} }

View File

@ -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/);