diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-10-19 16:51:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 16:51:56 +0300 |
commit | c15d8dbf98890bf18be7f7cf398e02b994264682 (patch) | |
tree | 0a3b9762edceb21a3653e527581cd97f939b2d15 /plugins/Overlay | |
parent | 852c3bdfa59c427d40c50286afe5e532e56736b8 (diff) |
Fixes overlay UI test (#18183)
Diffstat (limited to 'plugins/Overlay')
-rw-r--r-- | plugins/Overlay/tests/UI/Overlay_spec.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/Overlay/tests/UI/Overlay_spec.js b/plugins/Overlay/tests/UI/Overlay_spec.js index ddbd3155b6..828f095259 100644 --- a/plugins/Overlay/tests/UI/Overlay_spec.js +++ b/plugins/Overlay/tests/UI/Overlay_spec.js @@ -178,15 +178,10 @@ describe("Overlay", function () { testEnvironment.overrideConfig('General', 'enable_framed_allow_write_admin_token_auth', 1); testEnvironment.save(); - 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.goto('?module=Widgetize&action=iframe&disableLink=0&widget=1&moduleToWidgetize=Actions&actionToWidgetize=getPageUrls&idSite=3&period=year&date=today&disableLink=1&widget=1&flat=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)'); + const row = await page.jQuery('.dataTable tbody tr:first', { waitFor: true }); await row.hover(); const icon = await page.waitForSelector('.dataTable tbody tr a.actionOverlay'); |