Skip to content

Commit

Permalink
fix: e2e force click because of overlay message
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Aug 29, 2024
1 parent c232757 commit 69ad4a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/draw/draw-feat-line.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ describe('Draw "Line"', () => {
cy.visit('/')
cy.get('button[data-cy="drawButton"]').click()
cy.get('button[data-cy="drawLineButton"]').click()
cy.get('div.ol-viewport').click(100, 100)
cy.get('div.ol-viewport').dblclick(200, 200)
cy.get('div.ol-viewport').click(100, 100, { force: true })
cy.get('div.ol-viewport').dblclick(200, 200, { force: true })
})

describe('When clicking button to draw Line', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/draw/draw-feat-polygon.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ describe('Draw "Polygon"', () => {
cy.visit('/')
cy.get('button[data-cy="drawButton"]').click()
cy.get('button[data-cy="drawPolygonButton"]').click()
cy.get('div.ol-viewport').click(100, 100)
cy.get('div.ol-viewport').click(100, 200)
cy.get('div.ol-viewport').dblclick(200, 200)
cy.get('div.ol-viewport').click(100, 100, { force: true })
cy.get('div.ol-viewport').click(100, 200, { force: true })
cy.get('div.ol-viewport').dblclick(200, 200, { force: true })
})

describe('When clicking button to draw Polygon', () => {
Expand Down

0 comments on commit 69ad4a4

Please sign in to comment.