Commit 5ece6443 by Jay Zoldak

Fix certificates acceptance test after come css changes

parent ec67bf4b
...@@ -49,6 +49,8 @@ def select_the_audit_track(step): ...@@ -49,6 +49,8 @@ def select_the_audit_track(step):
create_cert_course() create_cert_course()
register() register()
btn_css = 'input[value="Select Audit"]' btn_css = 'input[value="Select Audit"]'
world.wait(1) # TODO remove this after troubleshooting JZ
world.css_find(btn_css)
world.css_click(btn_css) world.css_click(btn_css)
...@@ -70,7 +72,7 @@ def select_the_verified_track(step): ...@@ -70,7 +72,7 @@ def select_the_verified_track(step):
@step(u'I should see the course on my dashboard$') @step(u'I should see the course on my dashboard$')
def should_see_the_course_on_my_dashboard(step): def should_see_the_course_on_my_dashboard(step):
course_css = 'article.my-course' course_css = 'li.course-item'
assert world.is_css_present(course_css) assert world.is_css_present(course_css)
...@@ -154,7 +156,7 @@ def confirm_details_match(step): ...@@ -154,7 +156,7 @@ def confirm_details_match(step):
world.browser.execute_script("window.scrollTo(0,1024)") world.browser.execute_script("window.scrollTo(0,1024)")
cb_css = 'input#confirm_pics_good' cb_css = 'input#confirm_pics_good'
world.css_check(cb_css) world.css_click(cb_css)
assert world.css_find(cb_css).checked assert world.css_find(cb_css).checked
...@@ -187,8 +189,8 @@ def submitted_photos_to_verify_my_identity(step): ...@@ -187,8 +189,8 @@ def submitted_photos_to_verify_my_identity(step):
@step(u'I see that my payment was successful') @step(u'I see that my payment was successful')
def see_that_my_payment_was_successful(step): def see_that_my_payment_was_successful(step):
world.css_find('div') title = world.css_find('div.wrapper-content-main h3.title')
assert_equal(world.browser.title, u'Receipt for Order 1') assert_equal(title.text, u'Congratulations! You are now verified on edX.')
@step(u'I navigate to my dashboard') @step(u'I navigate to my dashboard')
......
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