summaryrefslogtreecommitdiff
path: root/service/test/functional
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-05-18 18:54:39 +0200
committerNavaL <ayoyo@thoughtworks.com>2016-05-18 18:54:44 +0200
commit021fd399db4801c3d2c96b6f2bace99046d9f54b (patch)
treed56736d4c7609d04d95a3552d833c0bbee60d7cd /service/test/functional
parent804213b24bad0cc222c98888d8ddac356252465c (diff)
Issue #692 re-added logout back in the feature toggle
Diffstat (limited to 'service/test/functional')
-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')