From ed6c3c449b7a947901b45bdb0d0dc017560e7f78 Mon Sep 17 00:00:00 2001 From: Tayane Fernandes Date: Wed, 29 Mar 2017 18:49:16 -0300 Subject: [#927] Change account recovery tests to run against a non mocked application with @thaissiqueira --- service/test/functional/features/steps/backup_account.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'service/test/functional/features/steps/backup_account.py') 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) -- cgit v1.2.3