E2E Utils: Allow overriding username/password by juhi123 · Pull Request #53267 · WordPress/gutenberg (original) (raw)

What?

WP_ADMIN_USER was hardcoded in config.ts. Fixes #52598

Why?

Because of hardcoded values, the credential variables was not passing through .env file and was giving 400 error

How?

Testing Instructions

Add .env file in your test directory and run the tests, don't forget to add require( 'dotenv' ).config(); in your playwright.config.ts