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/smoke.feature | 7 ++++++- tests/functional/features/steps/vpn.py | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tests/functional/features/steps/vpn.py (limited to 'tests/functional') diff --git a/tests/functional/features/smoke.feature b/tests/functional/features/smoke.feature index 6209ad6a..efa3cad7 100644 --- a/tests/functional/features/smoke.feature +++ b/tests/functional/features/smoke.feature @@ -1,4 +1,3 @@ -@smoke Feature: login and logout Scenario: See user panel after login @@ -12,3 +11,9 @@ Feature: login and logout And I logout Then I should see the second login page + @smoke + Scenario: Use VPN + Given I start bitmask for the first time + When I login + And I activate VPN + Then I should have my ass covered 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