mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-06 23:10:03 +00:00
a484c68dae
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.
17 lines
564 B
YAML
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
|