diff options
Diffstat (limited to 'tests/UI/specs/Installation_spec.js')
-rw-r--r-- | tests/UI/specs/Installation_spec.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/UI/specs/Installation_spec.js b/tests/UI/specs/Installation_spec.js index 2ee77adfec..bc24ec0248 100644 --- a/tests/UI/specs/Installation_spec.js +++ b/tests/UI/specs/Installation_spec.js @@ -51,8 +51,22 @@ describe("Installation", function () { }, done); }); + var pageUrl; + it("should have already created a tmp/sessions/index.htm file to prevent directory listing", function (done) { + expect.screenshot('nothing_to_see_here').to.be.capture(function (page) { + pageUrl = page.getCurrentUrl(); + + // page.load will load by default the proxy ie. http://localhost/piwik/tests/PHPUnit/proxy/ + // but we need here to check in: http://localhost/piwik/tmp/sessions/ + page.load("../../../tmp/sessions/index.htm"); + + }, done); + }); + it("should display the database setup page when next is clicked on the system check page", function (done) { expect.screenshot("db_setup").to.be.capture(function (page) { + page.load(pageUrl); + page.click('.next-step .btn'); }, done); }); @@ -88,7 +102,7 @@ describe("Installation", function () { var pageUrl, pageUrlDe; - it("should show Piwik PRO GmbH when language is German", function (done) { + it("should un-select Professional Services newsletter checkbox when language is German", function (done) { expect.screenshot("superuser_de").to.be.capture(function (page) { pageUrl = page.getCurrentUrl(); pageUrlDe = pageUrl + '&language=de' |