summaryrefslogtreecommitdiff
path: root/service/test/functional/features
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-04-11 19:45:43 -0300
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-04-11 19:45:43 -0300
commit40c992ce12271f0f71839746dc2893e187a909a1 (patch)
tree3bec266a9b212aff259228b2c13ae4c39590525d /service/test/functional/features
parent99125b21697e2a0d9fef5c888e2bbdc33f0adfb2 (diff)
[#927] Enter credentials using default values
with @deniscostadsc
Diffstat (limited to 'service/test/functional/features')
-rw-r--r--service/test/functional/features/steps/login.py10
1 files changed, 5 insertions, 5 deletions
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()