-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*! | ||
* Matomo - free/libre analytics platform | ||
* | ||
* Screenshot tests for IPReports plugin | ||
* | ||
* @link https://matomo.org | ||
* @license http://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'); | ||
}); | ||
|
||
|
||
}); |
3 changes: 3 additions & 0 deletions
3
plugins/UserId/tests/UI/expected-screenshots/UserId_report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
plugins/UserId/tests/UI/expected-screenshots/UserId_report_engagement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.