-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benefits Finder project page (#1067)
* create Benefits Finder page, article page, rewrites * create BF project page and articles queries * create simple unit and integration test and mockdata * add default top margin to h3 in FragmentRender * add ContextualAlert to BF page * change homepage card order * update BN mock data * place ContextualAlert beneath heading * update h3 to h2 to fix a11y heading order
- Loading branch information
Showing
15 changed files
with
2,577 additions
and
256 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { render } from "@testing-library/react"; | ||
import BenefitsFinderOverview from "../../pages/projects/benefits-finder/index"; | ||
import { | ||
dictionaryData, | ||
experimentsData, | ||
benefitsNavigatorUpdatesData, | ||
} from "../../__mocks__/mockStore"; | ||
import { benefitsFinderMock } from "../../__mocks__/benefits-finder.mockdata.js"; | ||
|
||
describe("Benefits Finder", () => { | ||
it("renders without crashing", () => { | ||
render( | ||
<BenefitsFinderOverview | ||
pageData={benefitsFinderMock.data.sclabsPageV1ByPath} | ||
updatesData={benefitsNavigatorUpdatesData} | ||
dictionary={dictionaryData.data.dictionaryV1List} | ||
allProjects={experimentsData.data.scLabsPagev1List.items} | ||
/> | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
describe("Home Page", () => { | ||
beforeEach(() => { | ||
cy.visit("/en/projects/benefits-finder"); | ||
cy.injectAxe(); | ||
}); | ||
|
||
it("has no a11y violations", () => { | ||
cy.checkA11y(); | ||
}); | ||
|
||
it("loads page",()=>{ | ||
cy.url().should('equal',Cypress.config().baseUrl+'/en/projects/benefits-finder') | ||
cy.get('button.info').click() | ||
cy.get('h2.modal-title').should('have.text','Beta') | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.