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@piwik.org>2018-04-23 07:20:37 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-04-23 07:20:37 +0300
commit14ba6a44029e29a9336efdd482875df641bd2a82 (patch)
tree12e97f7af52a0cde48142674c3b79dcb1b628c4f /plugins/Live/tests/UI
parenteff059cd5825fc8967673cb0a2f96ed7564f3c65 (diff)
Show information in visitor profile if dataset was "truncated" (#12376)
* Show overall visit count in visitor profile if there have been more visits than shown in the summary * update/ add tests
Diffstat (limited to 'plugins/Live/tests/UI')
-rw-r--r--plugins/Live/tests/UI/Live_spec.js15
-rw-r--r--plugins/Live/tests/UI/expected-ui-screenshots/Live_visitor_profile_limited.pngbin0 -> 321058 bytes
2 files changed, 15 insertions, 0 deletions
diff --git a/plugins/Live/tests/UI/Live_spec.js b/plugins/Live/tests/UI/Live_spec.js
index 48278897fe..74cb330f3a 100644
--- a/plugins/Live/tests/UI/Live_spec.js
+++ b/plugins/Live/tests/UI/Live_spec.js
@@ -69,6 +69,21 @@ describe("Live", function () {
}, done);
});
+ it('should show limited profile message', function (done) {
+ expect.screenshot('visitor_profile_limited').to.be.captureSelector('.ui-dialog', function (page) {
+
+ // Limit number of shown visits to 5
+ testEnvironment.overrideConfig('General', 'live_visitor_profile_max_visits_to_aggregate', 5);
+ testEnvironment.save();
+
+ page.load("?module=CoreHome&action=index&idSite=1&period=year&date=2010-01-03#?idSite=1&period=year&date=2010-01-03&category=General_Visitors&subcategory=Live_VisitorLog");
+ page.evaluate(function(){
+ $('.card:first-child .visitor-log-visitor-profile-link').click();
+ });
+ page.wait(6000);
+ }, done);
+ });
+
it('should show visitor log purge message when purged and no data', function (done) {
expect.screenshot('visitor_log_purged').to.be.captureSelector('.reporting-page', function (page) {
diff --git a/plugins/Live/tests/UI/expected-ui-screenshots/Live_visitor_profile_limited.png b/plugins/Live/tests/UI/expected-ui-screenshots/Live_visitor_profile_limited.png
new file mode 100644
index 0000000000..e6d3fca8bb
--- /dev/null
+++ b/plugins/Live/tests/UI/expected-ui-screenshots/Live_visitor_profile_limited.png
Binary files differ