File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-core/src/components/LoginPage/__tests__ Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( / p a s s w o r d / 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 ( / p a s s w o r d / i) ;
6161 expect ( passwordField ) . not . toHaveAttribute ( 'required' ) ;
You can’t perform that action at this time.
0 commit comments