Skip to content

Commit 49b904a

Browse files
committed
updated test names
1 parent 4e6940a commit 49b904a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-core/src/components/LoginPage/__tests__/LoginForm.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ describe('LoginForm', () => {
4949
expect(asFragment()).toMatchSnapshot();
5050
});
5151

52-
test('LoginForm with isPasswordRequired', () => {
52+
test('Renders LoginForm with password field required by default', () => {
5353
render(<LoginForm />);
5454
const passwordField = screen.getByLabelText(/password/i);
5555
expect(passwordField).toHaveAttribute('required');
5656
});
5757

58-
test('LoginForm with isPasswordRequired set to false', () => {
58+
test('Renders LoginForm with password field not required when isPasswordRequired set to false', () => {
5959
render(<LoginForm isPasswordRequired={false} />);
6060
const passwordField = screen.getByLabelText(/password/i);
6161
expect(passwordField).not.toHaveAttribute('required');

0 commit comments

Comments
 (0)