0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-06 23:10:03 +00:00
salesagility_SuiteCRM/tests/_envs/travis-ci-hub.yml
Connor Shea a484c68dae Remove implicit waiting in acceptance tests on Travis CI.
This adds a bunch of waitForElementVisible, waitForText, etc. where
necessary and will theoretically make the test suite more consistent
between machines of different speeds. The wait time in the travis
codeception env causes problems if you run the test suite on a slower
machine because it causes tests that assume they have x number of
seconds to wait for an expectation (like `I->see`, or `I->click`), when
that amount of time can vary depending on the machine.

Instead of increasing the wait value for slower machines, I'd prefer to
keep it consistent across machines so we can run CI anywhere without
needing to configure as much. This commit moves the waiting from the
codeception env to being in the tests explicitly.

Could also speed up the test suite.
2019-06-20 10:36:37 -06:00

17 lines
564 B
YAML

modules:
enabled:
- \SuiteCRM\Test\Driver\WebDriver
config:
\SuiteCRM\Test\Driver\WebDriver:
url: "http://localhost/"
wait: 0
port: 9515 # ChromeDriver port
browser: chrome
window_size: false
clear_cookies: true
capabilities:
chromeOptions:
args: ["--headless", "--disable-gpu", "window-size=1920x1080"]
binary: "/usr/bin/google-chrome-stable"
#google-chrome-stable: /usr/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/share/man/man1/google-chrome-stable.1.gz