-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add E2E tests to ensure non-admin users can log to wp-admin with no errors #10374
Add E2E tests to ensure non-admin users can log to wp-admin with no errors #10374
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.29 MB ℹ️ View Unchanged
|
Remove everything from users.json except user data. All the other data is no longer needed.
…-login-to-wp-admin
…-login-to-wp-admin
…-login-to-wp-admin
This reverts commit f5516fd.
…-login-to-wp-admin
…-login-to-wp-admin
…-login-to-wp-admin
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.
The E2E tests are passing and the code changes look good. Good job on removing the default.json
file!
Fixes #5101
Changes proposed in this Pull Request
editor
user to the E2E testing environment. The neweditor
user is created during the E2E environment setup.auth.setup.ts
to include logging in the editor.helpers.ts
file to login the editor and get the editor. It also adds a storage file for the editor's login data.wp-admin
pages. One test is for a site that is fully onboarded to WooPayments. The second site covers the editor being able to login and viewwp-admin
pages before the site is onboarded and then after the site is onboarded. These tests follow the pattern outlined in the Open admin area as non-admin critical flow test. This test spec is also tagged as critical.default.json
file. Since Puppeteer has been removed, the only data we need in the file is the user data. I removed all the other data and renamed it touesrs.json
. I updated the reference to it inshared.sh
and updated the variable it was assigned to. The variable is used insetup.sh
so I updated variable references there as well.Testing instructions
npm run test:e2e-reset
.npm run test:e2e-setup
editor
user.npm run test:e2e non-admin-wp-admin-access.spec
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge