mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
functional-tests: Fail fast on install failure
Tested against ejabberd's failing installation. The entire test suite gets marked as failed if the application installation fails. Fixes #1902 #1895 Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
c544160a94
commit
01a757c38a
@ -297,6 +297,8 @@ def install(browser, app_name):
|
|||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
elif browser.is_element_present_by_css('.neterror'):
|
elif browser.is_element_present_by_css('.neterror'):
|
||||||
browser.visit(browser.url)
|
browser.visit(browser.url)
|
||||||
|
elif browser.is_element_present_by_css('.alert-danger'):
|
||||||
|
break
|
||||||
elif browser.is_element_present_by_css(install_button_css):
|
elif browser.is_element_present_by_css(install_button_css):
|
||||||
install_button = browser.find_by_css(install_button_css).first
|
install_button = browser.find_by_css(install_button_css).first
|
||||||
if install_button['disabled']:
|
if install_button['disabled']:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user