Download plugins/CustomVariables/tests/UI/CustomVariables_spec.js from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 856 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/CustomVariables/tests/UI/CustomVariables_spec.js
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/CustomVariables/tests/UI/CustomVariables_spec.js
-
curl -L -o CustomVariables_spec.js https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/CustomVariables/tests/UI/CustomVariables_spec.js
856 Bytes
| /*! | |
| * 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'); | |
| }); | |
| }); | |