Skip to content

Instantly share code, notes, and snippets.

@dualyticalchemy
Last active February 7, 2021 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dualyticalchemy/1f467c81b5077c0ff6594127656abe08 to your computer and use it in GitHub Desktop.
Save dualyticalchemy/1f467c81b5077c0ff6594127656abe08 to your computer and use it in GitHub Desktop.
const { getAngular } = require('./getAngular.js');
const getElement = (sel) => {
return cy.get(sel)
.then($el => getAngular()
.then(ng => ng.element($el)));
};
export {
getElement
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment