I'm testing a drag scenario, want to get an elements position and use the value in a mousemove. I though that Cypress.env() was a way to save values, but it appears empty in the mousemove parameters. How do I save the initial data?
cy.get('.draggable')
.then($el => { Cypress.env('start', $el[0].getBoundingClientRect()) })
.trigger('mousemove', , { pageX: Cypress.env('start').x +20 })