fix(ui_test): reload page after login instead of redirecting to /app (#26551)

- navigating to /app does an absolute navigation in cypress and doesn't
  forward url args
This commit is contained in:
Rutwik Hiwalkar 2024-05-24 13:08:31 +05:30 committed by GitHub
parent 750b70b075
commit 3e8765d5d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");
});
});