قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-22 23:17:46 +00:00

* [Coding Style] Enable rule PSR12.Files.FileHeader * Apply CS * Replace Piwik with Matomo in file headers * Unify file headers (position, no. of lines, https links) * Rebuild dist files * Apply CS * Fix system test that relies on line numbers in a file that had the file header updated --------- Co-authored-by: Stefan Giehl <stefan@matomo.org>
32 خطوط
997 B
JavaScript
32 خطوط
997 B
JavaScript
/*!
|
|
* Matomo - free/libre analytics platform
|
|
*
|
|
* Tests that theming works.
|
|
*
|
|
* @link https://matomo.org
|
|
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
|
*/
|
|
|
|
describe("DisablePluginArchive", function () {
|
|
|
|
this.fixture = 'Piwik\\Tests\\Fixtures\\DisablePluginArchive';
|
|
|
|
before(function () {
|
|
const firefoxUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 11.2; rv:85.0) Gecko/20100101 Firefox/85.0";
|
|
page.setUserAgent(firefoxUserAgent);
|
|
});
|
|
|
|
after(async () => {
|
|
await page.setUserAgent(page.originalUserAgent);
|
|
});
|
|
|
|
var url = "?module=Widgetize&action=iframe&moduleToWidgetize=Referrers&idSite=1&period=year&date=2012-08-09&"
|
|
+ "actionToWidgetize=getKeywords&viewDataTable=table&filter_limit=5&isFooterExpandedInDashboard=1&segment=actions%3D%3D1";
|
|
|
|
|
|
it("should show plugin disable text", async function () {
|
|
await page.goto(url);
|
|
expect(await page.screenshot({ fullPage: true })).to.matchImage('referrer_disabled');
|
|
});
|
|
});
|