diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-03-12 09:12:12 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-03-12 09:12:12 +0300 |
commit | 34af58be71a005ce5126db4248c730910b4445a7 (patch) | |
tree | a1b3870557b5be326bcb2f2003f56ddbdd1ff069 /tests | |
parent | f63fc71b4007c4244c16d15195ede5f615520a31 (diff) |
Moved UI test to core UI tests as it's not supported yet that core plugins have their own ui tests
(I think it didn't find the screenshot eg. http://builds-artifacts.piwik.org/ui-tests.master/10877.7/screenshot-diffs/diffviewer.html )
Diffstat (limited to 'tests')
-rw-r--r-- | tests/UI/specs/EmptySite_spec.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/UI/specs/EmptySite_spec.js b/tests/UI/specs/EmptySite_spec.js new file mode 100644 index 0000000000..704bda8721 --- /dev/null +++ b/tests/UI/specs/EmptySite_spec.js @@ -0,0 +1,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); + }); +}); |