File size: 856 Bytes
1f0da20 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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("CustomVariables", function () {
this.fixture = "Piwik\\Plugins\\CustomVariables\\tests\\Fixtures\\VisitWithManyCustomVariables";
it('should show an overview of all used custom variables', async function() {
await page.goto("?idSite=1&period=day&date=2010-01-03&module=CustomVariables&action=manage");
await page.waitForNetworkIdle();
pageWrap = await page.$('.pageWrap');
expect(await pageWrap.screenshot()).to.matchImage('manage');
});
it('should be visible in the menu', async function() {
expect(await page.screenshotSelector('li:contains(Diagnostic)')).to.matchImage('link_in_menu');
});
});
|