Can't Drag Divider Element (Only Style Attribute Available) #31472
Unanswered
Aswinmoorthy27
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Cypress folks 👋
I'm trying to write a test that drags a divider element (the panel resizer) to resize the left side of a layout in my app — but it's proving tricky.
Here's what's happening:
The divider has no id, no data-* attributes, no accessible selectors — just this:
When I click it manually in the browser, a drag icon appears, and I can resize the panel by dragging left/right.
Here’s a simplified version of my code:
dragDivider = (startX, endX, button = 0) => {
this.getDividerSelector()
.trigger('mousedown', { which: button, clientX: startX })
.trigger('mousemove', { clientX: endX })
.trigger('mouseup');
};
filingCabinetPage.dragDivider(600, 320); // this is working fine when we drag from left to right
filingCabinetPage.dragDivider(320, 600); // this is Not working
};
💡 My question:
Any help, suggestions, or debugging tricks would be appreciated! 🙏
Beta Was this translation helpful? Give feedback.
All reactions