Skip to content

Instantly share code, notes, and snippets.

@codeofsumit
Last active December 13, 2018 08:36
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 codeofsumit/3d1c7ba4e74d8ccd7e88358ed7ce554a to your computer and use it in GitHub Desktop.
Save codeofsumit/3d1c7ba4e74d8ccd7e88358ed7ce554a to your computer and use it in GitHub Desktop.
Cypress.Commands.add('hasMiddleMarkers', (count) => {
cy.get('.marker-icon-middle').should(($p) => {
expect($p).to.have.length(count);
});
});
Cypress.Commands.add('hasVertexMarkers', (count) => {
cy.get('.marker-icon:not(.marker-icon-middle)').should(($p) => {
expect($p).to.have.length(count);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment