diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-04-12 17:16:16 -0300 |
---|---|---|
committer | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-04-12 17:22:25 -0300 |
commit | 9e792f24d39bdd1486855db0cf6a3a97605641fe (patch) | |
tree | b42c3f18f0e1a87fa9b33eb35c7ab5ad34894fdd /service/test/functional | |
parent | cab44227c133af60a31f1988939cbeca5a865efd (diff) |
[#927] Rename parameter for better readability
with @deniscostadsc
Diffstat (limited to 'service/test/functional')
-rw-r--r-- | service/test/functional/features/steps/mail_view.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/service/test/functional/features/steps/mail_view.py b/service/test/functional/features/steps/mail_view.py index 89464245..d10f86e7 100644 --- a/service/test/functional/features/steps/mail_view.py +++ b/service/test/functional/features/steps/mail_view.py @@ -26,10 +26,10 @@ from common import ( wait_until_button_is_visible) -@then('I see that the subject reads \'{subject}\'') -def impl(context, subject): - e = find_element_by_css_selector(context, '#mail-view .mail-read-view__header-subject') - assert e.text == subject +@then('I see that the subject reads \'{expected_subject}\'') +def impl(context, expected_subject): + actual_subject = find_element_by_css_selector(context, '#mail-view .mail-read-view__header-subject').text + assert expected_subject == actual_subject @then('I see that the body reads \'{expected_body}\'') |