Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 0 additions & 88 deletions behat.yml

This file was deleted.

3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ x-volumes: &default-volumes
x-volumes-paas: &paas-volumes
volumes:
- .:/app:delegated
- /app/tests
- ./tests/behat:/app/tests/behat:${VOLUME_FLAGS:-delegated}
- ./tests/phpunit/tests:/app/tests/phpunit/tests:${VOLUME_FLAGS:-delegated}

x-environment: &default-environment
RESTY_RESOLVER: 8.8.8.8
Expand Down
2 changes: 1 addition & 1 deletion scripts/scaffold-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ else
rm -r .docker/config
rm -r .docker/scripts
rm composer.*
rm tests/behat/behat.screenshot.yml tests/behat/behat.travis.yml tests/behat/behat.yml tests/behat/bootstrap/FeatureContext.php tests/phpcs.xml tests/phpunit/bootstrap.php tests/phpunit/phpunit.xml
rm -r tests/behat/bootstrap tests/phpcs.xml tests/phpunit/bootstrap.php tests/phpunit/extract.php tests/phpunit/phpunit.xml
rm .gitlab-ci-inputs.yml
rm .gitlab-ci.paas.yml
fi
Expand Down
8 changes: 0 additions & 8 deletions tests/behat/behat.screenshot.yml

This file was deleted.

29 changes: 0 additions & 29 deletions tests/behat/behat.travis.yml

This file was deleted.

62 changes: 41 additions & 21 deletions tests/behat/behat.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,74 @@
# See https://github.com/govcms-tests/tests/blob/3.x-master/behat/behat.yml
default:
autoload: [ %paths.base%/bootstrap ]
autoload: [ '%paths.base%/bootstrap' ]
gherkin:
# Disable caching during development. It is enabled for profiles below.
cache: ~
filters:
# Allow skipping tests by tagging them with "@skipped"
# Allow skipping tests by tagging them with "@skipped".
tags: "~@skipped"
suites:
default:
paths: [ %paths.base%/features ]
paths: [ '%paths.base%/features' ]
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MarkupContext
- Drupal\DrupalExtension\Context\MessageContext
- IntegratedExperts\BehatScreenshotExtension\Context\ScreenshotContext
- FeatureContext
- BehatCliContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MarkupContext
- Drupal\DrupalExtension\Context\MessageContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
filters:
tags: "@d10&&~skipped"

extensions:
Behat\MinkExtension:
goutte: ~
Drupal\MinkExtension:
browserkit_http: ~
base_url: http://nginx:8080
files_path: %paths.base%/fixtures
files_path: '%paths.base%/fixtures'
browser_name: chrome
selenium2:
wd_host: "http://chrome:4444/wd/hub"
capabilities: { "browser": "chrome", "version": "*", "marionette": true, "extra_capabilities": { "chromeOptions": { "w3c": false } } }
capabilities:
browser: "chrome"
version: "*"
marionette: true
extra_capabilities:
chromeOptions:
w3c: false
args:
- --disable-dev-shm-usage
- --disable-extensions
- --disable-gpu
- --no-sandbox
- --headless
javascript_session: selenium2
# Provides integration with Drupal APIs.
Drupal\DrupalExtension:
blackbox: ~
api_driver: drupal
drush_driver: drush
drupal:
# Behat would run from within "build" dir.
drupal_root: /app/web
drush:
# Behat would run from within "build" dir.
root: /app/web
selectors:
message_selector: '.messages'
error_message_selector: '.messages.error'
success_message_selector: '.messages.status'
warning_message_selector: '.messages.warning'
# Allows to capture HTML and JPG screenshots (based on the driver used).
IntegratedExperts\BehatScreenshotExtension:
dir: %paths.base%/screenshots
fail: true
purge: false
p0:
DrevOps\BehatScreenshotExtension: ~

d10:
gherkin:
cache: '/tmp/behat_gherkin_cache'
filters:
tags: "@p0&&~@skipped"
p1:
tags: "@d10&&~@skipped"

d9:
gherkin:
cache: '/tmp/behat_gherkin_cache'
filters:
tags: "@p1&&~@skipped"
tags: "@d9&&~@skipped"
Loading