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

EventListeners 'mouseenter' and 'mouseleave' not working with testcafe #1426

Closed
mkubrycz opened this issue Apr 19, 2017 · 3 comments
Closed
Labels
AREA: client STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: automations TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@mkubrycz
Copy link

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

I have a button that should show up on 'mouseenter' and disappear on 'mouseleave', but nothing shows when running tests. Test passes anyway since element with opacity = 0 is clicked.

What is the expected behavior?

hidden element should show up

How would you reproduce the current behavior (if this is a bug)?

when I reproduce this manually everything works fine.

  1. go to URL given below
  2. hover over red square
  3. blue element with button should appear but id doesn't
  4. click button to change red to yellow

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://jsfiddle.net/p5reyep3/3/

Test code

import { Selector } from 'testcafe';

fixture('click a thing on hover')
.page('https://jsfiddle.net/p5reyep3/3/');

test('succeed to click', async (t) => {
  await t
  .switchToIframe('[name="result"]')
  .hover('#outer')
  .click('button')
  .expect(Selector('#outer').hasClass('yellow')).eql(true);
});

Specify your

  • operating system: macOS Sierra 10.12.4
  • testcafe version: 0.14.0
  • node.js version: 6.10.0
@AlexanderMoskovkin AlexanderMoskovkin added AREA: client SYSTEM: automations TYPE: bug The described behavior is considered as wrong (bug). labels Apr 20, 2017
@AlexanderMoskovkin AlexanderMoskovkin added this to the Sprint #7 milestone Apr 20, 2017
@AlexanderMoskovkin
Copy link
Contributor

AlexanderMoskovkin commented Apr 20, 2017

Hi @mkubrycz,

Thanks for the report. I've reproduced the problem, we will investigate it

@AlexanderMoskovkin
Copy link
Contributor

I'm working on this

@lock
Copy link

lock bot commented Mar 29, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 29, 2019
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this issue Dec 18, 2019
…xpress#1426) (DevExpress#1501)

* Raise 'mouseenter' and 'mouseleave' events during moving (closes DevExpress#1426)

* Fix comment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AREA: client STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: automations TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

3 participants