diff options
author | Denis Costa <deniscostadsc@gmail.com> | 2017-04-13 16:43:12 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 16:43:12 -0300 |
commit | 1fcb0c8fb399647bf86ef1b7c6771b3a29f67aa9 (patch) | |
tree | 57afe993d19006c223c767d37acc4cd4b9426581 /service/test/functional/features/steps/login.py | |
parent | 9203d8e62dd5bd3c9456629e9b336a0b89fbd502 (diff) | |
parent | ec00906375cd35220ee694264dce9c4ba5cdbcc9 (diff) |
Merge pull request #1052 from pixelated/email-recovery-code
[#927] Email recovery code
Diffstat (limited to 'service/test/functional/features/steps/login.py')
-rw-r--r-- | service/test/functional/features/steps/login.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py index 432186f5..7360adb7 100644 --- a/service/test/functional/features/steps/login.py +++ b/service/test/functional/features/steps/login.py @@ -24,7 +24,7 @@ from common import ( @given('I am logged in Pixelated') def login_user(context): login_page(context) - enter_credentials(context, 'username', 'password') + enter_credentials(context) click_login(context) see_interstitial(context) _see_inbox(context) @@ -40,10 +40,10 @@ def _see_inbox(context): find_element_by_css_selector(context, '#compose', timeout=40) -@when(u'I enter {username} and {password} as credentials') -def enter_credentials(context, username, password): +@when(u'I enter username and password as credentials') +def enter_credentials(context): fill_by_css_selector(context, 'input[name="username"]', context.username) - fill_by_css_selector(context, 'input[name="password"]', password) + fill_by_css_selector(context, 'input[name="password"]', 'password') @when(u'I click on the login button') @@ -56,12 +56,13 @@ def see_interstitial(context): find_element_by_css_selector(context, 'section#hive-section') +@then(u'I logout') @when(u'I logout') def click_logout(context): find_element_by_css_selector(context, '#logout-form div').click() -@then(u'I logout from the header') +@then(u'I logout from the header') # noqa @when(u'I logout from the header') def click_logout(context): find_element_by_css_selector(context, 'button[name="logout"]').click() |