You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix plugin-check CI: pin dist-archive-command to v3.1.0 (#757)
* WIP
* filter out the activity category
* tweak when onboarding tasks should show, pp-hosts compat
* Replace hardcoded Ravi icon with branding system icon
Use get_admin_menu_icon() from the branding system instead of
hardcoded icon_progress_planner.svg references, so hosts with
custom branding automatically get their own icon everywhere.
Closes#51
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix coding standards: add backslash prefix to global functions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix e2e onboarding test: remove pre-set license key and mock remote API
The blueprint was pre-setting progress_planner_license_key, which made
is_privacy_policy_accepted() return true and the welcome screen never
appeared. The onboarding test couldn't find .prpl-welcome.
Fix: remove the license key from the blueprint so the fresh install
onboarding screen shows, and mock the remote progressplanner.com API
calls (get-nonce + onboard) since Playground can't reach them.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix onboarding test: wait for page reload after form submission
After the form submit triggers the JS flow (remote API → save license key
→ window.location.reload()), explicitly wait for the page load event
before checking for the dashboard widget.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix onboarding test: bypass remote API with direct AJAX call
Previous approaches using page.route() failed because Playwright's
route mocking doesn't intercept XMLHttpRequest in WP Playground.
Instead, use page.evaluate() to call the local WP AJAX save endpoint
directly, then reload the page to verify the dashboard appears.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix onboarding test: use XMLHttpRequest instead of fetch
The fetch() API fails in Playground's service worker environment
with "TypeError: Failed to fetch". Use XMLHttpRequest instead,
which is the same mechanism the actual onboarding JS uses.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix e2e onboarding test for WP Playground environment
The onboarding test was broken since the Docker→Playground migration:
1. Blueprint pre-set the license key, hiding the welcome screen
2. page.route() cannot intercept requests handled by Playground's
service worker, so the remote API (progressplanner.com) calls
in the JS onboarding flow silently fail
Fix by:
- Removing pre-set license key from blueprint (keep demo_data_generated
to prevent Playground class from auto-generating one)
- Using Playwright's page.request.post() to call the local WP AJAX
endpoint directly — this bypasses the service worker entirely while
sharing the page's auth cookies
Works in both Playground (e2e-tests) and Docker (yoast-premium-tests).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* apply branding to dashboard widget titles
* Pin dist-archive-command to v3.1.0 for WP-CLI 2.12 compat
dist-archive-command v3.2.0 requires wp-cli ^2.13 but the CI runner
(shivammathur/setup-php) provides 2.12.0, causing plugin-check to fail.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments