2nd attempt to fix example test

This commit is contained in:
Laurent Nguyen 2024-06-28 17:46:18 +02:00
parent 38bb1ae591
commit db511207b4
1 changed files with 3 additions and 1 deletions

View File

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