summaryrefslogtreecommitdiff
path: root/service/test
diff options
context:
space:
mode:
Diffstat (limited to 'service/test')
-rw-r--r--service/test/functional/features/login.feature2
-rw-r--r--service/test/functional/features/steps/login.py11
2 files changed, 13 insertions, 0 deletions
diff --git a/service/test/functional/features/login.feature b/service/test/functional/features/login.feature
index d22cc774..c50f8eea 100644
--- a/service/test/functional/features/login.feature
+++ b/service/test/functional/features/login.feature
@@ -27,3 +27,5 @@ Feature: login and logout
And I click on the login button
Then I should see the fancy interstitial
Then I have mails
+ When I logout
+ Then I should see the login page
diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py
index 7f17567a..e2dc1381 100644
--- a/service/test/functional/features/steps/login.py
+++ b/service/test/functional/features/steps/login.py
@@ -42,3 +42,14 @@ def step_impl(context):
def _wait_for_interstitial_to_reload():
time.sleep(6)
+
+
+@when(u'I logout')
+def click_logout(context):
+ logout_button = wait_until_element_is_visible_by_locator(context, (By.CSS_SELECTOR, 'ul#logout'))
+ logout_button.click()
+
+
+@then(u'I should see the login page')
+def see_login_page(context):
+ assert find_element_by_css_selector(context, 'form#login_form')