Repository navigation
dev: upgrade e2e infra, add copilot setup and expand test coverage - #1288
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
Plugin build for ada415f is ready 🛎️!
Note You can preview the changes in the Playground |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
validate_category_feeds() intercepts add/update_post_metadata for feedzy_category_feed and drops URLs that do not fetch as real feeds, so the slug-resolution tests must bypass it when seeding fixtures. Passed locally only because of a stale SimplePie filesystem cache. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
@lucadobrescu let's update this to the latest version
Comment on lines
58
to
61
| "@wordpress/e2e-test-utils-playwright": "^1.26.0", | ||
| "@wordpress/element": "^5.35.0", | ||
| "@wordpress/env": "^9.10.0", | ||
| "@wordpress/env": "^10.26.0", | ||
| "@wordpress/eslint-plugin": "^22.0.0", |
Contributor
There was a problem hiding this comment.
Also update the @wordpress/env & @wordpress/e2e-test-utils-playwright
…latest Addresses review feedback from @Soare-Robert-Daniel on #1288. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ailure adm-zip 0.5.12 has a broken extractAllToAsync that never invokes its callback, so @wordpress/env 11 exits 0 after downloading the theme zips without ever booting Docker, and Playwright fails with 'Process from config.webServer exited early'. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Register the admin-ajax waitForResponse listener before clicking Run Now; with warm caches the response could land before the listener attached, timing out the logger spec on CI. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
editor.publishPost() waits for the published snackbar; the Feedzy block's server-side render fetches the remote feed during publish, which can exceed the default 10s action timeout on CI runners. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lucadobrescu
pushed a commit
that referenced
this pull request
Jul 27, 2026
- @wordpress/env ^9.10.0 -> ^11.11.0 and @wordpress/e2e-test-utils-playwright ^0.26.0 -> ^1.51.0, matching the versions chosen in #1288 - pin adm-zip 0.5.18 in the lockfile: 0.5.12's broken extractAllToAsync makes wp-env 11 exit 0 without starting any container - raise Playwright actionTimeout to 30s; feedzy blocks fetch remote feeds during save/render and exceed the 10s default on CI Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
6 tasks done
Contributor
|
🎉 This PR is included in version 5.2.7 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades the testing infrastructure and expands test coverage, mirroring what was done for Otter Blocks in Codeinwp/otter-blocks#2816. Part of https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/1004.
What changed
Copilot setup workflow — new
.github/workflows/copilot-setup-steps.ymlprepares the agent environment before a Copilot session: Node 20 with Playwright + Chromium, PHP with dev tools (phpcs, phpstan, phpunit, wp-cli), composer deps, and a running wp-env.E2E dependencies —
@wordpress/env^9.10.0 → ^10.26.0 and@wordpress/e2e-test-utils-playwright^0.26.0 → ^1.26.0, aligning the free repo with the versions the pro repo already uses.PHPUnit coverage — 68 new network-free tests (suite grows 92 → 160) across six files: shortcode attribute/cache/URL helpers, the full
feedzy_rss()render pipeline against local XML fixtures served throughpre_http_request, import helpers (duplicate detection, trim tags), feed-tweaks filters, the cron scheduler util, and a generic plugin-health suite (CPTs, REST routes, shortcode registration).E2E coverage — new
admin-pages.spec.js(generic admin health: import list, feed groups, settings tabs) andsettings-save.spec.js(general settings save round-trip persists after reload).wp-env tests config — the tests environment now runs with
WP_DEBUG+WP_DEBUG_LOGenabled (display off), so agent runs and e2e failures leave a readabledebug.log.Note
The large
package-lock.jsondiff is the lockfile regeneration for the two version bumps. New PHP tests document two current behaviors worth a follow-up look: SimplePie feed caches are written to a literalwp_transient/directory instead of DB transients, and an emptyfeedsshortcode attribute resolves to the newest feed group (e.g. the demo "News sites" group).QA
Expect: the job completes with the WordPress environment started via wp-env.
🤖 Generated with Claude Code