From be0739585ecc67fca3677fa6c80cffaf4005abc6 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 4 Oct 2022 00:05:13 +0800 Subject: feat: !WIP sign-up page test WIP because playwright currently does not pick up on ts paths --- apps/kit/src/routes/(main)/(public)/sign-in/test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 apps/kit/src/routes/(main)/(public)/sign-in/test.ts (limited to 'apps/kit/src/routes/(main)/(public)/sign-in/test.ts') diff --git a/apps/kit/src/routes/(main)/(public)/sign-in/test.ts b/apps/kit/src/routes/(main)/(public)/sign-in/test.ts new file mode 100644 index 0000000..27af2ea --- /dev/null +++ b/apps/kit/src/routes/(main)/(public)/sign-in/test.ts @@ -0,0 +1,12 @@ +import { get_test_context } from "$lib/configuration"; +import { get_element_by_pw_key } from "$lib/helpers"; +import { test, expect } from "@playwright/test"; +import { signInPageTestKeys } from "./+page.svelte"; + +const context = get_test_context(); + +test("form loads", async ({ page }) => { + await page.goto("/sign-up"); + const formElement = get_element_by_pw_key(signInPageTestKeys.signUpForm); + expect(formElement).toBeTruthy(); +}); \ No newline at end of file -- cgit v1.3