Skip to content

Commit

Permalink
Try making the array into a selection
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Nov 14, 2023
1 parent ac7b0a3 commit 73cef23
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions demos/cypress-shared/cypress/e2e/captcha.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,22 +157,13 @@ describe('Captchas', () => {
const solution: string[] = captcha.solution
expect(solution).to.have.length(at(foundSolutions, captchaIndex).length)
if (solution && solution.length > 0) {
// Only way to debug is by throwing an error
// throw new Error(
// `solution: ${JSON.stringify(solution)} foundSolutions: ${JSON.stringify(
// foundSolutions[index]
// )}`
// )
solution.sort().map((element, solutionIndex) => {
expect(element).to.equal(at(foundSolutions, captchaIndex)[solutionIndex])
})
}
// get inputs of type checkbox
cy.get("input[type='checkbox']").then((checkboxes) => {
expect(checkboxes).to.have.length(1)
// make sure the first checkbox is checked
//TODO identify why this doesn't work in GitHub actions
// expect(checkboxes[0]).to.be.checked
expect(Array.from(checkboxes)).to.have.length(1)
})
}
}
Expand Down

0 comments on commit 73cef23

Please sign in to comment.