Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdadn committed Oct 23, 2023
1 parent a4d7f99 commit fb409b2
Show file tree
Hide file tree
Showing 7 changed files with 1,491 additions and 13,938 deletions.
2 changes: 1 addition & 1 deletion packages/terra-data-grid/src/DataGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -649,4 +649,4 @@ const DataGrid = injectIntl((props) => {
DataGrid.propTypes = propTypes;
DataGrid.defaultProps = defaultProps;

export default forwardRef((props, ref) => <DataGrid {...props} focusFuncRef={ref} />);
export default forwardRef((props, ref) => <DataGrid {...props} focusFuncRef={ref} />);
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const ColumnResizeHandle = (props) => {
setNavigationEnabled(false);
// Lock focus into component
resizeHandleRef.current.focus();

// set styles for keyboard
setResizeHandleStyles(['resize-handle', 'resize-handle-selected']);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('ColumnResizeHandle', () => {
expect(resizeHandle.props()['aria-valuenow']).toBe(null);
expect(resizeHandle.props()['aria-valuemin']).toBe(null);
expect(resizeHandle.props()['aria-valuemax']).toBe(null);
expect(wrapper.find('.resize-handle').props().role).toBe('divider');
expect(wrapper.find('.resize-handle').props().role).toBe(null);

expect(wrapper).toMatchSnapshot();
});
Expand Down Expand Up @@ -152,7 +152,7 @@ describe('ColumnResizeHandle', () => {

expect(wrapper.find('.resize-handle').props()['aria-label']).toBe(null);
expect(wrapper.find('.resize-handle').props()['aria-valuetext']).toBe(null);
expect(wrapper.find('.resize-handle').props().role).toBe('divider');
expect(wrapper.find('.resize-handle').props().role).toBe(null);
});

it('increases column width with right arrow', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ describe('FlowsheetDataGrid', () => {
/>,
);

<<<<<<< HEAD
const dataGrid = wrapper.find('ForwardRef');
=======
const dataGrid = wrapper.find('#test-terra-flowsheet-data-grid');
>>>>>>> c4b58f1ad (fixed jest tests)
const pinnedColumns = dataGrid.prop('pinnedColumns');
expect(pinnedColumns).toEqual(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,7 @@ exports[`ColumnHeaderCell renders a pinned column header cell 1`] = `
onMouseEnter={[Function]}
onMouseLeave={[Function]}
onMouseUp={[Function]}
<<<<<<< HEAD
role="divider"
=======
role={null}
>>>>>>> c4b58f1ad (fixed jest tests)
style={
Object {
"height": "undefinedpx",
Expand Down
Loading

0 comments on commit fb409b2

Please sign in to comment.