Skip to content

Conversation

@rdott
Copy link
Contributor

@rdott rdott commented Aug 25, 2021

…Pagination, and DateSelector

WHY are these changes introduced?

Updating existing tests to use the new modern framework and eliminate stale dependencies.

For the following component tests:

  • FilterControl
  • FilterCreator
  • FilterValueSelector
  • DateSelector
  • Pagination

WHAT is this pull request doing?

Part of test modernization, updating tests using {mountWithAppProvider} from 'test-utilities/legacy' to {mountWithApp} from 'test-utilities'

@github-actions
Copy link
Contributor

size-limit report

Path Size
cjs 143.11 KB (0%)
esm 96.81 KB (0%)
esnext 140.11 KB (0%)
css 33.96 KB (0%)

@rdott rdott requested review from a team August 25, 2021 19:41
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Amazing work!!

expect(wrapper.find(Popover).prop('active')).toBe(true);
expect(findFilterKeySelect(wrapper).exists()).toBe(true);
expect(wrapper).toContainReactComponent(Popover, {active: true});
// expect(findFilterKeySelect(wrapper).exists()).toBe(true);
Copy link

Choose a reason for hiding this comment

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

We can remove this comment.


const select = wrapper.find(Select);
expect(select.prop('value')).toBe(value);
// const select = wrapper.find(Select);
Copy link

Choose a reason for hiding this comment

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

Same here!

@rdott rdott marked this pull request as ready for review August 26, 2021 13:52
@rdott rdott force-pushed the test-mod/filtervalue branch from 6bc476c to f728113 Compare August 26, 2021 17:19
@rdott rdott merged commit 10581f6 into main Aug 26, 2021
@rdott rdott deleted the test-mod/filtervalue branch August 26, 2021 17:30
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.

2 participants