Use username and password from shared config in call to login
on @wordpress/e2e-test-utils
#42742
Labels
[Package] E2E Test Utils
/packages/e2e-test-utils
[Type] Bug
An existing feature does not function as intended
Description
E2E tests fail in environments where the default username and password are not
admin
andpassword
because these values are hardcoded in the login function. We need to use the values from the shared config (because they can be overridden in the env variables) instead of hardcode it in the login function.Step-by-step reproduction instructions
admin
andpassword
.login
function from the issue description inside a test case.Fetch api call failed for ${ apiFetch.nonceEndpoint }: ${ response.status }
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: