Skip to content

Commit

Permalink
fix(cypress): failing static routes test (#5443)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndv99 authored May 21, 2024
1 parent d6f66c7 commit b9b5eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/with-users/subnets/staticroutes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ context("Static Routes", () => {
// Verify the change has been saved and side panel closed
cy.get("@staticRoute").then((staticRoute: unknown) => {
cy.findByRole("region", { name: /Static routes/i }).within(() => {
cy.findByText(staticRoute as string);
const newStaticRoute = (staticRoute as string).slice(0, -1) + "2";
cy.findByText(newStaticRoute);
});
});
cy.findByRole("complementary", { name: /Edit static route/i }).should(
Expand Down

0 comments on commit b9b5eef

Please sign in to comment.