From ff7b7cdd20638a9be0650396376a1590028f73f2 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 8 Jul 2014 14:29:06 +0100 Subject: [PATCH] Fix smoke tests --- services/web/test/smoke/coffee/SmokeTests.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/test/smoke/coffee/SmokeTests.coffee b/services/web/test/smoke/coffee/SmokeTests.coffee index 1ef29d86b7..e102d0ec05 100644 --- a/services/web/test/smoke/coffee/SmokeTests.coffee +++ b/services/web/test/smoke/coffee/SmokeTests.coffee @@ -54,7 +54,7 @@ describe "Opening", -> expect(error, "smoke test: error in getting project").to.not.exist expect(response.statusCode, "smoke test: response code is not 200 getting project").to.equal(200) # Check that the project id is present in the javascript that loads up the project - match = !!body.match("\"project_id\":\"#{Settings.smokeTest.projectId}\"") + match = !!body.match("window.project_id = \"#{Settings.smokeTest.projectId}\"") expect(match, "smoke test: project page html does not have project_id").to.equal true done() @@ -67,6 +67,6 @@ describe "Opening", -> expect(error, "smoke test: error returned in getting project list").to.not.exist expect(response.statusCode, "smoke test: response code is not 200 getting project list").to.equal(200) expect(!!body.match("Your Projects - Online LaTeX Editor ShareLaTeX"), "smoke test: body does not have correct title").to.equal true - expect(!!body.match("

Projects

"), "smoke test: body does not have correct h1").to.equal true + expect(!!body.match("ProjectPageController"), "smoke test: body does not have correct angular controller").to.equal true done()