From 8456912ae3df3e9ed705636cf8e509690f890f2d Mon Sep 17 00:00:00 2001 From: James Cocker Date: Sat, 13 Jan 2024 21:35:11 +0000 Subject: [PATCH] Corrected "Login" & "Logout" to verbs (EN) (#4320) Co-authored-by: Louis Lam --- src/lang/en.json | 4 ++-- test/e2e/setup.spec.js | 2 +- test/e2e/util-test.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index 845dd349c..e53cd3412 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -118,7 +118,7 @@ "disableauth.message2": "It is designed for scenarios {intendThirdPartyAuth} in front of Uptime Kuma such as Cloudflare Access, Authelia or other authentication mechanisms.", "where you intend to implement third-party authentication": "where you intend to implement third-party authentication", "Please use this option carefully!": "Please use this option carefully!", - "Logout": "Logout", + "Logout": "Log out", "Leave": "Leave", "I understand, please disable": "I understand, please disable", "Confirm": "Confirm", @@ -127,7 +127,7 @@ "Username": "Username", "Password": "Password", "Remember me": "Remember me", - "Login": "Login", + "Login": "Log in", "No Monitors, please": "No Monitors, please", "add one": "add one", "Notification Type": "Notification Type", diff --git a/test/e2e/setup.spec.js b/test/e2e/setup.spec.js index b0c76a18b..55dcb34e6 100644 --- a/test/e2e/setup.spec.js +++ b/test/e2e/setup.spec.js @@ -38,6 +38,6 @@ test("logout", async ({ page }, testInfo) => { await page.goto("./dashboard"); await login(page); await page.getByText("A", { exact: true }).click(); - await page.getByRole("button", { name: "Logout" }).click(); + await page.getByRole("button", { name: "Log out" }).click(); await screenshot(testInfo, page); }); diff --git a/test/e2e/util-test.js b/test/e2e/util-test.js index 3ccf79f40..285e7b716 100644 --- a/test/e2e/util-test.js +++ b/test/e2e/util-test.js @@ -22,6 +22,6 @@ export async function login(page) { await page.getByPlaceholder("Username").press("Tab"); await page.getByPlaceholder("Password").fill("admin123"); await page.getByLabel("Remember me").check(); - await page.getByRole("button", { name: "Login" }).click(); + await page.getByRole("button", { name: "Log in" }).click(); await page.isVisible("text=Add New Monitor"); }