-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add E2E tests to ensure non-admin users can log to wp-admin with no e…
…rrors (#10374) Co-authored-by: Eduardo Umpierre <[email protected]>
- Loading branch information
1 parent
ad9e840
commit b1c8328
Showing
9 changed files
with
208 additions
and
311 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog/dev-5101-add-e2e-test-non-admin-users-can-login-to-wp-admin
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: dev | ||
|
||
Add new E2E tests to make sure a non-admin user, such as an editor, can access the wp-admin without errors. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -18,6 +18,11 @@ export const config = { | |
guest: { | ||
email: '[email protected]', | ||
}, | ||
editor: { | ||
username: 'editor', | ||
password: 'password', | ||
email: '[email protected]', | ||
}, | ||
}, | ||
products: { | ||
cap: { | ||
|
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"users": { | ||
"admin": { | ||
"username": "admin", | ||
"password": "password", | ||
"email": "[email protected]" | ||
}, | ||
"customer": { | ||
"username": "customer", | ||
"password": "password", | ||
"email": "[email protected]" | ||
}, | ||
"subscriptions-customer": { | ||
"username": "subscriptions-customer", | ||
"password": "password", | ||
"email": "[email protected]" | ||
}, | ||
"guest": { | ||
"email": "[email protected]" | ||
}, | ||
"editor": { | ||
"username": "editor", | ||
"password": "password", | ||
"email": "[email protected]" | ||
} | ||
} | ||
} |
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.