forked from matomo-org/matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code to have activeTab for no-data screen via url param (matomo…
…-org#21022) * Added code to have activeTab for no-data screen via url param, #PG-2928 * built vue files * Vue files updated and tests added * Fix for tracking code to be selected * Updated UI screenshot * Removed activeTab query param * UI test fix * Applied PR suggestion --------- Co-authored-by: AltamashShaikh <[email protected]>
- Loading branch information
1 parent
a4c3e30
commit 254774e
Showing
4 changed files
with
43 additions
and
2 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
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
3 changes: 3 additions & 0 deletions
3
tests/UI/expected-screenshots/EmptySite_CloudflareOverGTM_emptySiteDashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
/*! | ||
* 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_CloudflareOverGTM", function () { | ||
|
||
this.fixture = "Piwik\\Tests\\Fixtures\\EmptySiteWithSiteContentDetectionGTM"; | ||
|
||
const generalParams = 'idSite=1&period=day&date=2010-01-03'; | ||
|
||
it('should show the tracking code if the website has no recorded data and GTM guide', async function () { | ||
const urlToTest = "?" + generalParams + "&module=CoreHome&action=index#cloudflare"; | ||
await page.goto(urlToTest); | ||
|
||
const pageElement = await page.$('.page'); | ||
expect(await pageElement.screenshot()).to.matchImage('emptySiteDashboard'); | ||
}); | ||
|
||
}); |