-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathbehat.php
More file actions
69 lines (67 loc) · 2.96 KB
/
behat.php
File metadata and controls
69 lines (67 loc) · 2.96 KB
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
<?php
use Afup\Tests\Behat\Bootstrap\FeatureContext;
use Behat\Config\Config;
use Behat\Config\Extension;
use Behat\Config\Profile;
use Behat\Config\Suite;
use Behat\MinkExtension\Context\MinkContext;
use Behat\MinkExtension\ServiceContainer\MinkExtension;
use Robertfausk\Behat\PantherExtension\ServiceContainer\PantherExtension;
return (new Config())
->withProfile(
(new Profile('default'))
->withExtension(new Extension(PantherExtension::class))
->withExtension(new Extension(MinkExtension::class, [
'base_url' => 'https://apachephptest:80',
'files_path' => '%paths.base%/tests/behat/files',
'default_session' => 'browserkit_http',
'javascript_session' => 'panther',
'sessions' => [
'browserkit_http' => [
'browserkit_http' => [
'http_client_parameters' => [
'verify_peer' => false,
'verify_host' => false,
],
],
],
'panther' => [
'panther' => [
'options' => [
'browser' => 'chrome',
'webServerDir' => '%paths.base%/htdocs',
'external_base_uri' => 'https://apachephptest:80',
],
'manager_options' => [
'chromedriver_arguments' => [
'--log-path=/var/www/html/chromedriver.log',
'--verbose',
],
'capabilities' => [
'goog:chromeOptions' => [
'args' => [
'--headless',
'--disable-gpu',
'--no-sandbox',
'--disable-dev-shm-usage',
'--disable-extensions',
'--ignore-certificate-errors',
'--disable-smooth-scrolling',
],
],
],
'external_base_uri' => 'https://apachephptest:80',
],
],
],
],
]))
->withSuite(
(new Suite('web_features'))
->withContexts(
FeatureContext::class,
MinkContext::class
)
->withPaths('%paths.base%/tests/behat')
)
);