aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test.ts
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2023-02-11 21:04:43 +0100
committerivarlovlie <git@ivarlovlie.no>2023-02-11 21:04:43 +0100
commit23ab0a24ba82004fa449491b4e08698a1de9e6a0 (patch)
treed701120d9a77f67153c93149ec7871bfd571bbfb /tests/test.ts
downloadauroraklinikken.no-23ab0a24ba82004fa449491b4e08698a1de9e6a0.tar.xz
auroraklinikken.no-23ab0a24ba82004fa449491b4e08698a1de9e6a0.zip
feat: Initial commit
Diffstat (limited to 'tests/test.ts')
-rw-r--r--tests/test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test.ts b/tests/test.ts
new file mode 100644
index 0000000..5816be4
--- /dev/null
+++ b/tests/test.ts
@@ -0,0 +1,6 @@
+import { expect, test } from '@playwright/test';
+
+test('index page has expected h1', async ({ page }) => {
+ await page.goto('/');
+ await expect(page.getByRole('heading', { name: 'Welcome to SvelteKit' })).toBeVisible();
+});