Closed juliaamosova closed 5 years ago
The comments tests that are failing in CI are more than likely unrelated but Can create wporg site and connect Jetpack - [PRESSABLE] Gutenberg Markdown block: (desktop) @jetpack Publish a simple post with Markdown block is failing in CI and could be related... Did you test with that host?
Thanks @JavonDavis! The explanation of the failing tests is below:
Failing Jetpack tests:
Failing CI test:
wp-admin-jetpack-page.js
but not related to the changes I made in thir PR: Can create wporg site and connect Jetpack - [PRESSABLE] Gutenberg Markdown block: (desktop) @jetpack Publish a simple post with Markdown block
:
Timed out waiting for element with css selector of 'a.jp-jetpack-connect__button' to be clickable
The code that doesn't work is here:
There is yet another sleep
statement that needs to be addressed. I am already working on it :) It will be addressed in a separate PR since it is a different issue.
Removed 2
sleep
statements and addressed it by usingwaitTillPresentAndDislplayed
in respective functions:clickUpgradeNudge()
inwp-admin-jetpack-page.js
clickPurchaseButton()
injetpack-plans-sales-page.js
waitTillPresentAndDislplayed
adds the necessary check to make sure that both buttons are displayed and ready to be clicked on.To test:
The change affects
wp-jetpack-plans-spec.js
.