Commit 5e916fdb by Will Daly

Merge pull request #265 from edx/will/fix-master

Fix tests that broke during text updates
parents 313a6c1e df16c5c0
...@@ -346,7 +346,7 @@ describe("OpenAssessment.Server", function() { ...@@ -346,7 +346,7 @@ describe("OpenAssessment.Server", function() {
receivedMsg = errMsg; receivedMsg = errMsg;
}); });
expect(receivedMsg).toContain("This problem could not be saved"); expect(receivedMsg).toContain("The server could not be contacted");
}); });
......
...@@ -112,7 +112,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase): ...@@ -112,7 +112,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
xblock, 'openassessmentblock/response/oa_response.html', xblock, 'openassessmentblock/response/oa_response.html',
{ {
'saved_response': '', 'saved_response': '',
'save_status': 'Unsaved draft', 'save_status': 'This response has not been saved.',
'submit_enabled': False, 'submit_enabled': False,
'submission_due': dt.datetime(2999, 5, 6).replace(tzinfo=pytz.utc), 'submission_due': dt.datetime(2999, 5, 6).replace(tzinfo=pytz.utc),
} }
...@@ -124,7 +124,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase): ...@@ -124,7 +124,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
xblock, 'openassessmentblock/response/oa_response.html', xblock, 'openassessmentblock/response/oa_response.html',
{ {
'saved_response': '', 'saved_response': '',
'save_status': 'Unsaved draft', 'save_status': 'This response has not been saved.',
'submit_enabled': False, 'submit_enabled': False,
} }
) )
...@@ -140,7 +140,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase): ...@@ -140,7 +140,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
xblock, 'openassessmentblock/response/oa_response.html', xblock, 'openassessmentblock/response/oa_response.html',
{ {
'saved_response': 'A man must have a code', 'saved_response': 'A man must have a code',
'save_status': 'Saved but not submitted', 'save_status': 'This response has been saved but not submitted.',
'submit_enabled': True, 'submit_enabled': True,
'submission_due': dt.datetime(2999, 5, 6).replace(tzinfo=pytz.utc), 'submission_due': dt.datetime(2999, 5, 6).replace(tzinfo=pytz.utc),
} }
...@@ -231,7 +231,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase): ...@@ -231,7 +231,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
def test_integration(self, xblock): def test_integration(self, xblock):
# Expect that the response step is open and displays the deadline # Expect that the response step is open and displays the deadline
resp = self.request(xblock, 'render_submission', json.dumps(dict())) resp = self.request(xblock, 'render_submission', json.dumps(dict()))
self.assertIn('Please provide your response below', resp) self.assertIn('Enter your response to the question', resp)
self.assertIn('Monday, May 6, 2999 00:00 UTC', resp) self.assertIn('Monday, May 6, 2999 00:00 UTC', resp)
# Create a submission for the user # Create a submission for the user
......
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