Skip to content

Commit

Permalink
fix Sudoku.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
icecream17 authored Feb 26, 2024
1 parent 015e21b commit 1c79987
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Elems/MainElems/Sudoku.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ test("Clearing all candidates of a cell", () => {
const buttonCell = getButtonCellElement(0, 0)
const buttonCell2 = getButtonCellElement(0, 1)

// Change to something
// Change to something to avoid false negative
userEvent.click(buttonCell)
userEvent.keyboard('123') // And now subtract 123
userEvent.keyboard('7')
fireEvent.blur(buttonCell)
expect(buttonCell).toHaveTextContent('456789')
expect(buttonCell).toHaveTextContent('7')

// Both Shift and Alt key work to delete all candidates
userEvent.click(buttonCell)
Expand Down

0 comments on commit 1c79987

Please sign in to comment.