mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Upgrade to React==16.4.1 & Enzyme==3.3.0 (#5359)
* Bumping react==16.4.1 & enzyme==3.3.0 The upgrade was pretty smooth except for a cryptic message coming out of react-select around running multiple copies of React. It turns out the `common` bundle had React and was conflicting with explore and dashboard apps, only in 16.x. This somehow wasn't a problem in 15.x outside of the wasted resources. Running 16.4 should bring in all sorts of perf improvements and features we've all been waiting for. https://reactjs.org/blog/2017/09/26/react-v16.0.html TODO: react-bootstrap-datetimepicker isn't compatible with React 16 * Trying to deprecate react-bootstrap-datetime * Moving forward * Reintroducing tests
This commit is contained in:
committed by
GitHub
parent
e35bfba308
commit
73db918fbe
@@ -36,7 +36,7 @@ describe('TableElement', () => {
|
||||
mount(<TableElement {...mockedProps} />);
|
||||
});
|
||||
it('sorts columns', () => {
|
||||
const wrapper = mount(<TableElement {...mockedProps} />);
|
||||
const wrapper = shallow(<TableElement {...mockedProps} />);
|
||||
expect(wrapper.state().sortColumns).to.equal(false);
|
||||
expect(wrapper.find(ColumnElement).first().props().column.name).to.equal('id');
|
||||
wrapper.find('.sort-cols').simulate('click');
|
||||
@@ -50,7 +50,7 @@ describe('TableElement', () => {
|
||||
expect(mockedActions.collapseTable.called).to.equal(true);
|
||||
});
|
||||
it('removes the table', () => {
|
||||
const wrapper = mount(<TableElement {...mockedProps} />);
|
||||
const wrapper = shallow(<TableElement {...mockedProps} />);
|
||||
expect(wrapper.state().expanded).to.equal(true);
|
||||
wrapper.find('.table-remove').simulate('click');
|
||||
expect(wrapper.state().expanded).to.equal(false);
|
||||
|
||||
Reference in New Issue
Block a user