mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-17 17:57:13 +00:00
c7ab4c7ecf7b05f32a85568bce1a667ad8c62703Revert "Select dropdown option with playwright api instead of manual click"
This reverts commit c7ab4c7ecf7b05f32a85568bce1a667ad8c62703.
This commit is contained in:
parent
c7ab4c7ecf
commit
b06e886ac3
@ -7,7 +7,11 @@ test("Self Serve", async ({ page }) => {
|
|||||||
const loggingToggle = explorer.frame.locator("#enableLogging-toggle-input");
|
const loggingToggle = explorer.frame.locator("#enableLogging-toggle-input");
|
||||||
await expect(loggingToggle).toBeEnabled();
|
await expect(loggingToggle).toBeEnabled();
|
||||||
|
|
||||||
explorer.frame.locator("#regions-dropdown-input").selectOption({ index: 0 });
|
const regionDropdown = explorer.frame.getByText("Select a region");
|
||||||
|
await regionDropdown.click();
|
||||||
|
const firstOption = explorer.frame.getByRole("option").first();
|
||||||
|
await firstOption.waitFor();
|
||||||
|
await firstOption.click();
|
||||||
|
|
||||||
const currentRegionLabel = explorer.frame.getByLabel("Current Region");
|
const currentRegionLabel = explorer.frame.getByLabel("Current Region");
|
||||||
await currentRegionLabel.waitFor();
|
await currentRegionLabel.waitFor();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user