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

Unnecessary 'click' event is raised if a draggable element was dropped #8250

Open
marquisandres opened this issue Aug 5, 2024 · 1 comment
Assignees
Labels
TYPE: bug The described behavior is considered as wrong (bug).

Comments

@marquisandres
Copy link

marquisandres commented Aug 5, 2024

What is your Scenario?

I'd like to use the dragToElement method to select multiple cells in a table

What is the Current behavior?

I'm seeing this issue again on v. 3.6.0 and 3.6.2 #1516
When the cursor reaches the destinationSelector where it performs the drop, it also performs an extra click, which in my case unselects the cells

What is the Expected behavior?

There should not be any extra clicks performed after the drop.

What is the public URL of the test page? (attach your complete example)

Example page https://demo.automationtesting.in/Register.html

What is your TestCafe test code?

I can't post my code or my page, but this example illustrates the issue.

import { Selector } from 'testcafe';

fixture`Example page`
    .page`https://demo.automationtesting.in/Register.html`;

test('Check login', async t => {
    const h2Label = Selector('h2');
    const maleRadio = Selector('input[value="Male"]');

    await t
        .setTestSpeed(0.5)
        .dragToElement(h2Label, maleRadio)
        .wait(1000)
});

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. Execute the example code
  2. Observe the behaviour
  3. destinationSelector (male radio button) receives a click
Grabacion.2024-08-05.154124.mp4

TestCafe version

3.6.0 and 3.6.2

Node.js version

No response

Command-line arguments

testcafe chrome --test 'Check login'

Browser name(s) and version(s)

Chrome 127

Platform(s) and version(s)

Windows 11 and Linux

Other

No response

@marquisandres marquisandres added the TYPE: bug The described behavior is considered as wrong (bug). label Aug 5, 2024
@testcafe-need-response-bot testcafe-need-response-bot bot added the STATE: Need response An issue that requires a response or attention from the team. label Aug 5, 2024
@PavelMor25 PavelMor25 added the STATE: Issue accepted An issue has been reproduced. label Aug 12, 2024
Copy link

We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news.

@github-actions github-actions bot removed STATE: Need response An issue that requires a response or attention from the team. STATE: Issue accepted An issue has been reproduced. labels Aug 12, 2024
@Bayheck Bayheck self-assigned this Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

3 participants