Merge pull request #5745 from edx/will/third-party-auth-fixes

Third Party Auth Fixes
This commit is contained in:
Diana Huang
2014-10-28 13:06:40 -04:00
22 changed files with 817 additions and 170 deletions

View File

@@ -69,7 +69,7 @@ def click_verified_track_button():
def select_verified_track_upgrade(step):
select_contribution(32)
world.wait_for_ajax_complete()
btn_css = 'input[value="Upgrade Your Registration"]'
btn_css = 'input[value="Upgrade Your Enrollment"]'
world.css_click(btn_css)
# TODO: might want to change this depending on the changes for upgrade
assert world.is_css_present('section.progress')

View File

@@ -191,13 +191,13 @@ class TestVerifyView(ModuleStoreTestCase):
kwargs={"course_id": unicode(self.course_key)})
response = self.client.get(url)
self.assertIn("You are now registered to audit", response.content)
self.assertIn("You are now enrolled in the audit track", response.content)
def test_valid_course_upgrade_text(self):
url = reverse('verify_student_verify',
kwargs={"course_id": unicode(self.course_key)})
response = self.client.get(url, {'upgrade': "True"})
self.assertIn("You are upgrading your registration for", response.content)
self.assertIn("You are upgrading your enrollment for", response.content)
def test_show_selected_contribution_amount(self):
# Set the donation amount in the client's session