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
Blocks E2E: Setup block theme without opening browser #44702
Conversation
- For initial call it improves the speed from ~8.5s to ~5.3s (~38%). - For subsequent calls it goes down from ~8.5s to ~230ms (~97%) by recognizing the theme being already set. These absolute measurements are valid ForMyMachine™ :)
Hi @lanej0, @gigitux, @kmanijak, @woocommerce/woo-fse 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: |
Test Results SummaryCommit SHA: 472caa7
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. |
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 the improvement!
There are some flaky tests failing that require restarting, otherwise all good!
Changes proposed in this Pull Request:
In
block-theme.setup.ts
:wp rewrite flush
as it's already called within the precedingwp rewrite structure
call,How to test the changes in this Pull Request:
Change the theme slug in
block-theme.setup.ts
to a non-existing theme.Run some test that uses the
block_theme.setup.ts
, for example:Ensure the assertion failed and printed
Could not install and/or activate ${ BLOCK_THEME_SLUG }
.