From ae32177eae55df41c91b83119c6beec91daa9e23 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Thu, 1 Dec 2016 16:02:35 -0200 Subject: Fix logout button reference to work on Firefox See: https://github.com/pixelated/project-issues/issues/381 --- service/test/functional/features/steps/login.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'service/test/functional') diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py index e773c0b1..367228f8 100644 --- a/service/test/functional/features/steps/login.py +++ b/service/test/functional/features/steps/login.py @@ -36,13 +36,12 @@ def enter_credentials(context, username, password): @when(u'I click on the login button') def click_login(context): - login_button = find_element_by_css_selector(context, 'input[name="login"]') - login_button.click() + find_element_by_css_selector(context, 'input[name="login"]').click() @then(u'I should see the fancy interstitial') def step_impl(context): - assert find_element_by_css_selector(context, 'section#hive-section') + find_element_by_css_selector(context, 'section#hive-section') _wait_for_interstitial_to_reload() @@ -52,10 +51,9 @@ def _wait_for_interstitial_to_reload(): @when(u'I logout') def click_logout(context): - logout_button = find_element_by_css_selector(context, 'ul#logout') - logout_button.click() + find_element_by_css_selector(context, '#logout-form div').click() @then(u'I should see the login page') def see_login_page(context): - assert find_element_by_css_selector(context, 'form#login_form') + find_element_by_css_selector(context, 'form#login_form') -- cgit v1.2.3