-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathacceptance.suite.dist.yml
107 lines (105 loc) · 3.46 KB
/
acceptance.suite.dist.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
107
# Codeception Test Suite Configuration
#
# Suite for acceptance tests.
# Perform tests in browser using the WPWebDriver or WPBrowser.
# Use WPDb to set up your initial database fixture.
# If you need both WPWebDriver and WPBrowser tests - create a separate suite.
actor: AcceptanceTester
modules:
enabled:
- WPDb
- WPWebDriver
- \Helper\Acceptance
config:
WPLoader:
wpRootFolder: "%WP_ROOT_FOLDER%"
dbName: "%DB_NAME%"
dbHost: "%DB_HOST%"
dbUser: "%DB_USER%"
dbPassword: "%DB_PASSWORD%"
tablePrefix: "%TABLE_PREFIX%"
domain: "%WP_DOMAIN%"
adminEmail: "%ADMIN_EMAIL%"
title: "Test"
theme: "storefront"
plugins: ['bea-sanitize-filename/bea-sanitize-filename.php']
activatePlugins: ['bea-sanitize-filename/bea-sanitize-filename.php']
isolatedInstall: false
WPDb:
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%'
user: '%DB_USER%'
password: '%DB_PASSWORD%'
dump: "tests/_data/dump.sql"
populate: true #import the dump before the tests
cleanup: false #import the dump between tests
url: '%WP_URL%'
urlReplacement: false #replace the hardcoded dump URL with the one above
tablePrefix: '%TABLE_PREFIX%'
WPWebDriver:
url: '%WP_URL%'
adminUsername: '%ADMIN_USERNAME%'
adminPassword: '%ADMIN_PASSWORD%'
adminPath: '%WP_ADMIN_PATH%'
host: 'hub-cloud.browserstack.com'
port: 80
browser: chrome
capabilities:
browserstack.user: '%BROWSERSTACK_USERNAME_REAL%'
browserstack.key: '%BROWSERSTACK_KEY%'
browserstack.local: true # Enable de the browsetStack local
browserstack.debug: true # Debug and capture videos/screenshots
acceptSslCerts: true
project: 'bea-sanitize-filename'
build: 'bea-sanitize-filename-%TRAVIS_BUILD_NUMBER%'
# Differents environements for the acceptance testing in browserStack
env:
local:
modules:
config:
WPWebDriver:
port: 4444
window_size: false
browser: chrome
host: 'chromedriver'
capabilities:
browserstack.local: false
browserstack.debug: false
chromeOptions:
args: [ "--headless", "--disable-gpu", '--ignore-certificate-errors', '--reduce-security-for-testing', '--enable-features=NetworkService', '--window-size=1920,1920' ]
local-mobile:
modules:
config:
WPWebDriver:
port: 4444
window_size: false
browser: chrome
host: 'chromedriver'
capabilities:
browserstack.local: false
browserstack.debug: false
chromeOptions:
args: [ "--headless", "--disable-gpu", '--ignore-certificate-errors', '--reduce-security-for-testing', '--enable-features=NetworkService', '--mobileEmulation={ "deviceName" => "Nexus 5" }' ]
desktop:
modules:
config:
WPWebDriver:
browser: 'chrome'
capabilities:
os: Windows
os_version: 10
mobile_ios:
modules:
config:
WPWebDriver:
browser: 'chrome'
capabilities:
device: "iPhone 7"
real_mobile: true
mobile_android:
modules:
config:
WPWebDriver:
browser: 'chrome'
capabilities:
device: "Google Pixel"
real_mobile: true