Skip to content

Commit

Permalink
fix: add force
Browse files Browse the repository at this point in the history
  • Loading branch information
ngunner15 committed Sep 25, 2024
1 parent 09780b9 commit 3895b7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ describe('A Class Seedlot Registration form, Ownership', () => {
cy.get('#default-owner-checkbox')
.then($checkbox => {
if ($checkbox.is(':checked')) {
cy.wrap($checkbox).should("be.checked") // passes if checked
cy.wrap($checkbox).should("be.checked", { force: true }) // passes if checked
}
else {
cy.wrap($checkbox).click()
cy.wrap($checkbox).should("be.checked") // passes if not checked
cy.wrap($checkbox).should("be.checked", { force: true }) // passes if not checked
}
});

Expand Down

0 comments on commit 3895b7e

Please sign in to comment.