-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try to fix failing recommendations.test.js and waf-blocking.test.js E2E tests #34796
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this. These failing tests definitely need to be fixed.
Generally, I don't have strong knowledge on tests, but it seems reasonable to include Plans here. The thing I noticed with these tests though, is that it can't confirm the plan:
It seems that the issue is actually appeared after this change: #34715 . We removed alt
name, however, isPlan
function actually relies on the plan here:
https://github.com/Automattic/jetpack/blob/trunk/tools/e2e-commons/pages/wp-admin/jetpack-my-plan.js#L13
Maybe we should update isPlan
function to correctly check the plan not relying on alt
. Something like //h2[contains(@class, "my-plan-card__title") and text()="Jetpack Free"]
. What do you think?
Leave as a comment not to be blocking if approved by somebody else
Thanks @andrii-lysenko , reverted my hack and applied your suggestion in 06ad8b2. The first attempt to run one of the tests still fails, but the retry (and thus the whole test) succeeds:
I guess we could leave it at that? |
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
…2E tests (#34796) * Test for plans using <h2> value, not alt="" text Automattic/jetpack#34796 (review) * changelog Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7411554190
"Jetpack post-connection e2e tests" have been failing since forever:
https://github.com/Automattic/jetpack/actions/workflows/e2e-tests.yml
e.g. here for #34739:
https://github.com/Automattic/jetpack/actions/runs/7348501314/job/20006837157?pr=34739
As per #34796 (review), I've updated XPath selectors that check for the plan in the rendered webpage.
@jboland88, @ArSn, you've last touched this code, could you maybe have a look? I'm not familiar with those tests myself.
Proposed changes:
See above.
Other information:
Jetpack product discussion
n/a
Does this pull request change what data or activity we track or use?
No.
Testing instructions: