File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/modules/User/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ describe('<LoginForm/>', () => {
4747 const passwordTextElement = screen . getByText ( / p a s s w o r d / i) ;
4848 expect ( passwordTextElement ) . toBeInTheDocument ( ) ;
4949
50- const passwordInputElement = screen . getByLabelText ( / p a s s w o r d / i) ;
50+ const passwordInputElement = screen . getByLabelText ( / ^ p a s s w o r d $ / i) ;
5151 expect ( passwordInputElement ) . toBeInTheDocument ( ) ;
5252
5353 const loginButtonElement = screen . getByRole ( 'button' , {
@@ -67,7 +67,7 @@ describe('<LoginForm/>', () => {
6767 }
6868 } ) ;
6969
70- const passwordElement = screen . getByLabelText ( / p a s s w o r d / i) ;
70+ const passwordElement = screen . getByLabelText ( / ^ p a s s w o r d $ / i) ;
7171
7272 fireEvent . change ( passwordElement , {
7373 target : {
You can’t perform that action at this time.
0 commit comments