1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 06:57:53 +00:00
Files
matomo/plugins/UserId/tests/UI/UserId_spec.js
Stefan Giehl 75290a04f4 Use https URLs (#23072)
* Use https URLs

* Build vue files

* use matomo.org instead of piwik.org in some links

* updates expected UI test file

---------

Co-authored-by: innocraft-automation <innocraft-automation@users.noreply.github.com>
2025-02-27 16:34:08 +01:00

29 خطوط
1.1 KiB
JavaScript

/*!
* Matomo - free/libre analytics platform
*
* Screenshot tests for UserId plugin
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
describe("UserId", function () {
this.fixture = "Piwik\\Plugins\\UserId\\tests\\Fixtures\\TrackFewVisitsAndCreateUsers";
it('should show user id report', async function () {
await page.goto('?module=CoreHome&action=index&idSite=1&period=day&date=2010-02-04#?idSite=1&period=day&date=2010-02-04&category=General_Visitors&subcategory=UserId_UserReportTitle');
await page.waitForNetworkIdle();
expect(await page.screenshotSelector('#widgetUserIdgetUsers')).to.matchImage('report');
});
it('should switch to table with engagement metrics', async function () {
await page.click('.activateVisualizationSelection > span');
await page.click('.tableIcon[data-footer-icon-id=tableAllColumns]');
await page.mouse.move(-10, -10);
await page.waitForNetworkIdle();
expect(await page.screenshotSelector('#widgetUserIdgetUsers')).to.matchImage('report_engagement');
});
});