Skip to content

Commit

Permalink
User reporting: test script update
Browse files Browse the repository at this point in the history
  • Loading branch information
hujambo-dunia committed Jan 16, 2025
1 parent 5fe22cf commit 5363c23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/DatasetInformation/DatasetError.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("DatasetError", () => {
});

it("hides form fields and button on success", async () => {
const wrapper = await montDatasetError();
const wrapper = await montDatasetError(false, false, "test_email");

server.use(
http.post("/api/jobs/{job_id}/error", ({ response }) => {
Expand All @@ -112,10 +112,10 @@ describe("DatasetError", () => {
})
);

const FormAndSubmitButton = "#dataset-error-form";
const FormAndSubmitButton = "#data-error-form";
expect(wrapper.find(FormAndSubmitButton).exists()).toBe(true);

const submitButton = "#dataset-error-submit";
const submitButton = "#data-error-submit";
expect(wrapper.find(submitButton).exists()).toBe(true);

await wrapper.find(submitButton).trigger("click");
Expand Down

0 comments on commit 5363c23

Please sign in to comment.