diff options
author | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-03-29 18:49:16 -0300 |
---|---|---|
committer | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-03-30 17:55:24 -0300 |
commit | ed6c3c449b7a947901b45bdb0d0dc017560e7f78 (patch) | |
tree | 32d4f54344f92163202661af00061d2138b91994 /service/test/functional/features/steps/backup_account.py | |
parent | 715419e88dcbc4d5f0b8286d917b26b8d425d85b (diff) |
[#927] Change account recovery tests to run against a non mocked application
with @thaissiqueira
Diffstat (limited to 'service/test/functional/features/steps/backup_account.py')
-rw-r--r-- | service/test/functional/features/steps/backup_account.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/service/test/functional/features/steps/backup_account.py b/service/test/functional/features/steps/backup_account.py index 916198f6..56d30211 100644 --- a/service/test/functional/features/steps/backup_account.py +++ b/service/test/functional/features/steps/backup_account.py @@ -21,17 +21,18 @@ from common import ( find_element_by_css_selector) -@given(u'I am on the backup account page') +@when(u'I go to the backup account page') +@given(u'I go to the backup account page') def backup_account_page(context): context.browser.get(context.backup_account_url) -@when(u'I submit my email') +@when(u'I submit my backup account') def submit_backup_email(context): fill_by_css_selector(context, 'input[name="email"]', 'test@test.com') - find_element_by_css_selector(context, 'button[type="submit"]').click() + find_element_by_css_selector(context, '.submit-button button[type="submit"]').click() -@then(u'I see the confirmation page') +@then(u'I see the confirmation of this submission') def confirmation_page(context): - find_element_by_css_selector(context, '.confirmation-container') + find_element_by_css_selector(context, '.confirmation-container', timeout=50) |