File: //var/www/html/bwcdev/wp-content/plugins/quiz-master-next/tests/acceptance.suite.yml
# 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
# - WPBrowser
- WPWebDriver
- \Helper\Acceptance
config:
# WPWebDriver:
# url: '%TEST_SITE_WP_URL%'
# adminUsername: '%TEST_SITE_ADMIN_USERNAME%'
# adminPassword: '%TEST_SITE_ADMIN_PASSWORD%'
# adminPath: '%TEST_SITE_WP_ADMIN_PATH%'
# browser: chrome
# host: localhost
# port: 4444
# window_size: false #disabled for Chrome driver
# log_js_errors: true
# capabilities:
# chromeOptions:
# args: ["--headless", "--disable-gpu", "--proxy-server='direct://'", "--proxy-bypass-list=*", "--ignore-certificate-errors", "--disable-web-security", "--ignore-urlfetcher-cert-requests"]
WPWebDriver:
url: '%TEST_SITE_WP_URL%'
adminUsername: '%TEST_SITE_ADMIN_USERNAME%'
adminPassword: '%TEST_SITE_ADMIN_PASSWORD%'
adminPath: '%TEST_SITE_WP_ADMIN_PATH%'
browser: chrome
host: '%TESTING_HOST%'
port: '%TESTING_PORT%'
window_size: false #disabled for Chrome driver
log_js_errors: true
capabilities:
os: Windows
os_version: 10
chromeOptions:
args: ["%TESTING_HEADLESS%", "--disable-gpu", "--proxy-server='direct://'", "--proxy-bypass-list=*", "--ignore-certificate-errors", "--disable-web-security", "--ignore-urlfetcher-cert-requests"]
WPDb:
dsn: '%TEST_SITE_DB_DSN%'
user: '%TEST_SITE_DB_USER%'
password: '%TEST_SITE_DB_PASSWORD%'
dump: 'tests/_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: true
waitlock: 10
url: '%TEST_SITE_WP_URL%'
urlReplacement: true #replace the hardcoded dump URL with the one above
tablePrefix: '%TEST_SITE_TABLE_PREFIX%'
WPBrowser:
url: '%TEST_SITE_WP_URL%'
adminUsername: '%TEST_SITE_ADMIN_USERNAME%'
adminPassword: '%TEST_SITE_ADMIN_PASSWORD%'
adminPath: '%TEST_SITE_WP_ADMIN_PATH%'
headers:
X_TEST_REQUEST: 1
X_WPBROWSER_REQUEST: 1