Skip to content

Commit

Permalink
switched context to behat
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszszopinski committed Jul 9, 2024
1 parent 468a9fb commit 7b5d9e9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions skeleton/ibexa-ee/behat_suites.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ browser:
- '%paths.base%/features/browser'
contexts:
- Ibexa\Behat\API\Context\TestContext
- Ibexa\AdminUi\Behat\BrowserContext\NavigationContext
- Ibexa\AdminUi\Behat\BrowserContext\AuthenticationContext
- Ibexa\Behat\Browser\Context\AuthenticationContext
4 changes: 1 addition & 3 deletions skeleton/ibexa-ee/features/browser/BasicLogin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ Feature: An example test checking if user can login and if behat config is prope

@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
Given I log in as 'admin' with password 'publish'
3 changes: 1 addition & 2 deletions skeleton/ibexa-oss/behat_suites.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ browser:
- '%paths.base%/features/browser'
contexts:
- Ibexa\Behat\API\Context\TestContext
- Ibexa\AdminUi\Behat\BrowserContext\NavigationContext
- Ibexa\AdminUi\Behat\BrowserContext\AuthenticationContext
- Ibexa\Behat\Browser\Context\AuthenticationContext
4 changes: 1 addition & 3 deletions skeleton/ibexa-oss/features/browser/BasicLogin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ Feature: An example test checking if user can login and if behat config is prope

@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
Given I log in as 'admin' with password 'publish'
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private function prependDefaultConfiguration(ContainerBuilder $container): void
$configFile = __DIR__ . '/../Resources/config/prepend.yaml';

$container->addResource(new FileResource($configFile));

$configs = Yaml::parseFile($configFile, Yaml::PARSE_CONSTANT) ?? [];
foreach ($configs as $name => $config) {
$container->prependExtensionConfig($name, $config);
Expand Down

0 comments on commit 7b5d9e9

Please sign in to comment.