File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ describe("Test the edit user form", () => {
2121 // Check for max length validation
2222 cy . get ( "#field_firstName" )
2323 . should ( "have.class" , "ng-invalid" )
24+ . clear ( )
2425 . type ( "Automated" ) ;
2526 // Clear last name input field
2627 cy . get ( "#field_lastName" ) . clear ( ) ;
@@ -32,7 +33,10 @@ describe("Test the edit user form", () => {
3233 . type ( data . testString + data . testString ) ;
3334 cy . get ( "#save-entity2" ) . invoke ( "attr" , "disabled" ) . should ( "exist" ) ;
3435 // Check for max length validation
35- cy . get ( "#field_lastName" ) . should ( "have.class" , "ng-invalid" ) . type ( "Test" ) ;
36+ cy . get ( "#field_lastName" )
37+ . should ( "have.class" , "ng-invalid" )
38+ . clear ( )
39+ . type ( "Test" ) ;
3640 // Check disabled fields
3741 cy . get ( "#field_email" ) . invoke ( "attr" , "disabled" ) . should ( "exist" ) ;
3842 cy . get ( "#field_mainContact" ) . invoke ( "attr" , "disabled" ) . should ( "exist" ) ;
You can’t perform that action at this time.
0 commit comments