summaryrefslogtreecommitdiff
path: root/tests/functional/features/steps/vpn.py
blob: f08c2af7c3f1e27a3fee1855c0e67dec2a3eab00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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')