-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
WIP - Migrate navigation block e2e tests to playwright #42695
Conversation
Size Change: 0 B Total Size: 1.26 MB ℹ️ View Unchanged
|
5f4e0e4
to
bb6c840
Compare
Great to see these being migrated. I'm not sure about the user login stuff. Need to look at what Puppeteer does. I'll try and contribute here but I have a lot of AFK in the next month. |
|
||
async function deleteUser( this: RequestUtils, username: string ) { | ||
await this.rest( { | ||
path: `wp/v2/users/${ username }`, |
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.
I think a user id is needed to delete a user, in manual testing a username
can't be used like this.
@talldan Just so you know there is work underway to rewrite the tests to make them simpler and easy to reason about. These will be in Playwright. Your work here is providing ample inspiration so thank you 🙇 |
What?
Something I started on a couple of months ago but haven't had time to finish is migrating nav block e2e tests to playright.
I thought I'd push this PR in case anyone wants to contribute to the effort.
I'd completely reorganised the test cases. The old test case description is above every new test case in a comment - something I did during development to make sure every test case was accounted for.
IIRC, I'd gotten as far as one of the tests that require logging in as a test user, but the
requestUtils.login( user )
wasn't working as it should.