diff --git a/src/tests/frontend-new/admin-spec/adminsettings.spec.ts b/src/tests/frontend-new/admin-spec/adminsettings.spec.ts index adeb10f47..ad3a0c441 100644 --- a/src/tests/frontend-new/admin-spec/adminsettings.spec.ts +++ b/src/tests/frontend-new/admin-spec/adminsettings.spec.ts @@ -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'); diff --git a/src/tests/frontend-new/helper/adminhelper.ts b/src/tests/frontend-new/helper/adminhelper.ts index d6b5d5615..8f2242f89 100644 --- a/src/tests/frontend-new/helper/adminhelper.ts +++ b/src/tests/frontend-new/helper/adminhelper.ts @@ -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"]'); }