Skip to content

Commit 7addb62

Browse files
add a cy.wait to prevent a failed test
1 parent d051690 commit 7addb62

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/cypress/integration/3-ecommerce-onboarding-flow/basic-info.cy.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe( 'Basic Info Page', function () {
2525

2626
it( 'Check Drawer Activity', () => {
2727
let href;
28+
cy.wait( 3000 );
2829
cy.get( '.nfd-onboarding-drawer__toggle' )
2930
.as( 'drawerOpen' )
3031
.invoke( 'attr', 'class' )
@@ -195,7 +196,7 @@ describe( 'Basic Info Page', function () {
195196
cy.get( '.navigation-buttons_next' ).click();
196197
cy.get( '.components-modal__content' ).should( 'be.visible' );
197198
}
198-
199+
199200
cy.get( '.components-modal__header button' , { timeout: customCommandTimeout } ).click()
200201
cy.wait(200);
201202
cy.get(
@@ -277,15 +278,15 @@ describe( 'Basic Info Page', function () {
277278
cy.get( socialTest ).should( 'exist' );
278279
cy.get( socialTest ).clear();
279280
cy.get( socialTest ).type( 'https://www.facebook.com/testfacebook' );
280-
281+
281282
cy.get( socialTest2 ).should( 'exist' );
282283
cy.get( socialTest2 ).clear();
283284
cy.get(socialTest2).type('@testTweet');
284-
285+
285286
cy.get( socialTest3 ).should( 'exist' );
286287
cy.get( socialTest3 ).clear();
287288
cy.get(socialTest3).type('@testInsta');
288-
289+
289290
cy.get( socialTest4 ).should( 'exist' );
290291
cy.get( socialTest4 ).clear();
291292
cy.get( socialTest4 ).type( '@testYouTube' );

0 commit comments

Comments
 (0)