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] Improve execution time by disabling the welcomeGuide feature instead of waiting for the modal #45132
Conversation
…ix-command-pallete-with-gb-tests
…ocommerce/woocommerce into e2e/disable-editor-welcome-guide
…isable-editor-welcome-guide
Test Results SummaryCommit SHA: a0fbc43
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. |
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: |
@adimoldovan This branch has merge conflicts. |
Addressing here @rrennick's #45121 (comment) from #45121
With changes in this PR, unless I missed any, there shouldn't be any places left where the modal is being dismissed through the browser. I'm ok with that, because that modal is not a Woo feature, and not something critical we want to test. |
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.
because that modal is not a Woo feature, and not something critical we want to test.
Thanks for that clarification. This is a nice improvement.
…ure instead of waiting for the modal (#45132) * Fix locator for command palette * Add changelog * Use fixtures instead of before/after hooks * Disable welcome modal * Remove describe block * Replace closeWelcomeModal with disableWelcomeModal * Remove wait for networkidle * Wait for page load * Add changelog
Submission Review Guidelines:
Changes proposed in this Pull Request:
Every time the page or the post editor is visited the
closeWelcomeModal
function waits 5 seconds for the welcome tour modal to be displayed and closes it. Most of the times the modal is not even being displayed, as it was previously dismissed.This PR adds a function to disable the modal by setting the
welcomeGuide
feature. It should save 5 seconds of most editor page visits.I also removed some unnecessary
waitFor('networkidle')
calls that were slowing down the tests.How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Run all affected tests, they should pass.
pnpm test:e2e-pw ./tests/e2e-pw/tests/merchant/create-cart-block.spec.js ./tests/e2e-pw/tests/shopper/cart-block-calculate-shipping.spec.js ./tests/e2e-pw/tests/shopper/cart-block-coupons.spec.js ./tests/e2e-pw/tests/shopper/cart-block.spec.js ./tests/shopper/cart-checkout-block-calculate-tax.spec.js ./tests/e2e-pw/tests/shopper/mini-cart.spec.js ./tests/e2e-pw/tests/shopper/shop-products-filter-by-price.spec.js, ./tests/e2e-pw/tests/merchant/create-post.spec.js, ./tests/e2e-pw/tests/merchant/create-page.spec.js, ./tests/e2e-pw/tests/shopper/product-tags-attributes.spec.js
Changelog entry
Significance
Type
Message
Comment