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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-03-12 09:12:12 +0300
committermattab <matthieu.aubry@gmail.com>2015-03-12 09:12:12 +0300
commit34af58be71a005ce5126db4248c730910b4445a7 (patch)
treea1b3870557b5be326bcb2f2003f56ddbdd1ff069 /tests
parentf63fc71b4007c4244c16d15195ede5f615520a31 (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.js22
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);
+ });
+});