Skip to content

IBX-11740: Added playwright-browser-tests.yml - #100

Open
pawlakadrian wants to merge 26 commits into
mainfrom
ibx-11740-playwright
Open

pawlakadrian wants to merge 26 commits into
mainfrom
ibx-11740-playwright

Conversation

@pawlakadrian

@pawlakadrian pawlakadrian commented May 27, 2026 •

Copy link
Copy Markdown
🎫 Issue IBX-11740

Related PRs:

Description:

Adds playwright-browser-tests.yml — a reusable workflow for running Playwright tests across Ibexa packages.

  • Reuses prepare_project_edition.sh from ibexa/ci-scripts (same script browser-tests.yml uses) to set up the app for the given edition
  • Installs cohesivo-playwright from vendor, builds it, then runs npm run test:all
  • APP_EDITION is set from project-edition input — only tests tagged for the given edition are executed
  • No hardcoded credentials — uses secrets.ADMIN_LOGIN/ADMIN_PASSWORD with standard test defaults as fallback
  • Artifacts collected per edition from all playwright-tests/ directories in vendor
  • Slack notifications on failure always, and on success when send-success-notification is enabled.

For QA:

Documentation:

@pawlakadrian
pawlakadrian marked this pull request as draft May 27, 2026 10:57
@pawlakadrian pawlakadrian changed the title IBX-11740: Added playwright-browser-tests.yml [DON'T MERGE - POC] IBX-11740: Added playwright-browser-tests.yml Jun 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@pawlakadrian
pawlakadrian marked this pull request as ready for review August 4, 2026 11:32
@pawlakadrian pawlakadrian changed the title [DON'T MERGE - POC] IBX-11740: Added playwright-browser-tests.yml IBX-11740: Added playwright-browser-tests.yml Sep 4, 2026
@pawlakadrian
pawlakadrian requested a review from a team September 9, 2026 11:43
pawlakadrian and others added 16 commits October 6, 2026 09:56
The "Install ibexa/cohesivo-playwright" step always ran composer
require/update against $COHESIVO_VERSION (falling back to the floating
$PROJECT_VERSION branch alias), even when the tested package's own
dependencies.json had already pinned ibexa/cohesivo-playwright to a
specific fix/dev branch earlier in the same job (via
prepare_project_edition.sh). That later step silently overwrote the
earlier pin, so a package's CI run could never actually validate
against an unmerged cohesivo-playwright branch.

Now the step first checks whether ibexa/cohesivo-playwright is already
present in composer.json's require/require-dev; if so, and the caller
didn't explicitly pass cohesivo-version, it leaves the existing pin
alone instead of overwriting it. An explicit cohesivo-version input
still takes precedence as before.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

5 participants