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 'tests/UI/specs/EmptySite_ConsentManager_spec.js')
-rw-r--r--tests/UI/specs/EmptySite_ConsentManager_spec.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/UI/specs/EmptySite_ConsentManager_spec.js b/tests/UI/specs/EmptySite_ConsentManager_spec.js
new file mode 100644
index 0000000000..072f84f490
--- /dev/null
+++ b/tests/UI/specs/EmptySite_ConsentManager_spec.js
@@ -0,0 +1,25 @@
+/*!
+ * Matomo - free/libre analytics platform
+ *
+ * Screenshot integration tests.
+ *
+ * @link https://matomo.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ */
+
+describe("EmptySite_ConsentManager", function () {
+
+ this.fixture = "Piwik\\Tests\\Fixtures\\EmptySiteWithSiteContentDetection";
+
+ const generalParams = 'idSite=1&period=day&date=2010-01-03';
+
+ it('should show the tracking code if the website has no recorded data', async function () {
+ const urlToTest = "?" + generalParams + "&module=CoreHome&action=index";
+ await page.goto(urlToTest);
+
+ const pageElement = await page.$('.page');
+ expect(await pageElement.screenshot()).to.matchImage('emptySiteDashboard');
+ });
+
+
+});