diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-09-30 16:17:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 16:17:03 +0300 |
commit | 753f97ad5d78f9664270a9b79087aa951479279d (patch) | |
tree | 14ac74b52eee48ff439a82c1b992f69964e8b7ef /plugins | |
parent | c69f12a66a86c93e6f9ad8449cf7c4957b128768 (diff) |
try to fix failing overlay ui test (#18084)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Overlay/tests/UI/Overlay_spec.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Overlay/tests/UI/Overlay_spec.js b/plugins/Overlay/tests/UI/Overlay_spec.js index d005178af1..ddbd3155b6 100644 --- a/plugins/Overlay/tests/UI/Overlay_spec.js +++ b/plugins/Overlay/tests/UI/Overlay_spec.js @@ -181,6 +181,11 @@ describe("Overlay", function () { await page.goto('?module=Widgetize&action=iframe&disableLink=0&widget=1&moduleToWidgetize=Actions&actionToWidgetize=getPageUrls&idSite=3&period=year&date=today&disableLink=1&widget=1&token_auth=a4ca4238a0b923820dcc509a6f75849f', {waitUntil: 'networkidle0'}); await page.waitForNetworkIdle(); + await page.evaluate(function() { + $('tr.subDataTable:contains(resources)').click(); + }); + + await page.waitForFunction(() => !! $('.dataTable tbody tr:contains(index)').length); const row = await page.jQuery('.dataTable tbody tr:contains(index)'); await row.hover(); @@ -197,4 +202,4 @@ describe("Overlay", function () { expect(await popup.screenshot({fullPage: true})).to.matchImage('loaded_from_actions'); }); -});
\ No newline at end of file +}); |