Fixed admin tests.

This commit is contained in:
SamTV12345 2024-03-15 19:01:09 +01:00
parent 0e4937b50f
commit 95d99424e1
2 changed files with 1 additions and 2 deletions

View file

@ -1,6 +1,5 @@
import {expect, test} from "@playwright/test";
import {loginToAdmin, restartEtherpad, saveSettings} from "../helper/adminhelper";
import exp from "node:constants";
test.beforeEach(async ({ page })=>{
await loginToAdmin(page, 'admin', 'changeme1');

View file

@ -7,7 +7,7 @@ export const loginToAdmin = async (page: Page, username: string, password: strin
await page.waitForSelector('input[name="username"]');
await page.fill('input[name="username"]', username);
await page.fill('input[name="password"]', password);
await page.click('input[type="button"]');
await page.click('input[type="submit"]');
}