1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-24 16:07:37 +00:00
Files
matomo/plugins/Feedback/tests/UI/FeedbackForm_spec.js
2024-05-28 22:29:12 +02:00

27 خطوط
936 B
JavaScript

/*!
* Matomo - free/libre analytics platform
*
* UsersManager screenshot tests.
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
describe("FeedbackForm", function () {
it('should load the feedback form when the feedback form link is clicked', async function() {
await page.goto("?idSite=1&period=year&date=2012-08-09&module=Feedback&action=index");
await page.evaluate(function () {
$('.enrichedHeadline').each(function () {
if ($(this).html().indexOf("Matomo") !== -1) {
var replace = $(this).html().replace(/Matomo\s*\d+\.\d+(\.\d+)?([\-a-z]*\d+|-alpha)?(\.[0-9]{14})?/g, 'Matomo');
$(this).html(replace);
}
});
});
var pageWrap = await page.$('.pageWrap');
expect(await pageWrap.screenshot()).to.matchImage('show');
});
});