Skip to content

dev: upgrade e2e infra, add copilot setup and expand test coverage - #1288

Merged
Soare-Robert-Daniel merged 8 commits into
developmentfrom
dev/1004-e2e-copilot-setup
Jul 27, 2026
Merged

Soare-Robert-Daniel merged 8 commits into
developmentfrom
dev/1004-e2e-copilot-setup

Conversation

@lucadobrescu

@lucadobrescu lucadobrescu commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

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.yml prepares 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 through pre_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) and settings-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_LOG enabled (display off), so agent runs and e2e failures leave a readable debug.log.

Note

The large package-lock.json diff 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 literal wp_transient/ directory instead of DB transients, and an empty feeds shortcode attribute resolves to the newest feed group (e.g. the demo "News sites" group).

QA

  1. Open this PR's checks and find the Copilot Setup Steps run (the workflow triggers on changes to itself), or trigger it manually via Actions → workflow_dispatch.
    Expect: the job completes with the WordPress environment started via wp-env.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pirate-bot

pirate-bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Plugin build for ada415f is ready 🛎️!

Note

You can preview the changes in the Playground

@lucadobrescu lucadobrescu added the pr-checklist-skip Allow this Pull Request to skip checklist. label Jul 23, 2026
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Jul 23, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lucadobrescu lucadobrescu changed the title dev: add copilot setup and upgrade e2e deps dev: upgrade e2e infra, add copilot setup and expand test coverage Jul 23, 2026
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>
Comment thread package.json Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucadobrescu let's update this to the latest version

Comment thread package.json Outdated
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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also update the @wordpress/env & @wordpress/e2e-test-utils-playwright

Luca Dobrescu and others added 4 commits July 27, 2026 14:18
…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>
@Soare-Robert-Daniel
Soare-Robert-Daniel merged commit a247436 into development Jul 27, 2026
11 checks passed
@Soare-Robert-Daniel
Soare-Robert-Daniel deleted the dev/1004-e2e-copilot-setup branch July 27, 2026 13:35
@pirate-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.2.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist. released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants