diff --git a/packages/pluggableWidgets/combobox-web/e2e/Combobox.spec.js b/packages/pluggableWidgets/combobox-web/e2e/Combobox.spec.js index acceaf147b..c5dda6c243 100644 --- a/packages/pluggableWidgets/combobox-web/e2e/Combobox.spec.js +++ b/packages/pluggableWidgets/combobox-web/e2e/Combobox.spec.js @@ -27,7 +27,8 @@ test.describe("combobox-web", () => { await expect(comboBox).toHaveScreenshot(`comboBoxAssociationRowClick.png`); await comboBox.click(); await expect(page.locator(".modal-body .mx-name-layoutGrid1").first()).toHaveScreenshot( - `comboBoxAssociationRowClickOpen.png` + `comboBoxAssociationRowClickOpen.png`, + { maxDiffPixels: 10 } ); }); @@ -97,7 +98,8 @@ test.describe("combobox-web", () => { await comboBox.click(); await getFilterInput(comboBox).fill("A"); await expect(page.locator(".modal-body .mx-name-layoutGrid1").first()).toHaveScreenshot( - `comboBoxFiltering.png` + `comboBoxFiltering.png`, + { maxDiffPixels: 10 } ); }); diff --git a/packages/pluggableWidgets/combobox-web/e2e/OnChange.spec.js b/packages/pluggableWidgets/combobox-web/e2e/OnChange.spec.js index 18aa0d236d..a7a8913135 100644 --- a/packages/pluggableWidgets/combobox-web/e2e/OnChange.spec.js +++ b/packages/pluggableWidgets/combobox-web/e2e/OnChange.spec.js @@ -64,8 +64,12 @@ test.describe("combobox-web onChange", () => { await combobox.selectOption("Multi Option nr.1"); await combobox.selectOption("Multi Option nr.2"); - const entries = await getLogs(page); - expect(entries[entries.length - 1].multiAssocTitles).toEqual(["Multi Option nr.1", "Multi Option nr.2"]); + await expect + .poll(async () => { + const entries = await getLogs(page); + return entries[entries.length - 1]?.multiAssocTitles; + }) + .toEqual(["Multi Option nr.1", "Multi Option nr.2"]); }); });