diff --git a/app/assets/javascripts/report-a-problem.js b/app/assets/javascripts/report-a-problem.js index fc8d611a6..ea363fddc 100644 --- a/app/assets/javascripts/report-a-problem.js +++ b/app/assets/javascripts/report-a-problem.js @@ -2,8 +2,8 @@ var ReportAProblem = { showErrorMessage: function (jqXHR) { var response = "

Sorry, we're unable to receive your message right now.

" + "

We have other ways for you to provide feedback on the " + - "support page.

" - $('.report-a-problem-container').html(response); + "contact page.

" + $('.report-a-problem-content').html(response); }, promptUserToEnterValidData: function() { @@ -20,7 +20,7 @@ var ReportAProblem = { }, showConfirmation: function(data) { - $('.report-a-problem-container').html(data.message); + $('.report-a-problem-content').html(data.message); }, submit: function() { diff --git a/spec/javascripts/report-a-problem-spec.js b/spec/javascripts/report-a-problem-spec.js index cd0708a94..fcc194fcb 100644 --- a/spec/javascripts/report-a-problem-spec.js +++ b/spec/javascripts/report-a-problem-spec.js @@ -1,5 +1,9 @@ describe("form submission for reporting a problem", function () { - var FORM_TEXT = '
'; + var FORM_TEXT = '
' + + '
' + + '
' + + '
' + + '
'; var form; beforeEach(function() { @@ -27,7 +31,7 @@ describe("form submission for reporting a problem", function () { form.triggerHandler('submit'); expect(form).toBeHidden(); - expect($('.report-a-problem-container').html()).toEqual('great success!'); + expect($('.report-a-problem-content').html()).toEqual('great success!'); }); }); @@ -53,7 +57,7 @@ describe("form submission for reporting a problem", function () { form.triggerHandler('submit'); expect(form).not.toBeVisible(); - expect($('.report-a-problem-container').html()).toContain("Sorry, we're unable to receive your message"); + expect($('.report-a-problem-content').html()).toContain("Sorry, we're unable to receive your message"); }); }); });