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
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Insights')
-rw-r--r--plugins/Insights/tests/UI/Insights_spec.js21
-rw-r--r--plugins/Insights/tests/UI/expected-screenshots/Insights_initial.png3
2 files changed, 24 insertions, 0 deletions
diff --git a/plugins/Insights/tests/UI/Insights_spec.js b/plugins/Insights/tests/UI/Insights_spec.js
new file mode 100644
index 0000000000..eb4789f6d1
--- /dev/null
+++ b/plugins/Insights/tests/UI/Insights_spec.js
@@ -0,0 +1,21 @@
+/*!
+ * Matomo - free/libre analytics platform
+ *
+ * Insights screenshot tests.
+ *
+ * @link https://matomo.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ */
+
+describe("Insights", function () {
+ this.timeout(0);
+
+ var url = "?module=Widgetize&action=iframe&idSite=1&period=year&date=2012-08-09&moduleToWidgetize=Actions&actionToWidgetize=getPageUrls&isFooterExpandedInDashboard=1&viewDataTable=insightsVisualization";
+
+ it("should load correctly", function (done) {
+ expect.screenshot('initial').to.be.capture(function (page) {
+ page.load(url);
+ }, done);
+ });
+
+});
diff --git a/plugins/Insights/tests/UI/expected-screenshots/Insights_initial.png b/plugins/Insights/tests/UI/expected-screenshots/Insights_initial.png
new file mode 100644
index 0000000000..6aa24fc606
--- /dev/null
+++ b/plugins/Insights/tests/UI/expected-screenshots/Insights_initial.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d0d849e7426f94a1aff4bccb05453ce961465eb47e145882564b39943d97590a
+size 152855