From dd47c4c523f91ec9f0ddba7f13f26cccaff23cf0 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Thu, 10 Sep 2026 13:14:33 +0200 Subject: [PATCH] IBX-12374: Converted the Behat suites to PHP configuration --- .github/workflows/browser-tests.yaml | 2 +- behat_suites.php | 23 +++++++++++++++++++++++ behat_suites.yaml | 11 ----------- 3 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 behat_suites.php delete mode 100644 behat_suites.yaml diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml index 75782b2..ee07d43 100644 --- a/.github/workflows/browser-tests.yaml +++ b/.github/workflows/browser-tests.yaml @@ -13,7 +13,7 @@ jobs: uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main with: project-edition: 'oss' - test-suite: '--profile=browser --suite=twig-components --config=vendor/ibexa/twig-components/behat_suites.yaml' + test-suite: '--profile=browser --suite=twig-components --config=vendor/ibexa/twig-components/behat_suites.php' secrets: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} AUTOMATION_CLIENT_ID: ${{ secrets.AUTOMATION_CLIENT_ID }} diff --git a/behat_suites.php b/behat_suites.php new file mode 100644 index 0000000..22da1dd --- /dev/null +++ b/behat_suites.php @@ -0,0 +1,23 @@ +import('../../ibexa/behat/behat_ibexa_oss.php') + ->withProfile((new Profile('browser')) + ->withSuite((new Suite('twig-components')) + ->withContexts( + TestContext::class, + AuthenticationContext::class + ) + ->withPaths('%paths.base%/features/browser'))); diff --git a/behat_suites.yaml b/behat_suites.yaml deleted file mode 100644 index 1ef5a0f..0000000 --- a/behat_suites.yaml +++ /dev/null @@ -1,11 +0,0 @@ -imports: - - ../../ibexa/behat/behat_ibexa_oss.yaml - -browser: - suites: - twig-components: - paths: - - '%paths.base%/features/browser' - contexts: - - Ibexa\Behat\API\Context\TestContext - - Ibexa\Behat\Browser\Context\AuthenticationContext