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();