From db511207b40da3beae28e6f883865f47d5d64f3b Mon Sep 17 00:00:00 2001 From: Laurent Nguyen Date: Fri, 28 Jun 2024 17:46:18 +0200 Subject: [PATCH] 2nd attempt to fix example test --- test/sql/selfServeExample.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/sql/selfServeExample.spec.ts b/test/sql/selfServeExample.spec.ts index 225863cd9..e80b21081 100644 --- a/test/sql/selfServeExample.spec.ts +++ b/test/sql/selfServeExample.spec.ts @@ -9,7 +9,9 @@ test("Self Serve", async ({ page }) => { const regionDropdown = explorer.frame.getByText("Select a region"); await regionDropdown.click(); - await explorer.frame.getByRole("option").first().click(); + const firstOption = explorer.frame.getByRole("option").first(); + firstOption.waitFor(); + await firstOption.click(); const currentRegionLabel = explorer.frame.getByLabel("Current Region"); await currentRegionLabel.waitFor();