From 40c992ce12271f0f71839746dc2893e187a909a1 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Tue, 11 Apr 2017 19:45:43 -0300 Subject: [#927] Enter credentials using default values with @deniscostadsc --- service/test/functional/features/steps/login.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'service/test/functional/features') diff --git a/service/test/functional/features/steps/login.py b/service/test/functional/features/steps/login.py index 432186f5..35bb5ca2 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') @@ -61,7 +61,7 @@ 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() -- cgit v1.2.3