Commit 7de6446c by Matt Drayer

Merge pull request #739 from edx/mattdrayer/e2etest-receipt-msg

mattdrayer/e2etest-receipt-msg: Assert course name appears in thank you message
parents 249b1061 384761e2
...@@ -320,6 +320,12 @@ class PaymentMixin(object): ...@@ -320,6 +320,12 @@ class PaymentMixin(object):
actual = [cell.text for cell in cells] actual = [cell.text for cell in cells]
self.assertListEqual(actual, expected) self.assertListEqual(actual, expected)
# Confirm the thank you message is not broken (ref: WL-466 + edx/edx-platform#12476)
css_selector = 'span.course_name_placeholder'
course_name_placeholder_text = self.browser.find_elements_by_css_selector(css_selector)[0].text
title = line['product']['title']
self.assertIn(course_name_placeholder_text, title)
class CouponMixin(EcommerceApiMixin): class CouponMixin(EcommerceApiMixin):
discount_coupon_name = 'test-discount-code-' discount_coupon_name = 'test-discount-code-'
......
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