Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
key events are now triggered at keydown and the deprecated keyCode field is no longer used
  • Loading branch information
raimohanska committed Feb 3, 2022
1 parent ff7c34a commit 9493bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/integration/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ describe("Board functionality", () => {
createNote("World", 350, 200)
NotesWithText("Monoids").click({ force: true, shiftKey: true })
NotesWithText("World").click({ force: true, shiftKey: true })
NotesWithText("World").trigger("keyup", { keyCode: BACKSPACE, which: BACKSPACE, force: true })
NotesWithText("World").trigger("keydown", { key: "Backspace", which: BACKSPACE, force: true })

NotesWithText("Monoids").should("not.exist")
NotesWithText("World").should("not.exist")
Expand All @@ -436,7 +436,7 @@ describe("Board functionality", () => {
createNote("World", 350, 200)
NotesWithText("Monoids").click({ force: true, shiftKey: true })
NotesWithText("World").click({ force: true, shiftKey: true })
NotesWithText("World").trigger("keyup", { keyCode: DELETE, which: DELETE, force: true })
NotesWithText("World").trigger("keydown", { key: "Backspace", which: DELETE, force: true })

NotesWithText("Monoids").should("not.exist")
NotesWithText("World").should("not.exist")
Expand Down

0 comments on commit 9493bdd

Please sign in to comment.