Corrected "Login" & "Logout" to verbs (EN) (#4320)

Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
pull/4367/head
James Cocker 4 months ago committed by GitHub
parent 17e284f011
commit 8456912ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.", "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", "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!", "Please use this option carefully!": "Please use this option carefully!",
"Logout": "Logout", "Logout": "Log out",
"Leave": "Leave", "Leave": "Leave",
"I understand, please disable": "I understand, please disable", "I understand, please disable": "I understand, please disable",
"Confirm": "Confirm", "Confirm": "Confirm",
@ -127,7 +127,7 @@
"Username": "Username", "Username": "Username",
"Password": "Password", "Password": "Password",
"Remember me": "Remember me", "Remember me": "Remember me",
"Login": "Login", "Login": "Log in",
"No Monitors, please": "No Monitors, please", "No Monitors, please": "No Monitors, please",
"add one": "add one", "add one": "add one",
"Notification Type": "Notification Type", "Notification Type": "Notification Type",

@ -38,6 +38,6 @@ test("logout", async ({ page }, testInfo) => {
await page.goto("./dashboard"); await page.goto("./dashboard");
await login(page); await login(page);
await page.getByText("A", { exact: true }).click(); 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); await screenshot(testInfo, page);
}); });

@ -22,6 +22,6 @@ export async function login(page) {
await page.getByPlaceholder("Username").press("Tab"); await page.getByPlaceholder("Username").press("Tab");
await page.getByPlaceholder("Password").fill("admin123"); await page.getByPlaceholder("Password").fill("admin123");
await page.getByLabel("Remember me").check(); 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"); await page.isVisible("text=Add New Monitor");
} }

Loading…
Cancel
Save