diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-06-12 05:39:24 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-06-12 05:39:24 +0300 |
commit | a4e5979b3d623bb855071f2030a4ea1011c99df9 (patch) | |
tree | 9c5900c6de2321144a48dd0109d3861191599c98 /plugins/Live/tests/UI | |
parent | 061e9364f69ad30cbbe1ef63eb9337e9e1d2434b (diff) |
Show info message in visitor profile if there had been more visits than shown in the summary (#12863)
* Show info message in visitor profile if there have been more visits than shown in the summary
* show limited profile message in visit list as well
* fix tests
Diffstat (limited to 'plugins/Live/tests/UI')
-rw-r--r-- | plugins/Live/tests/UI/Live_spec.js | 15 | ||||
-rw-r--r-- | plugins/Live/tests/UI/expected-screenshots/Live_visitor_profile_limited.png | 3 |
2 files changed, 18 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-screenshots/Live_visitor_profile_limited.png b/plugins/Live/tests/UI/expected-screenshots/Live_visitor_profile_limited.png new file mode 100644 index 0000000000..03a0e8361d --- /dev/null +++ b/plugins/Live/tests/UI/expected-screenshots/Live_visitor_profile_limited.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43ac9699f75b88f2165ef0d80b8870d27a35406bad154d1a9cbc3e1fb90954eb +size 322994 |