Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dragDropElems (GAUD-6868) #468

Merged
merged 1 commit into from
Aug 19, 2024
Merged

feat: add dragDropElems (GAUD-6868) #468

merged 1 commit into from
Aug 19, 2024

Conversation

dlockhart
Copy link
Member

As requested, here's a new "drag & drop" test API that leverages the underlying commands. I chose not to also expose the mouse move/down/up commands for now until they're truly needed.

@dlockhart dlockhart requested a review from a team as a code owner August 19, 2024 18:13
import { html } from 'lit';
import { spy } from 'sinon';

describe('commands', () => {

let elem;
const input = html`<input type="text">`;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed a more complex fixture template for drag & drop, so I refactored the tests here so that click/hover tests use a button, keyboard tests use this input and the drag & drop has its own. The tests themselves didn't change.

@dlockhart dlockhart merged commit 9b4aa95 into main Aug 19, 2024
3 checks passed
@dlockhart dlockhart deleted the GAUD-6868/drag-drop branch August 19, 2024 18:28
Copy link

🎉 This PR is included in version 1.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants