aboutsummaryrefslogtreecommitdiffstats
path: root/code/app-web/tests
diff options
context:
space:
mode:
Diffstat (limited to 'code/app-web/tests')
-rw-r--r--code/app-web/tests/test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/code/app-web/tests/test.ts b/code/app-web/tests/test.ts
new file mode 100644
index 0000000..4e57937
--- /dev/null
+++ b/code/app-web/tests/test.ts
@@ -0,0 +1,6 @@
+import { expect, test } from '@playwright/test';
+
+test('index page has expected h1', async ({ page }) => {
+ await page.goto('/');
+ expect(await page.textContent('h1')).toBe('Welcome to SvelteKit');
+});