-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update e2e tests to reflect that drafts are now part of post status #90288
Merged
olaseni
merged 5 commits into
trunk
from
fix/update-e2e-where-drafts-are-now-part-of-post-status
May 6, 2024
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c9f3630
Update tests as drafts are now part of post sttatus
olaseni 43f81b9
Ensure that tests work with UI situation before 18.2.0
olaseni d24513f
Add missing `await`
olaseni d63c6a6
Merge branch 'trunk' into fix/update-e2e-where-drafts-are-now-part-of…
olaseni aa6f538
Merge branch 'trunk' into fix/update-e2e-where-drafts-are-now-part-of…
olaseni File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
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.
Why do we need both these calls? They seem to accomplish the same thing 🤔
The test also seems to complete successfully (on Simple and on Atomic) with only one of these lines.
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.
Actually the edge versions on simple and AT are the same and you won't notice a difference there. There are both running 18.2.0.
For versions before i.e. 18.1.2, which is what ordinary sites ( non-edge sites ) are using.
You can test this with:
yarn jest specs/editor/editor__post-advanced-flow.ts
... without the
GUTENBERG_EDGE=1
orTEST_ON_ATOMIC=true
. Apologies for not leaving this in the description.The UI for that version is different. That OK button is only present there.
Without using
Promise.race()
with those two lines, you'll get this error: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.
Gotcha! I think I simply forgot to build after making my changes to the tests, or they wouldn't have passed 🤦♂️