Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

The code is not responding in the second test #3

Closed
bahmutov opened this issue Jan 1, 2018 · 4 comments
Closed

The code is not responding in the second test #3

bahmutov opened this issue Jan 1, 2018 · 4 comments
Labels

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Jan 1, 2018

The component is working fine in the first test, but is not doing anything in the second test, but looks good.

@bahmutov bahmutov added the bug label Jan 1, 2018
@bahmutov
Copy link
Contributor Author

bahmutov commented Jan 1, 2018

screen shot 2018-01-01 at 1 29 30 pm

Seems the React is not routing any events to the component in the second test

@bahmutov
Copy link
Contributor Author

bahmutov commented Jan 1, 2018

screen shot 2018-01-01 at 1 34 13 pm

Second event listener is for function

function dispatchEvent(topLevelType, nativeEvent) {
  if (!_enabled) {
    return;
  }

@bahmutov
Copy link
Contributor Author

bahmutov commented Jan 1, 2018

When the second test runs, the button does not have this event listener, instead it has

var emptyFunction = function emptyFunction() {};

screen shot 2018-01-01 at 1 35 27 pm

@bahmutov
Copy link
Contributor Author

bahmutov commented Jan 2, 2018

Version 1.0.0 has been published to NPM. The full release note can be found at cypress-react-unit-test/releases/tag/v1.0.0.

Tip: safely upgrade dependency cypress-react-unit-test in your project using next-update

dmtrKovalenko pushed a commit to cypress-io/cypress that referenced this issue Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant