Skip to content

Commit

Permalink
waiting for element to properly load to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCasCeb committed Feb 12, 2024
1 parent f370293 commit 9c3c444
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web-new/tests/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9c3c444

Please sign in to comment.