Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonieaj committed Oct 3, 2024
1 parent b68b3ea commit d6386d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/src/__tests__/MemoryModelsUserInput.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand All @@ -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",
});
Expand Down

0 comments on commit d6386d3

Please sign in to comment.