Skip to content

Commit

Permalink
fix(ui_test): reload page after login instead of redirecting to /app (f…
Browse files Browse the repository at this point in the history
…rappe#26551)

- navigating to /app does an absolute navigation in cypress and doesn't
  forward url args
  • Loading branch information
rutwikhdev committed May 24, 2024
1 parent 750b70b commit 3e8765d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/integration/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ context("Navigation", () => {
cy.get("@reload").get(".page-card .btn-primary").contains("Login").click();
cy.location("pathname").should("eq", "/login");
cy.login();
cy.visit("/app");
cy.reload().as("reload");
cy.location("pathname").should("eq", "/app/todo");
});
});

0 comments on commit 3e8765d

Please sign in to comment.