Skip to content

Instantly share code, notes, and snippets.

@NicholasBoll
Last active December 27, 2019 18:11
Show Gist options
  • Save NicholasBoll/74a927e112af3d9612b96f30997cbbac to your computer and use it in GitHub Desktop.
Save NicholasBoll/74a927e112af3d9612b96f30997cbbac to your computer and use it in GitHub Desktop.
Cypress helper function using jQuery
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