From 021fd399db4801c3d2c96b6f2bace99046d9f54b Mon Sep 17 00:00:00 2001 From: NavaL Date: Wed, 18 May 2016 18:54:39 +0200 Subject: Issue #692 re-added logout back in the feature toggle --- service/test/functional/features/login.feature | 2 ++ service/test/functional/features/steps/login.py | 11 +++++++++++ 2 files changed, 13 insertions(+) (limited to 'service/test/functional') 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') -- cgit v1.2.3