-
Notifications
You must be signed in to change notification settings - Fork 34
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
PLANET-7171: Use WP Playwright E2E utils package #2060
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c404d48
to
6ad6bde
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 7, 2023
/unhold 48e6aab3-c4a4-4a01-801a-3158621b4279
Test instance is ready 🚀🌑 atlas | admin | blocks report | CircleCI | composer-local.json ⌚ 2023.07.18 10:34:10 |
6ad6bde
to
84ccb47
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 7, 2023
/unhold 7dc4a5ff-9b99-40fa-9d5c-245da680ac0e
84ccb47
to
297239f
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 7, 2023
/unhold b52e944c-68fe-4575-bc6b-0631e573ecc3
297239f
to
f22400d
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 7, 2023
/unhold 9a35a1ba-54e4-4d7c-9cbb-4cd79004c831
f22400d
to
0f46c66
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 7, 2023
/unhold 98330c85-9e2f-4b3e-8583-2218f094c8cf
0f46c66
to
2412a95
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 7, 2023
/unhold c8dfac00-0bca-4715-a814-8978b00776b0
2412a95
to
d9959f0
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 7, 2023
/unhold 225f9791-954b-4bb5-99d5-b6d827458e6e
d9959f0
to
a6eb55c
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 10, 2023
/unhold 57cd3bc3-85ef-4732-a2cf-4bdd644c74d5
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 10, 2023
/unhold 8c3a8fbe-ff2a-4a81-90a7-e103c8dc88e3
a6eb55c
to
cb6fddb
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 11, 2023
/unhold 5ac92794-3f2d-4c98-affb-c0d83f7a9e0b
4ef9aea
to
8fea465
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 11, 2023
/unhold 26b7da66-24c5-4349-924b-29ee1f8d1069
8fea465
to
9ea9f3d
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 11, 2023
/unhold 52c6b6cc-7685-4816-9418-d10b8575abbd
9ea9f3d
to
75b117f
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 11, 2023
/unhold 3b7f1c54-2ec5-4de7-8104-f35f40626955
mleray
reviewed
Jul 12, 2023
mleray
reviewed
Jul 12, 2023
mleray
reviewed
Jul 12, 2023
mleray
reviewed
Jul 12, 2023
mleray
reviewed
Jul 12, 2023
75b117f
to
91859c0
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 17, 2023
/unhold 8108959d-179e-4c59-a8f9-bad864e70bfc
91859c0
to
fa31306
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 17, 2023
/unhold 0dfcd1a9-358e-4642-92ab-9cfe416c0b21
fa31306
to
700a785
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 17, 2023
/unhold 90b903af-84cc-4117-a2d3-fa837abde469
mleray
approved these changes
Jul 17, 2023
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.
Code looks good to me, and tests pass on local too 👍
700a785
to
17acf4f
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 18, 2023
/unhold 3bf37456-6e14-4431-bf5f-5134f75b6e64
17acf4f
to
9925657
Compare
planet-4
added a commit
to greenpeace/planet4-test-atlas
that referenced
this pull request
Jul 18, 2023
/unhold 676938d3-65e0-4c58-84c9-1857618cfa68
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ref: https://jira.greenpeace.org/browse/PLANET-7171
Cf. https://www.npmjs.com/package/@wordpress/e2e-test-utils-playwright
Cf. https://github.com/WordPress/gutenberg/tree/trunk/packages/e2e-test-utils-playwright
Related to: greenpeace/planet4-plugin-gutenberg-blocks#1084
Test run on planet4-develop no flaky no fail 💪
Documentation is pretty sparse for
@wordpress/e2e-test-utils-playwright
, so I made a gist short listWe extend the WP package
requestUtils
class to avoid the theme setting issue, until this fix is merged and published.BASE_URL
env variable toWP_BASE_URL
, to match package constraints/playwright/.auth/
as a local authentication state storagelogin()
,nonce()
,rest()
Main changes
login()
by centralizedtest.useAdminLoggedIn()
admin.createNewPost({})
editor.canvas
andgetByRole
rest()
byrequestUtils.createPage()
,requestUtils.rest()
admin.visitAdminPage
.env
file overriding capacity