Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Neudert <marc.neudert@gmail.com>2017-07-21 10:13:08 +0300
committerStefan Giehl <stefan@piwik.org>2017-07-21 10:13:08 +0300
commit5387018f82e074a941ce4f50e37db68cb9066264 (patch)
tree6e1c895f6686e1182d5fac09c11df2d5b2a5b50c /tests
parent9c7d7ff1c842132bc8f3f0ff8c296eb7d3959c30 (diff)
makes access_no_config UI test path independent (#11886)
Diffstat (limited to 'tests')
-rw-r--r--tests/UI/specs/Installation_spec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/UI/specs/Installation_spec.js b/tests/UI/specs/Installation_spec.js
index bc24ec0248..7b80b42a36 100644
--- a/tests/UI/specs/Installation_spec.js
+++ b/tests/UI/specs/Installation_spec.js
@@ -36,6 +36,15 @@ describe("Installation", function () {
it("should display an error message when trying to access a resource w/o a config.ini.php file", function (done) {
expect.screenshot("access_no_config").to.be.capture(function (page) {
page.load("?module=CoreHome&action=index&ignoreClearAllViewDataTableParameters=1");
+
+ page.evaluate(function () {
+ // ensure screenshots are reporting travis config file for comparison
+ // no jQuery existing on these error pages...
+ document.body.innerHTML = document.body.innerHTML.replace(
+ /{\/.*\/test\.config\.ini\.php}/,
+ '{/home/travis/build/piwik/piwik/tests/lib/screenshot-testing/../../../tmp/test.config.ini.php}'
+ );
+ });
}, done);
});