diff --git a/frontend/src/components/ProfileSection/ProfileSection.test.tsx b/frontend/src/components/ProfileSection/ProfileSection.test.tsx index 99c015fdb2..1bc2930666 100644 --- a/frontend/src/components/ProfileSection/ProfileSection.test.tsx +++ b/frontend/src/components/ProfileSection/ProfileSection.test.tsx @@ -24,7 +24,7 @@ describe("Profile section", () => { isCurrentUser={isCurrentUser} handleEditProfileOpen={handleEditProfileOpen} handleChangePasswordOpen={handleChangePasswordOpen} - />, + /> ); expect(screen.getByText(`${firstName} ${lastName}`)).toBeInTheDocument(); }); @@ -46,7 +46,7 @@ describe("Profile section", () => { isCurrentUser={isCurrentUser} handleEditProfileOpen={handleEditProfileOpen} handleChangePasswordOpen={handleChangePasswordOpen} - />, + /> ); expect(screen.getByText(`@${username}`)).toBeInTheDocument(); }); @@ -70,7 +70,7 @@ describe("Profiles that don't belong to the current authenticated user", () => { isCurrentUser={isCurrentUser} handleEditProfileOpen={handleEditProfileOpen} handleChangePasswordOpen={handleChangePasswordOpen} - />, + /> ); const editProfileButton = screen.queryByRole("button", { name: "Edit profile", @@ -78,7 +78,7 @@ describe("Profiles that don't belong to the current authenticated user", () => { expect(editProfileButton).not.toBeInTheDocument(); }); - it("Edit password button is absent", () => { + it("Change password button is absent", () => { const firstName = faker.person.firstName(); const lastName = faker.person.lastName(); const username = faker.internet.userName(); @@ -95,10 +95,10 @@ describe("Profiles that don't belong to the current authenticated user", () => { isCurrentUser={isCurrentUser} handleEditProfileOpen={handleEditProfileOpen} handleChangePasswordOpen={handleChangePasswordOpen} - />, + /> ); const editProfileButton = screen.queryByRole("button", { - name: "Edit password", + name: "Change password", }); expect(editProfileButton).not.toBeInTheDocument(); }); @@ -122,7 +122,7 @@ describe("Profiles that belong to the current authenticated user", () => { isCurrentUser={isCurrentUser} handleEditProfileOpen={handleEditProfileOpen} handleChangePasswordOpen={handleChangePasswordOpen} - />, + /> ); const editProfileButton = screen.queryByRole("button", { name: "Edit profile", @@ -130,7 +130,7 @@ describe("Profiles that belong to the current authenticated user", () => { expect(editProfileButton).toBeInTheDocument(); }); - it("Edit password button is present", () => { + it("Change password button is present", () => { const firstName = faker.person.firstName(); const lastName = faker.person.lastName(); const username = faker.internet.userName(); @@ -147,7 +147,7 @@ describe("Profiles that belong to the current authenticated user", () => { isCurrentUser={isCurrentUser} handleEditProfileOpen={handleEditProfileOpen} handleChangePasswordOpen={handleChangePasswordOpen} - />, + /> ); const editProfileButton = screen.getByRole("button", { name: "Change password",