Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1740 from Automattic/update/remove-sleep-secure-p…
Browse files Browse the repository at this point in the history
…ayment

Remove and address `sleep` statement in `secure-payment-component.js`
  • Loading branch information
juliaamosova authored Dec 27, 2018
2 parents 398724b + 2eb34f4 commit 3035b81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/components/secure-payment-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ export default class SecurePaymentComponent extends AsyncBaseContainer {
}

async _postInit() {
await this.driver.sleep( 5000 ); // This is to wait for products to settle down during sign up see - https://github.com/Automattic/wp-calypso/issues/24579
// This is to wait for products to settle down during sign up see - https://github.com/Automattic/wp-calypso/issues/24579
return await driverHelper.waitTillPresentAndDisplayed(
this.driver,
By.css( '.checkout__payment-box-container' ),
this.explicitWaitMS
);
}

async enterTestCreditCardDetails( {
Expand Down

0 comments on commit 3035b81

Please sign in to comment.