From 545e7c945f23c73489d68d49ff0e29b1ab5b4828 Mon Sep 17 00:00:00 2001 From: Sabrina Date: Mon, 9 Dec 2024 09:59:26 +0000 Subject: [PATCH] Update test names --- frontend/src/app/features/login/login.component.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/features/login/login.component.spec.ts b/frontend/src/app/features/login/login.component.spec.ts index 4bf0ff064c..fb46fc7e26 100644 --- a/frontend/src/app/features/login/login.component.spec.ts +++ b/frontend/src/app/features/login/login.component.spec.ts @@ -84,7 +84,7 @@ describe('LoginComponent', () => { }); describe('password', () => { - it('should show the password as password field when show password is false', async () => { + it('should set the password as password field (to hide input) on page load', async () => { const { getByTestId } = await setup(); const passwordInput = getByTestId('password'); @@ -92,7 +92,7 @@ describe('LoginComponent', () => { expect(passwordInput.getAttribute('type')).toEqual('password'); }); - it('should show the password as text field when show password is true', async () => { + it("should show the password as text field after user clicks 'Show password'", async () => { const { fixture, getByTestId, getByText } = await setup(); const showToggleText = 'Show password';