Humorloos / bouldern-app

1 stars 1 forks source link

Improve map handling in e2e tests #348

Closed Humorloos closed 2 years ago

Humorloos commented 2 years ago

Currently, all interactions with the map are done via click(x, y), but this is very error-prone. We need a way to interact with the map in e2e tests by specifying absolute x and y coordinates that do not change when the map is panned.

Maybe this post might help: https://github.com/cypress-io/cypress/issues/1624 Maybe one can use paddingX and Y: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX