Skip to content

Commit

Permalink
Merge pull request #3523 from HHS/3522-hide-my-cans
Browse files Browse the repository at this point in the history
Hide "My CANs" tab
  • Loading branch information
jonnalley authored Feb 25, 2025
2 parents e661936 + dba0f4a commit 3b629db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions frontend/cypress/e2e/canList.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ describe("CAN List", () => {
describe("CAN List Filtering", () => {
it("should correctly filter all cans or my cans", () => {
cy.get("tbody").children().should("have.length.greaterThan", 2);
cy.visit("/cans/?filter=my-cans");
// TODO: reinstate once My CANs is functional
// cy.visit("/cans/?filter=my-cans");
cy.get("#fiscal-year-select").select("2044");
// table should not exist and contain one row
cy.get("tbody").children().should("have.length", 1);
cy.get("tbody").children().should("have.length", 3);
// table row should contain G996400
cy.get("tbody").contains("G996400").should("exist");
});
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/components/CANs/CanTabs/CanTabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ const CANTags = () => {
{
name: "",
label: "All CANs"
},
{
name: "?filter=my-cans",
label: "My CANs"
}
];

Expand Down

0 comments on commit 3b629db

Please sign in to comment.