aboutsummaryrefslogtreecommitdiffstats
path: root/test/playwright/helpers/auth.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'test/playwright/helpers/auth.mjs')
-rw-r--r--test/playwright/helpers/auth.mjs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/playwright/helpers/auth.mjs b/test/playwright/helpers/auth.mjs
new file mode 100644
index 000000000..aa5ba1add
--- /dev/null
+++ b/test/playwright/helpers/auth.mjs
@@ -0,0 +1,6 @@
+export async function login(page, password) {
+ await page.goto("/");
+ const input = page.locator("#connectPassword");
+ await input.fill(password);
+ await page.locator("#connectButton").click();
+}