Description
When you will move the slider in Cypress with data-slot=thumb, the mouse gets focus anytime you will leave another field.
Note: This happens, when the Slider component has no steps.
Problem: The slider is set to the end, when the mouse clicks the Submit Button and the configured slider value in the test gets lost.
This is our quickfix:
cy.get('[data-testid=fieldname] label').click();
cy.press(Cypress.Keyboard.Keys.UP);
cy.press(Cypress.Keyboard.Keys.UP);
cy.press(Cypress.Keyboard.Keys.UP);
cy.press(Cypress.Keyboard.Keys.UP);