diff options
author | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-04-09 23:28:57 +0800 |
---|---|---|
committer | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-04-11 08:04:11 +0800 |
commit | e9ba52e49a573099134a4f8212e854fb46330e89 (patch) | |
tree | d4e4ac6de717c6d83f4319e5bbdb450ef2c4bd53 | |
parent | 67c933958b44b3db6427a9898407e39e0b5416ed (diff) | |
download | gsoc2013-evolution-e9ba52e49a573099134a4f8212e854fb46330e89.tar gsoc2013-evolution-e9ba52e49a573099134a4f8212e854fb46330e89.tar.gz gsoc2013-evolution-e9ba52e49a573099134a4f8212e854fb46330e89.tar.bz2 gsoc2013-evolution-e9ba52e49a573099134a4f8212e854fb46330e89.tar.lz gsoc2013-evolution-e9ba52e49a573099134a4f8212e854fb46330e89.tar.xz gsoc2013-evolution-e9ba52e49a573099134a4f8212e854fb46330e89.tar.zst gsoc2013-evolution-e9ba52e49a573099134a4f8212e854fb46330e89.zip |
tests: Continue button was renamed to 'Next'
-rw-r--r-- | tests/steps/initial_setup_steps.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/steps/initial_setup_steps.py b/tests/steps/initial_setup_steps.py index ec97e455e4..6f6f66815f 100644 --- a/tests/steps/initial_setup_steps.py +++ b/tests/steps/initial_setup_steps.py @@ -41,7 +41,7 @@ def open_evolution_and_setup_fake_account(context): def evo_account_assistant_dummy_dialogs(context): # nothing to do here, skip it window = context.app.child('Evolution Account Assistant') - click_continue(window) + click_next(window) @step(u'Complete Identity dialog setting name to "{name}" and email address to "{email}"') @@ -50,7 +50,7 @@ def evo_account_assistant_identity_dialog(context, name, email): window = context.app.child('Evolution Account Assistant') window.childLabelled("Full Name:").text = name window.childLabelled("Email Address:").text = email - click_continue(window) + click_next(window) @step(u"Wait for account is being looked up dialog in Evolution Account Assistant") @@ -64,12 +64,12 @@ def wait_for_account_to_be_looked_up(context): "Skip Lookup button didn't dissappear" -def click_continue(window): - # As initial wizard dialog creates a bunch of 'Continue' buttons +def click_next(window): + # As initial wizard dialog creates a bunch of 'Next' buttons # We have to click to the visible and enabled one button = None for attempt in xrange(0, 10): - btns = window.findChildren(lambda x: x.name == 'Continue') + btns = window.findChildren(lambda x: x.name == 'Next') visible_and_enabled = [x for x in btns if x.showing and STATE_SENSITIVE in x.getState().getStates()] if visible_and_enabled == []: sleep(0.1) @@ -108,7 +108,7 @@ def evo_account_assistant_receiving_email_dialog_from_table(context, sending_or_ btns = window.findChildren(lambda x: x.name == 'Check for Supported Types') visible_btns = [w for w in btns if w.showing] if visible_btns == []: - click_continue(window) + click_next(window) return visible_btns[0].click() @@ -128,7 +128,7 @@ def evo_account_assistant_receiving_email_dialog_from_table(context, sending_or_ while cancel.showing: sleep(0.1) check_for_errors(context) - click_continue(window) + click_next(window) @step(u'Complete Done dialog in Evolution Account Assistant') |