Skip to content

E2E Utils: Allow overriding username/password#53267

Merged
Mamaduka merged 1 commit intoWordPress:trunkfrom
juhi123:fix-52598
Oct 2, 2023
Merged

E2E Utils: Allow overriding username/password#53267
Mamaduka merged 1 commit intoWordPress:trunkfrom
juhi123:fix-52598

Conversation

@juhi123
Copy link
Copy Markdown
Contributor

@juhi123 juhi123 commented Aug 2, 2023

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

@juhi123 juhi123 requested a review from kevin940726 as a code owner August 2, 2023 11:05
@juhi123 juhi123 changed the title Fix REST API giving 400 Error when passing Fix REST API giving 400 Error when passing URL through .env file Aug 2, 2023
@juhi123 juhi123 changed the title Fix REST API giving 400 Error when passing URL through .env file Fix REST API giving 400 Error when passing URL and credentials through .env file Aug 2, 2023
@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended [Tool] E2E Test Utils /packages/e2e-test-utils labels Aug 2, 2023
@swissspidy swissspidy changed the title Fix REST API giving 400 Error when passing URL and credentials through .env file E2E Utils: Allow overriding username/password Oct 2, 2023
@Mamaduka Mamaduka merged commit 4968465 into WordPress:trunk Oct 2, 2023
@github-actions github-actions Bot added this to the Gutenberg 16.8 milestone Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Tool] E2E Test Utils /packages/e2e-test-utils [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e-utils-playwright : When giving external URL instead of docker site created by WP SCRIPT, given REST API endpoints give 400 error

3 participants