Skip to content

Commit f60bc64

Browse files
committed
Fix test
1 parent 6b98a6d commit f60bc64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tests/ReactSpreadsheetImport.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ test("Close modal", async () => {
88
const onClose = jest.fn()
99
render(<ReactSpreadsheetImport {...mockRsiValues} onClose={onClose} />)
1010

11-
const closeButton = screen.getByRole("button", {
12-
name: "Close modal",
13-
})
11+
const closeButton = screen.getByLabelText("Close modal")
1412

1513
userEvent.click(closeButton)
1614

0 commit comments

Comments
 (0)