blob: b79a5e58686f17d740793f542571b8d0a0fb2543 (
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
34
|
/*!
* Matomo - free/libre analytics platform
*
* transitions screenshot tests
*
* @link https://matomo.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 + "&category=General_Actions&subcategory=Actions_SubmenuPageTitles");
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 + "&category=General_Actions&subcategory=General_Pages&"
+ "popover=RowAction$3ATransitions$3Aurl$3Ahttp$3A$2F$2Fpiwik.net$2Fdocs$2Fmanage-websites$2F");
page.mouseMove('.Transitions_CurveTextRight');
}, done);
});
});
|