-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEndToEnd.suite.yml
More file actions
72 lines (67 loc) · 2.89 KB
/
EndToEnd.suite.yml
File metadata and controls
72 lines (67 loc) · 2.89 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
70
71
72
# Integration suite configuration
#
# Run integration and "WordPress unit" tests.
# Remember to call `vendor/bin/codecept build` after editing this file.
actor: EndToEndTester
bootstrap: _bootstrap.php
modules:
enabled:
# wp-browser supplied classes, which provide WordPress specific functions
- lucatume\WPBrowser\Module\WPWebDriver
- lucatume\WPBrowser\Module\WPDb
- lucatume\WPBrowser\Module\WPFilesystem
- lucatume\WPBrowser\Module\WPLoader
# Codeception supplied classes, which provide assertions and filesystem functions
- \Codeception\Module\Asserts
- \Codeception\Module\Filesystem
# Our helper classes, which contain functions used across multiple tests.
# If you created a new file in tests/Support/Helper, add its namespace and class below,
- \Tests\Support\Helper\Email
- \Tests\Support\Helper\KitAPI
- \Tests\Support\Helper\MemberMouse
- \Tests\Support\Helper\Plugin
- \Tests\Support\Helper\ThirdPartyPlugin
- \Tests\Support\Helper\WPNotices
- \Tests\Support\Helper\Xdebug
config:
lucatume\WPBrowser\Module\WPWebDriver:
url: '%WORDPRESS_URL%'
adminUsername: '%WORDPRESS_ADMIN_USER%'
adminPassword: '%WORDPRESS_ADMIN_PASSWORD%'
adminPath: '%WORDPRESS_ADMIN_PATH%'
browser: chrome
host: '%CHROMEDRIVER_HOST%'
port: '%CHROMEDRIVER_PORT%'
path: '/wd/hub'
window_size: 1920x1080
capabilities:
"goog:chromeOptions":
args:
- "--headless"
- "--disable-gpu"
- "--disable-dev-shm-usage"
- "--disable-software-rasterizer"
- "--proxy-server='direct://'"
- "--proxy-bypass-list=*"
- "--no-sandbox"
- "--user-agent=%TEST_SITE_HTTP_USER_AGENT%"
prefs:
download.default_directory: '%WORDPRESS_ROOT_DIR%'
lucatume\WPBrowser\Module\WPDb:
dbUrl: '%WORDPRESS_DB_URL%'
dump: 'tests/Support/Data/dump.sql'
#import the dump before the tests; this means the test site database will be repopulated before the tests.
populate: true
# re-import the dump between tests; this means the test site database will be repopulated between the tests.
cleanup: false
reconnect: false
url: '%WORDPRESS_URL%'
urlReplacement: true
tablePrefix: '%WORDPRESS_TABLE_PREFIX%'
lucatume\WPBrowser\Module\WPFilesystem:
wpRootFolder: '%WORDPRESS_ROOT_DIR%'
lucatume\WPBrowser\Module\WPLoader:
loadOnly: true
wpRootFolder: '%WORDPRESS_ROOT_DIR%'
dbUrl: '%WORDPRESS_DB_URL%'
domain: '%WORDPRESS_DOMAIN%'