Skip to content

Commit

Permalink
wip: bump timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Mar 15, 2024
1 parent c728836 commit 2b6a7d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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 @@ -30,6 +30,7 @@ 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 +231,7 @@ describe("Pay component - Editor Modal", () => {
await waitFor(() =>
expect(getByText("Key is a required field")).toBeVisible(),
);
}, 10000);
});

it("displays array-level errors", async () => {
const handleSubmit = jest.fn();
Expand Down Expand Up @@ -262,7 +263,7 @@ describe("Pay component - Editor Modal", () => {
// Test that validation schema is wired up to UI
// model.test.ts tests validation schema behaviour in-depth
expect(await findByText("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 2b6a7d7

Please sign in to comment.