This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 218
Playwright E2E tests: Multiple signed in roles #10561
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
6d0668c
Convert checkout place order E2E tests to Playwright
tarhi-saad e99ca49
Add "gotoMyAccount" method
tarhi-saad 6e90115
Create login/logout utility functions
tarhi-saad c71f95e
Use the existing "customer" test data
tarhi-saad 7aa81cc
Complete the place order test cases
tarhi-saad 4b04cdc
Fix "My Account" page title
tarhi-saad 29ae83b
Fix rebase
tarhi-saad b1ec104
Reset My account page title
tarhi-saad f4a780a
Check for heading instead of the page title
tarhi-saad 27221a2
Check for heading in login/logout functions
tarhi-saad 263f515
Fix all failing tests
tarhi-saad 768ca6d
Add guest/customer/admin roles
tarhi-saad a27e226
Update the auth setup
tarhi-saad fb22c66
Register the auth setup within Playwright
tarhi-saad 3ca7bcd
Update testing cases
tarhi-saad 74598aa
Add generated auth files to .gitignore
tarhi-saad d54759c
Tidy up comments
tarhi-saad 2552bb5
Remove unnecessary comment
tarhi-saad f87427a
Update comments
tarhi-saad 913f58b
Remove unnecessary comment
tarhi-saad 84f3d21
Update comment for Guest case
tarhi-saad 3d9fb92
Remove confusing comment
tarhi-saad dd09d82
Remove another unnecessary comment
tarhi-saad 12d5357
Remove unnecessary Playwright project dependency
tarhi-saad c254a36
Tidy up the file structure and constants
tarhi-saad 436bc81
Fix mixed up test descriptions
tarhi-saad 27c98e3
Remove commented code
tarhi-saad 73d9b27
Remove unnecessary function from frontend-utils
tarhi-saad bdc6f19
Refactor testing cases
tarhi-saad 6024135
Rename testing file
tarhi-saad 5f67b4a
Delete unused testing file
tarhi-saad 5b58fc0
Ensure we're logged out before trying to log in as a user
opr 4bcccbf
Log out before each authentication setup step
opr 6c1f7c5
Ensure tests requiring admin are logged in
opr a662985
Log in as admin during block theme setup
tarhi-saad 7fa1e5a
Fix Playwright strict mode violation
tarhi-saad 63f69a8
Run Multiple sign-in roles to the global-setup phase
tarhi-saad 007c05f
Remove unnecessary login as admin
tarhi-saad 4ae8dd1
Remove "auth.setup" dependency since the logic lives in the global se…
tarhi-saad 4fe2bb8
Remove unnecessary login as admin from test files
tarhi-saad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ tests/cli/vendor | |
**/e2e/artifacts/ | ||
/artifacts/ | ||
/playwright-report/ | ||
**/e2e/.auth | ||
|
||
# Logs | ||
/logs | ||
|
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
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
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
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.
We are saving these at the project root, but the
.gitignore
only ignores things ine2e
. We should update these paths.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.
@opr, when I run the tests locally, these files are created in
tests/e2e/.auth/
, not on the project root.