Skip to content

Commit

Permalink
[Behat] IBX-8416: Add basic behat feature to bundle generator
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszszopinski committed Jun 21, 2024
1 parent 3201996 commit 7af674c
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skeleton/ibexa-ee/.github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
with:
project-edition: 'commerce'
test-suite: '--profile=browser --suite=__PACKAGE_NAME__ --config=vendor/__VENDOR_NAME__/__PACKAGE_NAME__/behat.yaml'
test-suite: '--profile=browser --suite=__PACKAGE_NAME__ --config=vendor/__VENDOR_NAME__/__PACKAGE_NAME__/behat_suites.yaml'
secrets:
SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ browser:
- '%paths.base%/features/browser'
contexts:
- Ibexa\Behat\API\Context\TestContext
- Ibexa\AdminUi\Behat\BrowserContext\NavigationContext
- Ibexa\AdminUi\Behat\BrowserContext\AuthenticationContext
Empty file.
8 changes: 8 additions & 0 deletions skeleton/ibexa-ee/features/browser/BasicLogin.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@IbexaHeadless @IbexaExperience @IbexaCommerce
Feature: An example test checking if user can login and if behat config is proper.

@javascript
Scenario: User can log in as admin user
Given I open Login page in admin SiteAccess
When I log in as admin with password publish
Then I should be on Dashboard page
2 changes: 1 addition & 1 deletion skeleton/ibexa-oss/.github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
with:
project-edition: 'oss'
test-suite: '--profile=browser --suite=__PACKAGE_NAME__ --config=vendor/__VENDOR_NAME__/__PACKAGE_NAME__/behat.yaml'
test-suite: '--profile=browser --suite=__PACKAGE_NAME__ --config=vendor/__VENDOR_NAME__/__PACKAGE_NAME__/behat_suites.yaml'
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ browser:
- '%paths.base%/features/browser'
contexts:
- Ibexa\Behat\API\Context\TestContext
- Ibexa\AdminUi\Behat\BrowserContext\NavigationContext
- Ibexa\AdminUi\Behat\BrowserContext\AuthenticationContext
Empty file.
8 changes: 8 additions & 0 deletions skeleton/ibexa-oss/features/browser/BasicLogin.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@IbexaOSS
Feature: An example test checking if user can login and if behat config is proper.

@javascript
Scenario: User can log in as admin user
Given I open Login page in admin SiteAccess
When I log in as admin with password publish
Then I should be on Dashboard page

0 comments on commit 7af674c

Please sign in to comment.