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

Serenity/JS should support drag and drop interactions #2132

Open
2 of 3 tasks
jan-molak opened this issue Dec 16, 2023 · 0 comments
Open
2 of 3 tasks

Serenity/JS should support drag and drop interactions #2132

jan-molak opened this issue Dec 16, 2023 · 0 comments
Labels
enhancement A good idea that should be implemented @serenity-js/playwright @serenity-js/protractor Adapter and interactions for Angular Protractor @serenity-js/web Screenplay Pattern APIs for interacting with the Web @serenity-js/webdriverio Adapter for WebdriverIO

Comments

@jan-molak
Copy link
Member

jan-molak commented Dec 16, 2023

What's the problem you're trying to solve?

Serenity/JS should support HTML 5 drag and drop API. For example:

await actor.attemptsTo(
  Drag.file(path).to(dropzone)
  Drag.element(element).to(dropzone)
)

How would you like to solve it?

Add a new @serenity-js/web interaction to support dragging PageElement to a drop zone, and another one to support dragging a file located at Path to a drop zone.

Notes:

Are there any alternatives?

Developers can write custom interactions to do it, but having a built-in way would offer a better developer experience.

How can we make it happen?

@jan-molak jan-molak added @serenity-js/web Screenplay Pattern APIs for interacting with the Web @serenity-js/protractor Adapter and interactions for Angular Protractor @serenity-js/webdriverio Adapter for WebdriverIO @serenity-js/playwright enhancement A good idea that should be implemented labels Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A good idea that should be implemented @serenity-js/playwright @serenity-js/protractor Adapter and interactions for Angular Protractor @serenity-js/web Screenplay Pattern APIs for interacting with the Web @serenity-js/webdriverio Adapter for WebdriverIO
Projects
None yet
Development

No branches or pull requests

1 participant