قرینه از
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>
30 خطوط
907 B
JavaScript
30 خطوط
907 B
JavaScript
/*!
|
|
* Matomo - free/libre analytics platform
|
|
*
|
|
* Seo widget screenshot tests.
|
|
*
|
|
* @link https://matomo.org
|
|
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
|
*/
|
|
|
|
describe("SeoWidgetTest", function () {
|
|
|
|
this.fixture = 'Piwik\\Tests\\Fixtures\\OneVisitorTwoVisits';
|
|
|
|
this.timeout(0);
|
|
|
|
var url = 'index.php?module=Widgetize&action=iframe&disableLink=0&widget=1&moduleToWidgetize=SEO&actionToWidgetize=getRank&idSite=1&period=day&date=yesterday&disableLink=1&widget=1&url=matomo.org';
|
|
|
|
it("should load correctly", async function() {
|
|
await page.webpage.setViewport({
|
|
width: 500,
|
|
height: 500
|
|
});
|
|
await page.goto(url);
|
|
await page.evaluate(function () {
|
|
$('td:last div').text('3 years 78 days');
|
|
});
|
|
expect(await page.screenshotSelector('.widget')).to.matchImage('widget');
|
|
});
|
|
});
|