blob: 246c4bb3daeff678c2137b76afa0c874bd663e64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*!
* Piwik - free/libre analytics platform
*
* transitions screenshot tests
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
describe("Transitions", function () {
this.timeout(0);
var generalParams = 'idSite=1&period=year&date=2012-08-09',
urlBase = 'module=CoreHome&action=index&' + generalParams
;
it('should load the transitions popup correctly for the page titles report', function (done) {
expect.screenshot('transitions_popup_titles').to.be.captureSelector('.ui-dialog', function (page) {
page.load("?" + urlBase + "#/" + generalParams + "&module=Actions&action=menuGetPageTitles");
page.mouseMove('div.dataTable tbody tr:eq(2)');
page.mouseMove('a.actionTransitions:visible'); // necessary to get popover to display
page.click('a.actionTransitions:visible');
}, done);
});
it('should load the transitions popup correctly for the page urls report', function (done) {
expect.screenshot('transitions_popup_urls').to.be.captureSelector('.ui-dialog', function (page) {
page.load("?" + urlBase + "#/" + generalParams + "&module=Actions&action=menuGetPageUrls&"
+ "popover=RowAction$3ATransitions$3Aurl$3Ahttp$3A$2F$2Fpiwik.net$2Fdocs$2Fmanage-websites$2F");
}, done);
});
});
|