From c56cdc970110ab8a4f6394fb213cdeee483c3e0f Mon Sep 17 00:00:00 2001 From: Varac Date: Fri, 21 Jul 2017 16:27:28 +0200 Subject: [tests] Succeed VPN test if helper files exists --- tests/functional/features/steps/vpn.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/functional/features/steps/vpn.py b/tests/functional/features/steps/vpn.py index f08c2af7..056b2cdf 100644 --- a/tests/functional/features/steps/vpn.py +++ b/tests/functional/features/steps/vpn.py @@ -4,11 +4,15 @@ from common import ( wait_until_button_is_visible, find_element_containing_text ) +from selenium.common.exceptions import TimeoutException @when('I activate VPN') def activate_vpn(context): - click_button(context, 'Install Helper Files') + try: + click_button(context, 'Install Helper Files') + except TimeoutException: + pass click_button(context, 'Turn ON') -- cgit v1.2.3