ワンクリックで
woo-beta-compat-test
// Use when a new WooCommerce beta or release candidate is available and you need to test the plugin's compatibility. Triggers on phrases like "test against WC beta", "compatibility test", "new WooCommerce version".
// Use when a new WooCommerce beta or release candidate is available and you need to test the plugin's compatibility. Triggers on phrases like "test against WC beta", "compatibility test", "new WooCommerce version".
| name | woo-beta-compat-test |
| description | Use when a new WooCommerce beta or release candidate is available and you need to test the plugin's compatibility. Triggers on phrases like "test against WC beta", "compatibility test", "new WooCommerce version". |
Run a full compatibility test of the released plugin against a new WooCommerce beta version. This covers QIT automated tests, GitHub Actions CI, and manual Playwright smoke tests.
Invoke with the WooCommerce beta version as argument:
/woo-beta-compat-test 10.6.0-beta.1
Follow all four steps sequentially. Report results after each step before moving to the next.
Download the currently released version from wordpress.org:
curl -L -o /tmp/woocommerce-google-analytics-integration.zip \
"https://downloads.wordpress.org/plugin/woocommerce-google-analytics-integration.latest-stable.zip"
Verify the download succeeded and the file is a valid zip.
Run these three QIT commands with the downloaded zip. Use the exact beta version provided by the user first. Only if a version is not available, fall back to the X.Y.Z-dev format (e.g., 10.6.0-beta.1 → 10.6.0-dev). Use --help on the failing command to discover available versions.
Note: Each command uses different flags — pay attention to the differences.
# run:activation uses --source (not --zip) and --woo for version
qit run:activation \
--woo "<VERSION>" \
--source /tmp/woocommerce-google-analytics-integration.zip \
woocommerce-google-analytics-integration
# run:woo-api uses --zip and --woocommerce_version, supports --wait
qit run:woo-api \
--woocommerce_version="<VERSION>" \
--zip /tmp/woocommerce-google-analytics-integration.zip \
--wait \
woocommerce-google-analytics-integration
# run:woo-e2e uses --zip and --woocommerce_version, supports --wait
qit run:woo-e2e \
--woocommerce_version "<VERSION>" \
--zip /tmp/woocommerce-google-analytics-integration.zip \
--wait \
woocommerce-google-analytics-integration
The --woocommerce_version flag on run:woo-api and run:woo-e2e only accepts specific enumerated values (check --help output). If the beta version is not listed, use the -dev suffix version instead.
After each command completes, analyze the report output. Summarize pass/fail status and highlight any failures with details.
Trigger both CI workflows with the beta version and wait for completion:
gh workflow run e2e-tests.yml \
-f wc-rc-version="<VERSION>"
gh workflow run php-unit-tests.yml \
-f wc-rc-version="<VERSION>"
After triggering:
gh run list --workflow=<workflow> to find the run IDsgh run watch <run-id> to wait for each run to completegh run view <run-id> --log-failedStart the local WordPress environment with the WooCommerce beta installed:
npm run wp-env:up
npm run build
npm run -- wp-env run tests-cli -- wp plugin update woocommerce --version="<VERSION>"
npm run -- wp-env run tests-cli -- wp wc update
Then use the Playwright MCP browser to perform these smoke tests:
wp-admin (user: admin, pass: password), go to WooCommerce → Settings → Integration → Google Analytics. Verify the settings page loads without errors.G-TEST12345), save. Verify settings persist after reload.Report the result of each check. If any check fails, provide details and screenshots.
Summarize all results in a table:
| Test | Status | Notes |
|---|---|---|
| QIT Activation | ✅/❌ | |
| QIT API | ✅/❌ | |
| QIT E2E | ✅/❌ | |
| GH Action: E2E Tests | ✅/❌ | |
| GH Action: PHP Unit Tests | ✅/❌ | |
| Smoke: Settings page | ✅/❌ | |
| Smoke: Save settings | ✅/❌ | |
| Smoke: Frontend GA snippet | ✅/❌ | |
| Smoke: Product page | ✅/❌ | |
| Smoke: Add to cart | ✅/❌ |
When any test fails, classify each error into one of three categories and take the corresponding action:
The error is in code from this repository (e.g., a PHP fatal in includes/, a JS error from assets/, a failing unit test in tests/).
Action: Fix the issue directly in the codebase. Run the failing test again to confirm the fix.
The error is related to the QIT tool itself or the testing environment (e.g., QIT command crashes, Docker/environment setup failures, test infrastructure timeouts, flaky QIT test runner behavior unrelated to plugin code).
Action: Draft a Slack message for the #qit channel describing the error, the QIT command that was run, and the full error output. Ask the user to send the message to the coresponding channel.
The error is caused by WooCommerce core or another plugin (e.g., a WooCommerce API regression, a breaking change in WC beta, a failure in a WC core E2E test unrelated to this plugin's code).
Action:
#woo-core-releases channel describing: