Commit 9c362eac by Diana Huang

Fix acceptance tests

LMS-1127
parent 5b10e016
...@@ -84,7 +84,9 @@ def click_verified_track_button(): ...@@ -84,7 +84,9 @@ def click_verified_track_button():
@step(u'I select the verified track for upgrade') @step(u'I select the verified track for upgrade')
def select_verified_track_upgrade(step): def select_verified_track_upgrade(step):
select_contribution(32) select_contribution(32)
click_verified_track_button() world.wait_for_ajax_complete()
btn_css = 'input[value="Upgrade Your Registration"]'
world.css_click(btn_css)
# TODO: might want to change this depending on the changes for upgrade # TODO: might want to change this depending on the changes for upgrade
assert world.is_css_present('section.progress') assert world.is_css_present('section.progress')
...@@ -263,7 +265,10 @@ def see_upsell_link_on_my_dashboard(step): ...@@ -263,7 +265,10 @@ def see_upsell_link_on_my_dashboard(step):
@step(u'I select the upsell link on my dashboard') @step(u'I select the upsell link on my dashboard')
def see_upsell_link_on_my_dashboard(step): def see_upsell_link_on_my_dashboard(step):
# expand the upsell section
world.css_click('.message-upsell')
course_link_css = UPSELL_LINK_CSS course_link_css = UPSELL_LINK_CSS
# click the actual link
world.css_click(course_link_css) world.css_click(course_link_css)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment