From 9c3c444e8ff6576e2dccecb8692abaa0abd23c0e Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:00:32 +0100 Subject: [PATCH] waiting for element to properly load to fix test --- packages/web-new/tests/test.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web-new/tests/test.spec.js b/packages/web-new/tests/test.spec.js index bad064d3..88f0ac73 100644 --- a/packages/web-new/tests/test.spec.js +++ b/packages/web-new/tests/test.spec.js @@ -433,6 +433,7 @@ test.describe("Examples menu functionality", () => { const quickAccessBtn = page.locator(".example").filter({ hasText: 'Overwrite Existing Definitions' }).nth(1).getByRole("button").nth(0) await quickAccessBtn.click() + await page.waitForTimeout(1000) const exampleTab = page.locator("#tab").nth(1) await expect(exampleTab).toHaveAttribute('data-tab-id', "2") await expect(exampleTab).toHaveText("TMSmart Lamp ControlCloseCancel")