Last active
December 27, 2019 18:11
-
-
Save NicholasBoll/74a927e112af3d9612b96f30997cbbac to your computer and use it in GitHub Desktop.
Cypress helper function using jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const getByName = (name: string) => function getAlarmByName($container: JQuery): JQuery { | |
return $container.find(`.alarm-card:contains("${name}")`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment