Skip to content

Commit

Permalink
Try reducing timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Aug 20, 2024
1 parent 24f174b commit 9c7afb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions test/e2e/blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@
"features": {
"networking": true
},
"constants": {
"WP_HTTP_BLOCK_EXTERNAL": "true"
},
"siteOptions": {
"permalink_structure": "/%postname%/"
},
"steps": [
{
"step": "defineWpConfigConsts",
"consts": {
"WP_DEBUG": false,
"WP_DEBUG_DISPLAY": false,
"WP_DEBUG_LOG": "/wordpress/wp-content/plugins/gatherpress/artifacts/debug.log",
"DISABLE_WP_CRON": true,
"GATHERPRESS_ALPHA_VERSION": 1
}
},
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { defineConfig, devices } from '@playwright/test';
const {
...baseConfig
} = require('@wordpress/scripts/config/playwright.config');
// import baseConfig from '@wordpress/scripts/config/playwright.config.js';


Check failure on line 16 in test/e2e/playwright.config.ts

View workflow job for this annotation

GitHub Actions / JavaScript Coding Standards

Delete `⏎`
export default defineConfig({
Expand Down Expand Up @@ -69,12 +68,13 @@ export default defineConfig({
webServer: {
...baseConfig.webServer,
command: 'set WP_BASE_URL=http://127.0.0.1:9400/ && npm run playground',
timeout: 120_000, // 120 seconds.
// timeout: 180_000, // 180 seconds.
port: 9400,
reuseExistingServer: !process.env.CI,
},
use: {
...baseConfig.use,
baseURL: 'http://127.0.0.1:9400',
actionTimeout: 15_000, // 10 seconds +5 seconds to help webkit tests pass.
},
});

0 comments on commit 9c7afb0

Please sign in to comment.