mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Revert "Try to select dropdown item by xpath selector"
This reverts commit 8eb42a64e2.
This commit is contained in:
@@ -9,8 +9,7 @@ test("Self Serve", async ({ page }) => {
|
|||||||
|
|
||||||
const regionDropdown = explorer.frame.getByText("Select a region");
|
const regionDropdown = explorer.frame.getByText("Select a region");
|
||||||
await regionDropdown.click();
|
await regionDropdown.click();
|
||||||
await page.waitForSelector("xpath=//button[@role='option'");
|
const firstOption = explorer.frame.getByRole("option").first();
|
||||||
const firstOption = explorer.frame.locator("xpath=//button[@role='option'").first();
|
|
||||||
await firstOption.waitFor();
|
await firstOption.waitFor();
|
||||||
await firstOption.click();
|
await firstOption.click();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user