diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2016-12-01 16:02:35 -0200 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2016-12-01 16:07:11 -0200 |
commit | ae32177eae55df41c91b83119c6beec91daa9e23 (patch) | |
tree | afcf2243ad1133c9049324c63281bcf7b3928364 /service/test/functional | |
parent | a62d42cbf8c1fcf1785ddb21f374beb58231a2f5 (diff) |
Fix logout button reference to work on Firefox
See: https://github.com/pixelated/project-issues/issues/381
Diffstat (limited to 'service/test/functional')
-rw-r--r-- | service/test/functional/features/steps/login.py | 10 |
1 files changed, 4 insertions, 6 deletions
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') |