Skip to content

Commit

Permalink
fix: Bump test timeouts further
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Mar 15, 2024
1 parent 45a289b commit a030616
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editor.planx.uk/src/@planx/components/Pay/Editor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ describe("Pay component - Editor Modal", () => {
});

describe("GOV.UK Pay Metadata section", () => {
jest.setTimeout(20000);

// Set up mock state with platformAdmin user so all Editor features are enabled
const { getState, setState } = vanillaStore;
const mockUser: User = {
Expand Down Expand Up @@ -230,7 +232,7 @@ describe("Pay component - Editor Modal", () => {
await waitFor(() =>
expect(getByText("Key is a required field")).toBeVisible(),
);
}, 10000);
});

it("displays array-level errors", async () => {
act(() => setState({ user: mockUser, flowName: "test flow" }));
Expand Down Expand Up @@ -266,7 +268,7 @@ describe("Pay component - Editor Modal", () => {
await waitFor(() =>
expect(getByText("Keys must be unique")).toBeVisible(),
);
}, 10000);
});

it("only disables the first instance of a required filed", async () => {
act(() => setState({ user: mockUser, flowName: "test flow" }));
Expand Down

0 comments on commit a030616

Please sign in to comment.