Skip to content

Commit

Permalink
update: new browser methods
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Apr 15, 2024
1 parent 15c0709 commit 0c517d9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/js/cypress/Browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,16 @@ export class Browser {
$el[0].dispatchEvent(event);
});
}

check(selector: string) {
cy.get(selector).check();
}

uncheck(selector: string) {
cy.get(selector).uncheck();
}

getAttribute(selector: string, attribute: string) {
return cy.get(selector).invoke("attr", attribute);
}
}

0 comments on commit 0c517d9

Please sign in to comment.