Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import dotenv from 'dotenv';
// Load environment variables
dotenv.config();

const baseURL = process.env.WORDPRESS_URL || 'http://localhost:8080';
const baseURL = process.env.WORDPRESS_URL || 'http://127.0.0.1:8080';

export default defineConfig({
testDir: './tests/e2e/specs',
Expand Down Expand Up @@ -98,7 +98,7 @@ export default defineConfig({
// Run WP Playground server before starting the tests
webServer: {
command: 'npx @wp-playground/cli server --mount=.:/wordpress/wp-content/plugins/progress-planner --blueprint=tests/e2e/blueprint.json --port=8080',
url: 'http://localhost:8080',
url: 'http://127.0.0.1:8080',
// Always reuse if server is already running (needed for Yoast tests which use Docker WordPress)
reuseExistingServer: true,
timeout: 120 * 1000,
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/api/tasks.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class TasksApi {
constructor( page: Page, request: APIRequestContext ) {
this.page = page;
this.request = request;
this.baseUrl = process.env.WORDPRESS_URL || 'http://localhost:8080';
this.baseUrl = process.env.WORDPRESS_URL || 'http://127.0.0.1:8080';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function globalSetup(config: FullConfig): Promise<void> {

console.log('Generating fresh auth.json...');

const baseURL = process.env.WORDPRESS_URL || 'http://localhost:8080';
const baseURL = process.env.WORDPRESS_URL || 'http://127.0.0.1:8080';
const browser = await chromium.launch();
const context = await browser.newContext({
ignoreHTTPSErrors: true,
Expand Down
Loading