Skip to content

Commit

Permalink
fix object update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalabbad committed Sep 18, 2024
1 parent 7d8a725 commit bc2a9bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/app/tests/e2e/objects/object-update.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ test.describe("Object update", () => {
await expect(page.getByLabel("Type *")).toHaveValue("MX204");
await expect(page.getByLabel("Status")).toHaveText("Active");
await expect(page.getByLabel("Role")).toHaveText("Edge Router");
await expect(page.getByLabel("Asn")).toHaveText("AS701 701");
.getByTestId("side-panel-container")
await expect(
page.getByTestId("side-panel-container").getByLabel("Asn").locator("../..").locator("input")
).toHaveValue("AS701 701");

const tabInput = page.getByTestId("side-panel-container").getByText("greenred");
await tabInput.scrollIntoViewIfNeeded();
Expand Down Expand Up @@ -100,7 +103,7 @@ test.describe("Object update", () => {
await page.getByRole("option", { name: "Leaf Switch" }).click();

await page.getByTestId("side-panel-container").getByLabel("Asn").click();
await page.getByRole("option", { name: "AS64496 64496" }).click();
await page.getByRole("option", { name: "Empty", exact: true }).click();

await page.getByRole("button", { name: "Save" }).click();
});
Expand Down

0 comments on commit bc2a9bc

Please sign in to comment.