Automattic / wp-e2e-tests

Automated end-to-end tests for WordPress.com
https://github.com/Automattic/wp-calypso
GNU General Public License v2.0
110 stars 25 forks source link

Wait payment modal to disappear #1796

Closed Stojdza closed 5 years ago

Stojdza commented 5 years ago

We had this failure several times. It failed on the step Can see the payment button inserted into the visual editor but failure happened on the previous step, Can insert the payment button, because payment modal didn't disappear in an expected time frame.

I added additional waitTillNotPresent in insertPaymentButton() and increased timeout. This way, test will show an appropriate error message, if it fails for the same reason.

To test: Make sure that Editor: Pages: Insert a payment button: @parallel @jetpack and Editor: Posts: Insert a payment button: @parallel @jetpack are passing, both desktop and mobile

Stojdza commented 5 years ago

And it happened again here and here.