Skip to content

Commit

Permalink
Update test names
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrome committed Dec 9, 2024
1 parent fed95ed commit 545e7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/features/login/login.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ 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');

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';
Expand Down

0 comments on commit 545e7c9

Please sign in to comment.