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