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

The t.click action does not work with a Web Component #2272

Closed
Dmitry-Ostashev opened this issue Feb 6, 2020 · 2 comments
Closed

The t.click action does not work with a Web Component #2272

Dmitry-Ostashev opened this issue Feb 6, 2020 · 2 comments
Assignees
Labels
support center These issues based on ones from Support Center TYPE: bug

Comments

@Dmitry-Ostashev
Copy link

What is your Test Scenario?

Click a button that is a Web Component

What is the Current behavior?

The t.click action does nothing

What is the Expected behavior?

The t.click action leads to the same result as the document.querySelector(...).click() client-side script

What is your web application and your TestCafe test code?

 import { Selector } from 'testcafe';

fixture `web component`
    .page `https://xy-ui.codelabo.cn/docs/#/xy-button`;

test('New Test', async t => {
    await t
        .click(Selector('p').withText('toggle button').find('.button-toggle'))
        .wait(1000)
        .expect(Selector('p').withText('toggle button').find('.button-toggle').checked).eql(true);
});

Steps to Reproduce:

  1. Run the test;
  2. See that the "toggle" button is not clicked.

Your Environment details:

  • testcafe version: 1.8.1;
  • node.js version: v12;
  • browser name and version: Chrome 79;
  • platform and version: Win10;
  • SC ticket: T859250;
@AlexKamaev AlexKamaev self-assigned this Mar 3, 2020
@AlexKamaev
Copy link
Contributor

fixed in #2262
should close this issue after HH is published

@AndreyBelym AndreyBelym transferred this issue from DevExpress/testcafe Mar 12, 2020
@AndreyBelym AndreyBelym added support center These issues based on ones from Support Center TYPE: bug labels Mar 12, 2020
@helen-dikareva
Copy link
Collaborator

Fixed in testcafe-hammerhead 16.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support center These issues based on ones from Support Center TYPE: bug
Projects
None yet
Development

No branches or pull requests

4 participants