I am currently working on a cypress code that is meant to move the range selector from one location to another. While the range selector position is being selected correctly, it fails to actually move the range selector as intended.
Below is the command file that is being used:
Cypress.Commands.add('dragRangeSelectorTo', (bottomAxisPoint) => {
cy.get('.chart-layout__x-axis .tick')
.contains(bottomAxisPoint)
.invoke('attr', 'transform')
.then((requiredPointAttribute) => {
if (requiredPointAttribute) {
const requiredPointPosition = parseFloat(requiredPointAttribute.split('(')[1].split(',')[0].trim());
cy.get('.range-selector-move-interactor').eq(1).then($selector => {
// Code for moving the range selector
});
}
});
});
An error that I am encountering reads as follows: "Expected 444.65625 to not equal 444.65625."