-
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.
* updated mockStore.js to include current projects * removed updatesData query from pages since the data is available through the pageData object, updated props value for updatesData * added unit testing for pages * updated mockStore.js to include current projects * updated mockStore.js * added experiments data import to OAS benefits navigator test
- Loading branch information
Showing
10 changed files
with
6,991 additions
and
1,660 deletions.
There are no files selected for viewing
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 BenefitsNavigatorOverview from "../../pages/projects/benefits-navigator/index"; | ||
import { | ||
dictionaryData, | ||
benefitsNavigatorData, | ||
experimentsData, | ||
benefitsNavigatorUpdatesData, | ||
} from "../../__mocks__/mockStore"; | ||
|
||
describe("Benefits Navigator", () => { | ||
it("renders without crashing", () => { | ||
render( | ||
<BenefitsNavigatorOverview | ||
pageData={benefitsNavigatorData.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { render } from "@testing-library/react"; | ||
import MscaDashboard from "../../pages/projects/dashboard/index"; | ||
import { | ||
dictionaryData, | ||
dashboardData, | ||
experimentsData, | ||
dashboardUpdatesData, | ||
} from "../../__mocks__/mockStore"; | ||
|
||
describe("MSCA Dashboard", () => { | ||
it("renders without crashing", () => { | ||
render( | ||
<MscaDashboard | ||
pageData={dashboardData.data.sclabsPageV1ByPath} | ||
updatesData={dashboardUpdatesData} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { render } from "@testing-library/react"; | ||
import DigitalStandardsPlaybookPage from "../../pages/projects/digital-standards-playbook/index"; | ||
import { | ||
dictionaryData, | ||
playbookData, | ||
experimentsData, | ||
playbookUpdatesData, | ||
} from "../../__mocks__/mockStore"; | ||
|
||
describe("Digital Standards Playbook", () => { | ||
it("renders without crashing", () => { | ||
render( | ||
<DigitalStandardsPlaybookPage | ||
pageData={playbookData.data.sclabsPageV1ByPath} | ||
updatesData={playbookUpdatesData} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { render } from "@testing-library/react"; | ||
import IntegratedChannelStrategyPage from "../../pages/projects/making-easier-get-benefits/index"; | ||
import { | ||
dictionaryData, | ||
ICSData, | ||
experimentsData, | ||
ICSUpdatesData, | ||
} from "../../__mocks__/mockStore"; | ||
|
||
describe("Integrated Channel Strategy", () => { | ||
it("renders without crashing", () => { | ||
render( | ||
<IntegratedChannelStrategyPage | ||
pageData={ICSData.data.sclabsPageV1ByPath} | ||
updatesData={ICSUpdatesData} | ||
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
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