feat(e2e): add default test setup, update playwright config

This commit is contained in:
QAComet
2024-04-21 17:17:27 -06:00
parent b8d7bd57c8
commit 7c14cf7bf1
3 changed files with 50 additions and 8 deletions
+8
View File
@@ -0,0 +1,8 @@
import { seedUser } from "@/e2e/data/user";
import { test as setup } from "../../index";
setup("Setup the default user", async () => {
const username = process.env["TEST_USERNAME"] || "";
const password = process.env["TEST_PASSWORD"] || "";
await seedUser(username, password);
});