Skip to content

Commit 5716213

Browse files
committed
fix UGN-329 - use userEvent instead of fireEvent
1 parent 3299ffc commit 5716213

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/steps/MatchColumnsStep/tests/MatchColumnsStep.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "@testing-library/jest-dom"
2-
import { render, waitFor, screen, fireEvent } from "@testing-library/react"
2+
import { render, waitFor, screen } from "@testing-library/react"
33
import { MatchColumnsStep } from "../MatchColumnsStep"
44
import { defaultTheme, ReactSpreadsheetImport } from "../../../ReactSpreadsheetImport"
55
import { mockRsiValues } from "../../../stories/mockRsiValues"
@@ -607,7 +607,7 @@ describe("Match Columns general tests", () => {
607607
)
608608

609609
const continueButton = screen.getByText(CONTINUE_BUTTON)
610-
fireEvent.click(continueButton)
610+
userEvent.click(continueButton)
611611

612612
await waitFor(() => {
613613
expect(matchColumnsStepHook).toBeCalled()
@@ -639,7 +639,7 @@ describe("Match Columns general tests", () => {
639639
)
640640

641641
const continueButton = getByText(CONTINUE_BUTTON)
642-
fireEvent.click(continueButton)
642+
userEvent.click(continueButton)
643643

644644
const mutatedEntry = await screen.findByText(MUTATED_ENTRY)
645645
expect(mutatedEntry).toBeInTheDocument()

0 commit comments

Comments
 (0)