Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-10-19 16:51:56 +0300
committerGitHub <noreply@github.com>2021-10-19 16:51:56 +0300
commitc15d8dbf98890bf18be7f7cf398e02b994264682 (patch)
tree0a3b9762edceb21a3653e527581cd97f939b2d15 /plugins/Overlay
parent852c3bdfa59c427d40c50286afe5e532e56736b8 (diff)
Fixes overlay UI test (#18183)
Diffstat (limited to 'plugins/Overlay')
-rw-r--r--plugins/Overlay/tests/UI/Overlay_spec.js9
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');