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
[e2e tests] Fix command pallete test failing with Gutenberg active #45121
Conversation
Test Results SummaryCommit SHA: 9c43938
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
…ix-command-pallete-with-gb-tests
Hi , @woocommerce/vortex Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
…ix-command-pallete-with-gb-tests
Is there still some place in the E2E tests where the modal is being dismissed through the browser? The concern with completely eliminating this by setting a pref is that the modal itself is not longer tested in E2E. |
Good question @rrennick. At this point, yes, there are many other tests that are dismissing the modal through the browser. |
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.
Looks good.
…45121) * Fix locator for command palette * Add changelog * Use fixtures instead of before/after hooks * Disable welcome modal * Remove describe block * Move function to avoid a future merge conflict
Submission Review Guidelines:
Changes proposed in this Pull Request:
Closes #45124 .
Fixed tests
command-palette.spec.js
broken by a label change in Gutenberg.I took this occasion to add some improvements to this spec:
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
The tests should pass with both Gutenberg active and inactive.
Locally:
pnpm env:restart && pnpm test:e2e-pw ./tests/e2e-pw/tests/merchant/command-palette.spec.js
pnpm test:e2e-pw ./tests/e2e-pw/tests/merchant/command-palette.spec.js
Changelog entry
Significance
Type
Message
Comment