forked from Metadrop/drupal-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
behat.yml
106 lines (105 loc) · 4 KB
/
behat.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
default:
autoload:
"": "%paths.base%/tests/functional/behat/bootstrap/"
formatters:
pretty:
verbose: false
paths: false
snippets: true
junit:
output_path: "%paths.base%/reports/behat/junit/"
suites:
default:
paths:
- "%paths.base%/tests/functional/behat/features/"
filters:
tags: "~@exclude"
contexts:
- FeatureContext
- NuvoleWeb\Drupal\DrupalExtension\Context\CKEditorContext
- NuvoleWeb\Drupal\DrupalExtension\Context\PositionContext
- NuvoleWeb\Drupal\DrupalExtension\Context\ResponsiveContext:
devices:
laptop: 1200x800
desktop: 2560x1440
mobile_portrait: 370x650
mobile_landscape: 650x370
tablet_portrait: 800x1024
tablet_landscape: 1024x768
- Drupal\DrupalExtension\Context\MinkContext
- Drupal\DrupalExtension\Context\MessageContext
- Drupal\DrupalExtension\Context\MarkupContext
- Drupal\DrupalExtension\Context\DrushContext
- Metadrop\Behat\Context\CacheContext
- Metadrop\Behat\Context\ContentAuthoredContext
- Metadrop\Behat\Context\CronContext
- Metadrop\Behat\Context\DebugContext:
parameters:
"report_on_error": true
"error_reporting_path": "/var/www/html/web/sites/default/files/behat/errors"
"error_reporting_url": "http://example.docker.localhost:8000/sites/default/files/behat/errors"
"screenshots_url": "http://example.docker.localhost:8000/sites/default/files/behat/screenshots"
"screenshots_path": "/var/www/html/web/sites/default/files/behat/screenshots"
"page_contents_path": "/var/www/html/web/sites/default/files/behat/pages"
- Metadrop\Behat\Context\FileContext
- Metadrop\Behat\Context\FormContext
- Metadrop\Behat\Context\EntityContext
- Metadrop\Behat\Context\LogsContext:
parameters:
write_report: true
- Metadrop\Behat\Context\NodeAccessContext
- Metadrop\Behat\Context\ParagraphsContext
- Metadrop\Behat\Context\UIContext:
parameters:
scroll_offset: -100
- Metadrop\Behat\Context\UrlContext
- Metadrop\Behat\Context\UsersContext
- Metadrop\Behat\Context\WaitingContext
- Metadrop\Behat\Context\MediaContext
extensions:
Drupal\MinkExtension:
ajax_timeout: 5
browserkit_http: ~
browser_name: "chrome"
base_url: "http://apache"
show_cmd: lynx %s
files_path: "%paths.base%/tests/functional/behat/files"
javascript_session: selenium2
selenium2:
wd_host: http://hub:4444/wd/hub
capabilities:
browser: "chrome"
NuvoleWeb\Drupal\DrupalExtension:
services: "/var/www/html/vendor/metadrop/behat-contexts/services.yml"
blackbox: ~
api_driver: "drupal"
drupal:
# Change this to the absolute path to Drupal install.
drupal_root: "/var/www/html/web"
region_map:
content: ".region-content"
content bottom: ".region-content-bottom"
footer: "footer"
header: ".region-header"
header extra: ".region-header-extra"
highlighted: ".region-highlighted"
sidebar responsive: ".region-sidebar-responsive"
sidebar: ".region-sidebar-left"
fixed: ".region-fixed"
content top: ".region-content-top"
table revision: ".node-revision-table"
breadcrumb: ".breadcrumb"
selectors:
message_selector: ".messages"
success_message_selector: ".messages--success"
error_message_selector: ".messages--error"
warning_message_selector: ".messages--warning"
text:
password_field: "edit-pass"
username_field: "edit-name"
log_in: "Log in"
log_out: "Log out"
node_submit_label: "Save and publish"
Bex\Behat\StepTimeLoggerExtension:
enabled_always: true
output: [console, csv]