-
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
e2e-utils-playwright : When giving external URL instead of docker site created by WP SCRIPT, given REST API endpoints give 400 error #52598
Comments
I'm experiencing similar issues. I think it arises from https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils-playwright/src/config.ts where Further in the code WP_ADMIN_USER is used and not WP_USERNAME or WP_PASSWORD. I'm not very fluent in TypeScript but changing the javascript to my example below fixes the issue for me.
|
Thanks for sharing it. Yeah, it seems With little modification, I was able to solve this issue. Now with the new PR, it seems to be working perfectly fine. |
Hi @juhi123, Yes, sort of typo 🙄 That's what happens when you try a quick edit online without testing environment... |
Yeah, I can relate 😄 @joostdekeijzer |
Description
Recently we have published our
e2e-utils-playwright
package to npm to enable the third-parties to adapt this in their organization, for that they should be able to test the E2E tests with their URL.But when adding URL and running the tests,
site-url/wp-admin/admin-ajax.php?action=rest-nonce
giving 404 error, a screenshot attached@kevin940726 @justintadlock would you mind checking this?
Step-by-step reproduction instructions
For testing purpose, I have added .env file in Gutenberg root
require('dotenv').config();
in playwright.config.tsScreenshots, screen recording, code snippet
Environment info
For testing using a test site created on https://tastewp.com/, may expire soon
Though I have tried with several localhost sites and live site and getting the same issue
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: