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

React 16/Enzyme 3 - Fix datetime tests #1899

Merged
merged 4 commits into from
Dec 13, 2017
Merged

Conversation

cmslewis
Copy link
Contributor

Fix all the datetime tests that broke in the React 16 / Enzyme 3 upgrade.


getStartInput(root).simulate("focus");
getStartInput(root).simulate("change", { target: { value: START_STR } });
getStartInput(root).simulate("keydown", { which: Keys.ENTER });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might be able to chain these simulates and only get a new reference on line 426?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chatted IRL. Will leave it b/c we're not sure exactly if the input node would get stale between events.

@cmslewis
Copy link
Contributor Author

cmslewis commented Dec 13, 2017

Builds failing:

test-select:

Failing packages:ReferenceError: Can't find variable: Map

test-core:

Coverage for statements (28%) does not meet per-file (/home/circleci/project/packages/core/src/common/abstractComponent.ts)  threshold (80%)
Coverage for lines (29.17%) does not meet per-file (/home/circleci/project/packages/core/src/common/abstractComponent.ts)  threshold (80%)

@adidahiya @giladgray @gscshoyru - were these build failures happening before?

@cmslewis
Copy link
Contributor Author

Merging b/c the datetime tests are fixed.

@cmslewis cmslewis merged commit 3f38773 into ad/react-16 Dec 13, 2017
@cmslewis cmslewis deleted the cl/fix-datetime-tests branch December 13, 2017 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants