Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EmptySite_spec.js « specs « UI « tests - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 31b8524d6f6032702616d1f116327ffaae64b238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*!
 * Piwik - free/libre analytics platform
 *
 * Screenshot integration tests.
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 */

describe("EmptySite", function () {
    this.timeout(0);

    var generalParams = 'idSite=4&period=day&date=2010-01-03';

    it('should show the tracking code if the website has no recorded data', function (done) {
        var urlToTest = "?" + generalParams + "&module=CoreHome&action=index";

        expect.screenshot('emptySiteDashboard').to.be.captureSelector('.page', function (page) {
            page.load(urlToTest);
        }, done);
    });
});