From bd24e2024ad29fa72cae661ac5898cad4ace8e8b Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 20 Jul 2017 15:08:18 +0200 Subject: [test] enable and check vpn --- tests/functional/features/steps/vpn.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/functional/features/steps/vpn.py (limited to 'tests/functional/features/steps/vpn.py') diff --git a/tests/functional/features/steps/vpn.py b/tests/functional/features/steps/vpn.py new file mode 100644 index 00000000..f08c2af7 --- /dev/null +++ b/tests/functional/features/steps/vpn.py @@ -0,0 +1,18 @@ +from behave import when, then +from common import ( + click_button, + wait_until_button_is_visible, + find_element_containing_text +) + + +@when('I activate VPN') +def activate_vpn(context): + click_button(context, 'Install Helper Files') + click_button(context, 'Turn ON') + + +@then('I should have my ass covered') +def assert_vpn(context): + wait_until_button_is_visible(context, 'Turn OFF') + assert find_element_containing_text(context, 'Turn OFF', 'button') -- cgit v1.2.3