Skip to content

Commit

Permalink
chore: remove un-needed initial state? (#2843)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpigeonjr authored Sep 27, 2024
1 parent 9985b69 commit 37add4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 91 deletions.
10 changes: 0 additions & 10 deletions frontend/cypress/e2e/loginPage.cy.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
/// <reference types="cypress" />
import { testLogin } from "./utils";
import { getCurrentFiscalYear } from "../../src/helpers/utils";

it("has expected state on initial load", () => {
cy.visit("/login");
cy.fixture("initial-state").then((initState) => {
const currentFY = getCurrentFiscalYear();
initState.portfolio.selectedFiscalYear.value = currentFY;
initState.researchProjectFunding.selectedFiscalYear.value = currentFY;

cy.window()
.then((win) => win.store.getState())
.should("deep.include", initState);
});
});

it("FakeAuth can login with Admin user", () => {
Expand Down
81 changes: 0 additions & 81 deletions frontend/cypress/fixtures/initial-state.json

This file was deleted.

0 comments on commit 37add4b

Please sign in to comment.