Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix behat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeycherepanov committed Apr 22, 2017
1 parent c72d106 commit 6dec8d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 52 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ install:
- "docker exec orocommerce_minion runuser -s /bin/sh -c '/var/www/app/console oro:install --env='$SYMFONY_ENV' --no-interaction --timeout 3600 --force --drop-database --user-name=admin --user-firstname=John --user-lastname=Doe --user-password=admin --user-email=johndoe@example.com --organization-name=Acme --application-url=http://minion/' www-data"
- "docker exec orocommerce_minion supervisorctl stop app-cron"
- "docker exec orocommerce_minion supervisorctl stop mq-consumer"
# Fix wrong path in behat config
- "docker exec orocommerce_minion runuser -s /bin/sh -c 'sed -ie \"s/\.\.\/\.\.\/package\/platform/\/var\/www\/vendor\/oro\/platform/g\" /var/www/behat.yml.dist' www-data"

matrix:
include:
Expand Down
61 changes: 9 additions & 52 deletions .travis/behat.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,12 @@
imports:
- /var/www/vendor/oro/platform/src/Oro/Bundle/TestFrameworkBundle/Resources/config/behat.yml.dist
- behat.yml.dist

default: &default
gherkin:
filters:
tags: ~@not-automated&&~@skip
extensions:
Behat\MinkExtension:
base_url: 'http://minion/'
default_session: 'first_session'
sessions:
first_session:
oroSelenium2:
wd_host: "http://phantomjs:8910/wd/hub"
Behat\Symfony2Extension: ~
Oro\Bundle\TestFrameworkBundle\Behat\ServiceContainer\OroTestFrameworkExtension:
reference_initializer_class: Oro\Bundle\ApplicationBundle\Tests\Behat\ReferenceRepositoryInitializer
shared_contexts:
- Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\OroMainContext
- Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\FixturesContext
- OroActivityListBundle::ActivityContext
- OroDataGridBundle::GridContext
- OroSecurityBundle::ACLContext
- OroSearchBundle::SearchContext
- OroImportExportBundle::ImportExportContext:
- '@oro_entity.entity_alias_resolver'
- '@oro_importexport.processor.registry'
- OroAddressBundle::AddressContext
- OroApplicationBundle::CommerceMainContext
- OroSalesBundle::SalesContext
- OroShippingBundle::SingleCurrencyContext
application_suites:
- OroApplicationBundle
- OroUserBundle
- OroCRMBundle
- OroNavigationBundle
- OroContactBundle
- OroAccountBundle
- OroTaskBundle
- OroEmailBundle
- OroHelpBundle
- OroSearchBundle
- OroDashboardBundle
- OroApplicationBundle
# @todo Uncomment after resolve BB-4971
# - OroShippingBundle

selenium2:
<<: *default
# Uncomment this in your behat.yml for run tests with Chrome browser
# extensions:
# Behat\MinkExtension:
# browser_name: chrome
# base_url: 'http://dev-commerce-crm.local/'
extensions: &default_extensions
Behat\MinkExtension:
base_url: 'http://minion/'
default_session: 'first_session'
sessions:
first_session:
oroSelenium2:
wd_host: "http://phantomjs:8910/wd/hub"

0 comments on commit 6dec8d4

Please sign in to comment.