From d6386d3d4a0be487e6cfc333123e33a0e747cfd0 Mon Sep 17 00:00:00 2001 From: yoonie-jang Date: Wed, 2 Oct 2024 22:02:10 -0400 Subject: [PATCH] Update tests --- demo/src/__tests__/MemoryModelsUserInput.spec.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/src/__tests__/MemoryModelsUserInput.spec.tsx b/demo/src/__tests__/MemoryModelsUserInput.spec.tsx index 69bc4da8..b1108aca 100644 --- a/demo/src/__tests__/MemoryModelsUserInput.spec.tsx +++ b/demo/src/__tests__/MemoryModelsUserInput.spec.tsx @@ -142,7 +142,7 @@ describe("MemoryModelsUserInput", () => { }); it("renders an enabled input and disabled reapply button", () => { - fireEvent.click(screen.getByText("File Input")); + fireEvent.click(screen.getByText("Upload JSON File")); const input: HTMLInputElement = screen.getByTestId("file-input"); expect(input).toHaveProperty("disabled", false); @@ -164,7 +164,7 @@ describe("MemoryModelsUserInput", () => { type: "application/json", } ); - fireEvent.click(screen.getByText("File Input")); + fireEvent.click(screen.getByText("Upload JSON File")); const input: HTMLInputElement = screen.getByTestId("file-input"); await waitFor(() => { // this needs to be awaited because of fileReader.onload being async @@ -183,7 +183,7 @@ describe("MemoryModelsUserInput", () => { let input: HTMLInputElement; beforeEach(async () => { - fireEvent.click(screen.getByText("File Input")); + fireEvent.click(screen.getByText("Upload JSON File")); const file = new File([fileString], "test.json", { type: "application/json", });