Skip to content

Commit

Permalink
Click explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
knuton committed Mar 16, 2024
1 parent 23a0870 commit 2502f8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ describe("focus-shift spec", () => {

for (let pair of sequence) {
switch (pair.eventType) {
case "click":
cy.get(pair.selector).click()
break
case "focus":
cy.get(pair.selector).focus()
break
Expand Down Expand Up @@ -199,13 +202,13 @@ describe("focus-shift spec", () => {
{ eventType: "keydown", selector: "#summary-1", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#summary-1", options: keyevent({ key: "ArrowUp" }) },
{ eventType: "keydown", selector: "#summary-1", options: keyevent({ key: "Enter" }) },
{ eventType: "click", selector: "#summary-1" },
{ eventType: "keydown", selector: "#group-button-1", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#group-button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#summary-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#summary-2", options: keyevent({ key: "ArrowUp" }) },
{ eventType: "keydown", selector: "#summary-2", options: keyevent({ key: "Enter" }) },
{ eventType: "click", selector: "#summary-2" },
{ eventType: "keydown", selector: "#subgroup-button-1", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#subgroup-button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#button-2", options: keyevent({ key: "ArrowDown" }) }
Expand Down

0 comments on commit 2502f8a

Please sign in to comment.