chore: add basic acceptance tests

This commit is contained in:
Stefan Benz
2024-10-28 19:44:50 +01:00
parent bfd8a7c9e1
commit 9af39ac1bc
12 changed files with 484 additions and 75 deletions

View File

@@ -0,0 +1,13 @@
import {test} from "@playwright/test";
import {registerWithPassword} from './register';
import {loginWithPassword} from "./login";
test("register with password", async ({page}) => {
const firstname = "firstname"
const lastname = "lastname"
const username = "register@example.com"
const password = "Password1!"
await registerWithPassword(page, firstname, lastname, username, password, password)
await page.getByRole("heading", {name: "Welcome " + lastname + " " + lastname + "!"}).click();
await loginWithPassword(page, username, password)
});