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
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-05-06 18:04:40 +0300
committerGitHub <noreply@github.com>2020-05-06 18:04:40 +0300
commit686e7495bb83ff9e6ca63109225347571d20a272 (patch)
tree45c9cf86d212d694921f97c766d73b812e9aca7b
parentbe92d82ab3b046cf366908db0d33c1675b531e2d (diff)
Improve Geolocation UI test (#15917)
* Ensure db-ip file has always the same date * tiny fix * update ui file
-rw-r--r--plugins/UserCountry/tests/UI/UserCountry_spec.js4
-rw-r--r--plugins/UserCountry/tests/UI/expected-screenshots/UserCountry_admin_geoip2.png4
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/UserCountry/tests/UI/UserCountry_spec.js b/plugins/UserCountry/tests/UI/UserCountry_spec.js
index 140b152ddf..16c72379db 100644
--- a/plugins/UserCountry/tests/UI/UserCountry_spec.js
+++ b/plugins/UserCountry/tests/UI/UserCountry_spec.js
@@ -29,6 +29,10 @@ describe("UserCountry", function () {
await page.goto("?module=UserCountry&action=adminIndex");
+ await page.evaluate(function(){
+ $('#geoipdb-update-info').html($('#geoipdb-update-info').html().replace(/dbip-city-lite-[\d]{4}-[\d]{2}\.mmdb\.gz</, 'dbip-city-lite-2020-04.mmdb.gz<'));
+ });
+
expect(await page.screenshotSelector('#content')).to.matchImage('admin_geoip2');
});
diff --git a/plugins/UserCountry/tests/UI/expected-screenshots/UserCountry_admin_geoip2.png b/plugins/UserCountry/tests/UI/expected-screenshots/UserCountry_admin_geoip2.png
index 277fbfecab..ba1c0a1819 100644
--- a/plugins/UserCountry/tests/UI/expected-screenshots/UserCountry_admin_geoip2.png
+++ b/plugins/UserCountry/tests/UI/expected-screenshots/UserCountry_admin_geoip2.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:395f247d7b4d17452e4824ce2f612f24b94ac8210371ce81968196eed1d8c250
-size 247170
+oid sha256:99523d8e678ec43742479bf9b9acde632540cd3819d87932b16b1c29cdf6d808
+size 247194