-
Notifications
You must be signed in to change notification settings - Fork 122
Expand Playwright E2E and migrate local dev to wp-env (XWPENG-44, XWPENG-45) #1977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,9 +10,8 @@ | |
| "vendor/" | ||
| ], | ||
| "pathMappings": { | ||
| "/var/www/html/wp-content/plugins/stream-src": "${workspaceFolder}", | ||
| "/var/www/html/wp-content/plugins/stream": "${workspaceFolder}/build", | ||
| "/var/www/html": "${workspaceFolder}/local/public" | ||
| "/var/www/html/wp-content/plugins/stream": "${workspaceFolder}", | ||
| "/var/www/html": "${workspaceFolder}/local/public/wp" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wp-env doesn't serve core from As written, Xdebug maps container core files onto a different WordPress copy, so stepping into core lands in files that only coincidentally match. The plugin mapping on line 13 is the one that matters here; I'd drop this entry (or point it at the wp-env directory). |
||
| } | ||
| } | ||
| ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "phpVersion": "8.2", | ||
| "plugins": [".", "https://make.wordpress.org/test/files/2026/02/wp-email-logger.zip"], | ||
| "multisite": true, | ||
| "config": { | ||
| "WP_DEBUG": true, | ||
| "WP_DEBUG_LOG": true, | ||
| "SCRIPT_DEBUG": true | ||
| }, | ||
| "lifecycleScripts": { | ||
| "afterStart": "wp-env run cli -- wp plugin activate stream wp-email-logger --network" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
So a clone into
CI is unaffected (checkout dir = repo name), so this is a contributor sharp edge. Either resolve the directory name dynamically or document in contributing.md that the clone must be named |
||
| }, | ||
| "env": { | ||
| "development": { | ||
| "phpmyadminPort": 9001 | ||
| }, | ||
| "tests": { | ||
| "plugins": [".", "https://make.wordpress.org/test/files/2026/02/wp-email-logger.zip"], | ||
| "mappings": { | ||
| "wp-content/plugins/advanced-custom-fields": "./local/public/wp-content/plugins/advanced-custom-fields", | ||
| "wp-content/plugins/easy-digital-downloads": "./local/public/wp-content/plugins/easy-digital-downloads", | ||
| "wp-content/plugins/jetpack": "./local/public/wp-content/plugins/jetpack", | ||
| "wp-content/plugins/user-switching": "./local/public/wp-content/plugins/user-switching", | ||
| "wp-content/plugins/wordpress-seo": "./local/public/wp-content/plugins/wordpress-seo", | ||
| "wp-content/plugins/two-factor": "./local/public/wp-content/plugins/two-factor", | ||
| "wp-content/mu-plugins/mercator": "./local/public/wp-content/mu-plugins/mercator" | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftovers now that GHCR and Compose are gone:
WORDPRESS_IMAGE_VERSION: php8.2(line 9) no longer has a consumer — PHP is pinned byphpVersionin.wp-env.json, and wp-env's env override isWP_ENV_PHP_VERSION(whichswitch-to:php*uses).packages: read(lines 19 and 73) was only needed for theghcr.iologin this PR removes.Both are harmless, just dead config worth clearing while this file is already being touched.