Skip to content

Commit 6caa1c0

Browse files
refactor: error integration tests to look for upload failed!
1 parent f127004 commit 6caa1c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/__tests__/page.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe("User Flow", () => {
100100
await user.upload(fileInput, [nonConforming]);
101101

102102
// Assert
103-
const errorFlag = await screen.findByText("Error!");
103+
const errorFlag = await screen.findByText("Upload Failed!");
104104
expect(errorFlag).toBeInTheDocument();
105105
});
106106

@@ -119,7 +119,7 @@ describe("User Flow", () => {
119119
await user.upload(fileInput, [malformedFile]);
120120

121121
// Assert
122-
const errorFlag = await screen.findByText("Error!");
122+
const errorFlag = await screen.findByText("Upload Failed!");
123123
expect(errorFlag).toBeInTheDocument();
124124
});
125125
});

0 commit comments

Comments
 (0)