Last active
December 13, 2018 14:35
-
-
Save codeofsumit/84415bfd32e076a6aea7d5a21797c2dd to your computer and use it in GitHub Desktop.
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
describe('Draw & Edit Polygons', () => { | |
it('correctly draws a polygon', () => { | |
cy.toolbarButton('polygon') | |
.closest('.button-container') | |
.should('have.not.class', 'active'); | |
cy.toolbarButton('polygon') | |
.click() | |
.closest('.button-container') | |
.should('have.class', 'active'); | |
cy.get('#map') | |
.click(390, 250) | |
.click(400, 50) | |
.click(450, 50) | |
.click(450, 150) | |
.click(390, 250); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment