diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-01-02 03:11:19 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-01-02 03:11:19 +0300 |
commit | 6575610f6dfccc602988a9578a0b2913d675ba52 (patch) | |
tree | b58aabeda484f16e554af0dfe4c788c28338af58 /tests/UI | |
parent | d58200d99c50967f655f3ec4d05e37b7e6517792 (diff) |
Fixes missing number of actions in realtimemap (#11120)
* use correct transslation
* improve UI test for realtimemap to show tooltip
Diffstat (limited to 'tests/UI')
-rw-r--r-- | tests/UI/expected-screenshots/UIIntegrationTest_visitors_realtime_map.png | 4 | ||||
-rw-r--r-- | tests/UI/specs/UIIntegration_spec.js | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_visitors_realtime_map.png b/tests/UI/expected-screenshots/UIIntegrationTest_visitors_realtime_map.png index 8090ecf532..ff42467040 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_visitors_realtime_map.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_visitors_realtime_map.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ec9c25bddfe98899302a3a90731486c95473e23314df1ba8aa15502dd6077b77 -size 103297 +oid sha256:eb3ef27a3e3ae39417687002c9af7600824c75fdd51be475f6716319d03860fe +size 113419 diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js index b3e51288af..2519d08f3c 100644 --- a/tests/UI/specs/UIIntegration_spec.js +++ b/tests/UI/specs/UIIntegration_spec.js @@ -150,6 +150,10 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? page.load("?" + urlBase + "#?" + idSite2Params + "&category=General_Visitors&subcategory=UserCountryMap_RealTimeMap" + "&showDateTime=0&realtimeWindow=last2&changeVisitAlpha=0&enableAnimation=0&doNotRefreshVisits=1" + "&removeOldVisits=0"); + page.mouseMove('circle'); + page.evaluate(function(){ + $('.ui-tooltip:visible .rel-time').data('actiontime', Math.floor(new Date((new Date()).getTime()-(4*3600*24000))/1000)); + }); }, done); }); |