From bd6b430ed8f7852eb9f49d849a84897016f8d67c Mon Sep 17 00:00:00 2001 From: sgiehl <stefan@piwik.org> Date: Tue, 12 Jan 2016 20:48:56 +0100 Subject: [PATCH] adds UI test for german super user creation step --- tests/UI/specs/Installation_spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/UI/specs/Installation_spec.js b/tests/UI/specs/Installation_spec.js index 6aca4b0b78..0fae3a9e89 100644 --- a/tests/UI/specs/Installation_spec.js +++ b/tests/UI/specs/Installation_spec.js @@ -86,8 +86,19 @@ describe("Installation", function () { }, done); }); + var pageUrl, pageUrlDe; + + it("should fail when incorrect information is entered in the superuser configuration page", function (done) { + expect.screenshot("superuser_de").to.be.capture(function (page) { + pageUrl = page.getCurrentUrl(); + pageUrlDe = pageUrl + '&language=de' + page.load(pageUrlDe); + }, done); + }); + it("should fail when incorrect information is entered in the superuser configuration page", function (done) { expect.screenshot("superuser_fail").to.be.capture(function (page) { + page.load(pageUrl); page.click('.btn'); }, done); }); -- GitLab