blob: 704bda87210ae028e15df89b75ada90b81bc9857 (
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('.site-without-data', function (page) {
page.load(urlToTest);
}, done);
});
});
|