-
Notifications
You must be signed in to change notification settings - Fork 16
/
behat.common.yml
91 lines (89 loc) · 3.12 KB
/
behat.common.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
default:
autoload:
'': %paths.base%/tests/features/bootstrap
suites:
default:
paths:
- %paths.base%/tests/features
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\MarkupContext
- Drupal\DrupalExtension\Context\DrushContext
extensions:
Behat\MinkExtension:
goutte: ~
selenium2: ~
files_path: %paths.base%/tests/files
Drupal\DrupalExtension:
blackbox: ~
subcontexts:
paths:
- %paths.base%
selectors:
message_selector: '.messages'
error_message_selector: '.messages--error'
success_message_selector: '.messages--status'
region_map:
# Main content area usually overridden by Panels
Content: ".main-content"
# Regular Drupal Block regions (not panels)
Secondary Menu Region: ".region-secondary-menu"
Header Region: ".region-header"
Primary Menu Region: ".region-primary-menu"
Highlighted Region: ".region-highlighted"
Featured Top Region: ".region-featured-top"
Breadcrumb Region: ".region-breadcrumb"
Sidebar First Region: ".region-sidebar-first"
Content Region: ".region-content"
Sidebar Second Region: ".region-sidebar-second"
Featured Bottom First Region: ".region-featured-bottom-first"
Featured Bottom Second Region: ".region-featured-bottom-second"
Featured Bottom Thrid Region: ".region-featured-bottom-third"
Footer First: ".region-footer-first"
Footer Second: ".region-footer-second"
Footer Third: ".region-footer-third"
Footer Fourth: ".region-footer-fourth"
Footer Fifth: ".region-footer-fifth"
# Custom areas rendered in the template
Header: ".header"
Navbar: ".menu--main"
Footer: ".site-footer"
# Seven Theme
Admin Content: ".region-content"
# Page Elements
Page Title: ".page-title"
Breadcrumb: ".breadcrumb"
# Setup for Google Chrome only tests.
chrome:
suites:
default:
filters:
tags: "@chrome"
extensions:
Behat\MinkExtension:
selenium2:
browser: chrome
capabilities: {"browser": "chrome", "browserName": "chrome", "browserVersion": "ANY", "version": "ANY"}
# Docker profile.
# For use inside the CLI container in Docksal.
docker:
extensions:
Behat\MinkExtension:
# URL of the site when accessed inside Docksal.
base_url: http://web
# Configure browser to be used. Browser must be available on wd_host.
# Stick with chrome by default. It's 2x faster than firefox or phantomjs (your results may vary).
browser_name: chrome
selenium2:
wd_host: http://browser:4444/wd/hub
capabilities: { "browser": "chrome", "version": "*" }
Drupal\DrupalExtension:
drupal:
# Site docroot inside Docksal.
drupal_root: /var/www/web
drush:
# Site docroot inside Docksal.
root: /var/www/web