From f659c47a61fed31af8547bcb66470e80497a0a88 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 6 Sep 2023 18:14:38 +0100 Subject: [PATCH] Update loading-test.tsx --- test/app-tests/loading-test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/app-tests/loading-test.tsx b/test/app-tests/loading-test.tsx index 0c19116e7..af53a29ff 100644 --- a/test/app-tests/loading-test.tsx +++ b/test/app-tests/loading-test.tsx @@ -273,7 +273,7 @@ describe("loading:", function () { await waitForElementToBeRemoved(() => screen.queryAllByLabelText("Loading...")); // we expect a single component await screen.findByRole("main"); - screen.getAllByText("Sign In"); + screen.getAllByText("Sign in"); // the only outstanding request should be a GET /login // (in particular there should be no /register request for @@ -378,7 +378,7 @@ describe("loading:", function () { await awaitRoomView(matrixChat); await screen.findByLabelText("Spaces"); - expect(screen.queryAllByText("Sign In")).toHaveLength(0); + expect(screen.queryAllByText("Sign in")).toHaveLength(0); }); }); }); @@ -544,7 +544,7 @@ describe("loading:", function () { it("should give us a login page", async function () { // we expect a single component await screen.findByRole("main"); - screen.getAllByText("Sign In"); + screen.getAllByText("Sign in"); expect(windowLocation?.hash).toEqual("#/login"); }); @@ -631,7 +631,7 @@ describe("loading:", function () { // Enter login details fireEvent.change(matrixChat.container.querySelector("#mx_LoginForm_username")!, { target: { value: "user" } }); fireEvent.change(matrixChat.container.querySelector("#mx_LoginForm_password")!, { target: { value: "pass" } }); - fireEvent.click(screen.getByText("Sign In", { selector: ".mx_Login_submit" })); + fireEvent.click(screen.getByText("Sign in", { selector: ".mx_Login_submit" })); return httpBackend .flush(undefined)