summaryrefslogtreecommitdiff
path: root/tests/functional/features/steps/vpn.py
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-07-21 16:27:28 +0200
committerVarac <varac@leap.se>2017-07-21 16:27:28 +0200
commitc56cdc970110ab8a4f6394fb213cdeee483c3e0f (patch)
tree245e538932b1a7f8bdfba2f55b07401986c2bd56 /tests/functional/features/steps/vpn.py
parent1237a7ca0e8e25ac9a49e2cb3bd8c296236dfcfa (diff)
[tests] Succeed VPN test if helper files exists
Diffstat (limited to 'tests/functional/features/steps/vpn.py')
-rw-r--r--tests/functional/features/steps/vpn.py6
1 files changed, 5 insertions, 1 deletions
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')