Download plugins/DBStats/tests/UI/DBStats_spec.js from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/DBStats/tests/UI/DBStats_spec.js
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/DBStats/tests/UI/DBStats_spec.js
-
curl -L -o DBStats_spec.js https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/DBStats/tests/UI/DBStats_spec.js
536 Bytes
| /*! | |
| * Matomo - free/libre analytics platform | |
| * | |
| * Screenshot tests for the DBStats plugin. | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| describe("DBStats", function () { | |
| const url = "?module=DBStats&action=index&idSite=1&period=day&date=yesterday"; | |
| it("should load correctly", async function() { | |
| await page.goto(url); | |
| const content = await page.$('#content'); | |
| expect(await content.screenshot()).to.matchImage('admin_page'); | |
| }); | |
| }); | |