File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Automation/Embedded-Automate/Explorer Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ describe('Automation > Embedded Automate > Explorer', () => {
29
29
cy . get ( '[name="description"]' ) . type ( 'This is a test NameSpace' ) ;
30
30
cy . get ( '.bx--btn--primary' ) . contains ( 'Add' ) . click ( ) ;
31
31
32
- cy . wait ( 1000 ) ; // Need this wait or else namespace doesn't get added properly
32
+ // Wait for namespace to be visible
33
+ cy . get ( '[title="Automate Namespace: TestNameSpace"]' , { timeout : 1000 } ) . should ( 'be.visible' )
33
34
} ) ;
34
35
35
36
beforeEach ( ( ) => {
Original file line number Diff line number Diff line change @@ -337,12 +337,10 @@ describe('Overview > Reports Tests', () => {
337
337
cy . get ( '#form_filter_div > .form-horizontal > :nth-child(1) > .col-md-8 > .btn-group > .btn' ) . click ( { force : true } ) ;
338
338
cy . get ( '#form_filter_div > .form-horizontal > :nth-child(1) > .col-md-8 > .btn-group > .open > .dropdown-menu > [data-original-index="1"] > a' ) . then ( ( option ) => {
339
339
cy . get ( option ) . click ( { force : true } ) . then ( ( ) => {
340
- cy . wait ( 5000 ) ;
341
- cy . get ( '#form_filter_div > .form-horizontal > :nth-child(2) > .col-md-8 > .btn-group > .btn' ) . click ( { force : true } ) ;
340
+ cy . get ( '#form_filter_div > .form-horizontal > :nth-child(2) > .col-md-8 > .btn-group > .btn' , { timeout : 5000 } ) . click ( { force : true } ) ;
342
341
cy . get ( '#form_filter_div > .form-horizontal > :nth-child(2) > .col-md-8 > .btn-group > .open > .dropdown-menu > [data-original-index="1"] > a' ) . then ( ( option ) => {
343
342
cy . get ( option ) . click ( { force : true } ) . then ( ( ) => {
344
- cy . wait ( 5000 ) ;
345
- cy . get ( ':nth-child(3) > .col-md-8 > .btn-group > .btn' ) . click ( { force : true } ) ;
343
+ cy . get ( ':nth-child(3) > .col-md-8 > .btn-group > .btn' , { timeout : 5000 } ) . click ( { force : true } ) ;
346
344
cy . get ( ':nth-child(3) > .col-md-8 > .btn-group > .open > .dropdown-menu > [data-original-index="1"] > a' ) . then ( ( option ) => {
347
345
cy . get ( option ) . click ( { force : true } ) ;
348
346
reportFilter = option [ 0 ] . innerText ;
Original file line number Diff line number Diff line change @@ -492,8 +492,7 @@ describe('Menu', () => {
492
492
493
493
it ( 'About' , ( ) => {
494
494
cy . menu ( 'Settings' , 'About' ) . then ( ( ) => {
495
- cy . wait ( 50000 ) ; // Need to wait before getting the modal container or else the test fails
496
- cy . get ( '.bx--modal-container' ) ;
495
+ cy . get ( '.bx--modal-container' , { timeout : 10000 } ) ;
497
496
} ) ;
498
497
} ) ;
499
498
} ) ;
You can’t perform that action at this time.
0 commit comments