@testing-library/react version: 10.2.1@testing-library/user-event version: 11.2.1```import { TextField } from "office-ui-fabric-react";
import React from "react";
import { Provider } from "react-redux";
import { combineReducers, createStore } from "redux";
import { reducer as reduxFormReducer, reduxForm, Field } from "redux-form";
import { render } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
const RenderTextField = additionalProps => props => {
const fabricProps = getFabricPropsFromReduxFormProps(props);
return (
Unit testing redux form field change event
Redux form field value is not updated in store
Issue is happening in the below code
https://codesandbox.io/s/basic-react-testing-library-w-setuptestsjs-skclz?file=/src/Sample.test.js:0-2582
Issue is not happening with the older versions of libraries
https://codesandbox.io/s/basic-react-testing-library-w-setuptestsjs-u3lx8?file=/src/Sample.test.js
Store is not updated with the new value
Please help me what could be wrong here.
Thanks
Hi @nanivijay,
I'm pretty sure this is related to this issue: https://github.com/testing-library/user-event/issues/316
@all-contributors please add @nanivijay for bugs
@kentcdodds
I've put up a pull request to add @nanivijay! :tada:
Thanks :)
:tada: This issue has been resolved in version 11.3.1 :tada:
The release is available on:
npm package (@latest dist-tag)Your semantic-release bot :package::rocket:
@kentcdodds issue is still happening with the latest version of user-event library. here is the codesandbox url
https://codesandbox.io/s/basic-react-testing-library-w-setuptestsjs-skclz?file=/src/Sample.test.js
Hi @nanivijay,
Sorry about that. I looked at it and there's a lot of moving parts in there it's hard for me to determine what the problem is. Could you do a little more digging please? Try to isolate the problem further?
@kentcdodds sure i will do
@kentcdodds during my investigation i found that the issue starts happening from @testing-library/dom - 7.9.0 . I updated the example to use fire event instead of userevent. fireevent was working till version 7.8.0. i looked at the change in v7.9.0 i didn't find any breaking change but you may have more context on the change. please take a look at this codebox https://codesandbox.io/s/basic-react-testing-library-w-setuptestsjs-u3lx8?file=/src/Sample.test.js
@kentcdodds I migrated this over from user-event but if you want to keep potential bugs tracked on the original repo I can move it back. Alternatively we can keep everything here and release backports if there's demand for it.
Thank you!
anyone get a chance to investigate this issue. This is currently blocking us to upgrade the @testing-library. i tried to identify the cause but couldn't be able to figure out. please help
Most helpful comment
@kentcdodds issue is still happening with the latest version of user-event library. here is the codesandbox url
https://codesandbox.io/s/basic-react-testing-library-w-setuptestsjs-skclz?file=/src/Sample.test.js