Blacklist Livechat domain in Selenium tests to prevent timeouts
This commit is contained in:
parent
f157cad877
commit
ec0d0375cf
|
@ -38,6 +38,10 @@ then
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# You must pass the full path to the HTML suite and the results file to Selenium:
|
# Livechat is very slow to load sometimes, which can make the tests fail. Here we tell Selenium to replace "livechatinc" in any HTML with
|
||||||
xvfb-run java -jar ${SELENIUM_BIN} -htmlSuite "*firefox" "${AIRTIME_URL}" "${PWD}"/selenium/Airtime.html "${PWD}"/results.html
|
# some non-existent domain.
|
||||||
|
REMOVE_LIVECHAT_PARAMS="-userContentTransformation livechatinc foobar1234567testtest"
|
||||||
|
|
||||||
|
# You must pass the full path to the HTML suite and the results file to Selenium:
|
||||||
|
xvfb-run java -jar ${SELENIUM_BIN} -proxyInjectionMode ${REMOVE_LIVECHAT_PARAMS} -htmlSuite "*firefox" "${AIRTIME_URL}" "${PWD}"/selenium/Airtime.html "${PWD}"/results.html
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue