Magento-Codeception icon indicating copy to clipboard operation
Magento-Codeception copied to clipboard

Use more reliable way instead of "$I->wait(7)"

Open ceckoslab opened this issue 9 years ago • 2 comments

Hello @Zifius

I noticed that in the bottom of CheckoutCest::testOnePageCheckout() you are using $I->wait(7) after the "Place Order" button is pressed. I don't think that this is the most reliable way, because the waiting time may vary depending on many factors.

Do you think that more reliable solution can be used?

ceckoslab avatar May 18 '15 22:05 ceckoslab

Hello @Zifius ,

I think that the function "waitForJS" may come handy - http://codeception.com/docs/modules/WebDriver#waitForJS

ceckoslab avatar May 19 '15 20:05 ceckoslab

Hello @ceckoslab, looks like this is what we need. Can you send a PR please?

Zifius avatar May 20 '15 08:05 Zifius