From 95d99424e11686eb1531e29b6c53bf263403de49 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Fri, 15 Mar 2024 19:01:09 +0100 Subject: [PATCH] Fixed admin tests. --- src/tests/frontend-new/admin-spec/adminsettings.spec.ts | 1 - src/tests/frontend-new/helper/adminhelper.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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"]'); }