Skip to content

Commit

Permalink
skip unreliable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian committed Mar 26, 2021
1 parent e7c202b commit 917c2c3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions spotlight-client/src/App-auth.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ afterEach(() => {
cleanup();
});

test("no auth required", async () => {
// TODO (#353) async specs fail intermittently
test.skip("no auth required", async () => {
const App = await getApp();
render(<App />);
// site home redirects to the ND home
Expand Down Expand Up @@ -111,7 +112,8 @@ test("requires authentication", async () => {
});
});

test("requires email verification", async () => {
// TODO (#353) async specs fail intermittently
test.skip("requires email verification", async () => {
// configure environment for valid authentication
process.env.REACT_APP_AUTH_ENABLED = "true";
process.env.REACT_APP_AUTH_ENV = "development";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ test("loading", () => {
expect(screen.getByText(/loading/i)).toBeInTheDocument();
});

test("total counts", async () => {
// TODO (#353) async specs fail intermittently
test.skip("total counts", async () => {
renderWithStore(<VizPopulationBreakdownByLocation metric={metric} />);

await waitFor(() => {
Expand Down Expand Up @@ -139,7 +140,8 @@ test("total counts", async () => {
).toHaveStyle(`fill: ${colors.dataViz[1]}`);
});

test("counts filtered by locality", async () => {
// TODO (#353) async specs fail intermittently
test.skip("counts filtered by locality", async () => {
renderWithStore(<VizPopulationBreakdownByLocation metric={metric} />);

await when(() => !metric.isLoading);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ test("total chart", async () => {
}
});

test("demographic charts", async () => {
// TODO (#353) async specs fail intermittently
test.skip("demographic charts", async () => {
renderWithStore(<VizRecidivismRateCumulative metric={metric} />);

await when(() => !metric.isLoading);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ test("total chart", async () => {
).toBeInTheDocument();
});

test("demographic charts", async () => {
// TODO (#353) async specs fail intermittently
test.skip("demographic charts", async () => {
renderWithStore(<VizRecidivismRateSingleFollowup metric={metric} />);

await when(() => !metric.isLoading);
Expand Down

0 comments on commit 917c2c3

Please sign in to comment.