From 5363c23485bff810cb839c0f786598712513b952 Mon Sep 17 00:00:00 2001 From: hujambo-dunia Date: Thu, 16 Jan 2025 09:49:48 -0500 Subject: [PATCH] User reporting: test script update --- .../src/components/DatasetInformation/DatasetError.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/DatasetInformation/DatasetError.test.ts b/client/src/components/DatasetInformation/DatasetError.test.ts index 1c514acb3d14..f964c71191eb 100644 --- a/client/src/components/DatasetInformation/DatasetError.test.ts +++ b/client/src/components/DatasetInformation/DatasetError.test.ts @@ -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 }) => { @@ -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");