Skip to content

Add PHP Playwright browser tests wiring across the 3 infra stacks - #2056

Draft
katarzynazawada wants to merge 1 commit into
6.0from
playwright-php-poc
Draft

katarzynazawada wants to merge 1 commit into
6.0from
playwright-php-poc

Conversation

@katarzynazawada

Copy link
Copy Markdown
Contributor

Summary

Wires admin-ui's new PHP Playwright test suite (PHPUnit + in-process Symfony kernel routing, an alternative to the TS Playwright approach) into this repo's CI, mirroring the existing Behat regression pattern (browser-tests.yml): the same job runs across all 3 infra stacks —

  • PostgreSQL 18 / Varnish / Redis 7.2
  • MariaDB 11.4 / Elastic 8 / Valkey latest
  • MySQL 8.4 / Solr 8 / Redis latest

Adds .github/workflows/playwright-tests.yml, calling the new reusable workflow in ibexa/gh-workflows with test-package: admin-ui.

dependencies.json pins both ibexa/cohesivo-playwright and ibexa/admin-ui to their PR branches: ci-scripts only swaps in ibexa/commerce itself (the repo this workflow runs from), so admin-ui would otherwise still resolve to its normal released version, which doesn't have tests/playwright-tests-php yet. Verified locally (reproduced ci-scripts' exact jq-based dependency-merge logic) that this correctly overrides the already-present admin-ui requirement, not just adds a new one.

This is one of 4 related branches (cohesivo-playwright, gh-workflows, admin-ui, commerce), all on playwright-php-poc, kept deliberately independent of each other and of any in-flight TS Playwright work:

Test plan

  • YAML syntax valid, actionlint clean
  • Verified the dependencies.json package-override mechanism locally against a toy composer.json reproducing this exact scenario
  • Not yet exercised on real CI

🤖 Generated with Claude Code

Mirrors this repo's existing Behat regression pattern (browser-tests.yml):
runs admin-ui's PHP Playwright suite (PHPUnit + in-process Symfony
kernel routing) across the same PostgreSQL/Varnish/Redis,
MariaDB/Elastic/Valkey, and MySQL/Solr/Redis stacks.

dependencies.json pins both ibexa/cohesivo-playwright and ibexa/admin-ui
to this PR's own branches — ci-scripts only swaps in ibexa/commerce
itself (the repo this workflow runs from), so admin-ui would otherwise
come from its normal released version, which doesn't have
tests/playwright-tests-php yet. Drop both pins once everything merges.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant