Skip to content

Commit

Permalink
Playwright: fix relative URLs (#42361)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Jul 13, 2022
1 parent e4db3d2 commit 6f2d777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ ln -s gutenberg/packages/e2e-tests/plugins/* .
You'll need to run this again if new plugins are added. To run e2e tests:

```bash
WP_BASE_URL=http://localhost:8888/gutenberg npm run test-e2e
WP_BASE_URL=http://localhost:8888/gutenberg/ npm run test-e2e
```

#### Caching of PHP files
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-test-utils-playwright/src/request-utils/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface User {

async function login( this: RequestUtils, user: User = this.user ) {
// Login to admin using request context.
let response = await this.request.post( '/wp-login.php', {
let response = await this.request.post( 'wp-login.php', {
failOnStatusCode: true,
form: {
log: user.username,
Expand All @@ -21,7 +21,7 @@ async function login( this: RequestUtils, user: User = this.user ) {

// Get the nonce.
response = await this.request.get(
'/wp-admin/admin-ajax.php?action=rest-nonce',
'wp-admin/admin-ajax.php?action=rest-nonce',
{
failOnStatusCode: true,
}
Expand Down

0 comments on commit 6f2d777

Please sign in to comment.