Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
#15 - Install and configure Behat with Selenium.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABGEO committed Feb 3, 2021
1 parent c2614be commit e142979
Show file tree
Hide file tree
Showing 6 changed files with 897 additions and 19 deletions.
31 changes: 31 additions & 0 deletions behat.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
default:
suites:
default:
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\DrushContext
- Drupal\DrupalExtension\Context\BatchContext
- miiimooo\BehatTools\Context\ParagraphsContext
gherkin:
cache: ~
extensions:
Drupal\MinkExtension:
goutte: ~
base_url: http://nginx
javascript_session: selenium2
selenium2:
wd_host: http://chrome:9515
capabilities: { 'chrome': {'switches':['--start-maximized','--disable-gpu','--headless']}}
Drupal\DrupalExtension:
blackbox: ~
api_driver: drupal
drupal:
drupal_root: web/
selectors:
message_selector: '.messages'
error_message_selector: '.messages.messages--error'
success_message_selector: '.messages.messages--status'
warning_message_selector: '.messages.messages--warning'
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
"zaporylie/composer-drupal-optimizations": "^1.0"
},
"require-dev": {
"drupal/core-dev": "^8.8.0"
"behat/behat": "^3.7",
"drupal/coder": "^8.3",
"drupal/core-dev": "^8.8.0",
"drupal/drupal-extension": "^4.1",
"miiimooo/behat-tools": "dev-master"
},
"conflict": {
"drupal/drupal": "*"
Expand Down
Loading

0 comments on commit e142979

Please sign in to comment.