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

test(cdr-input tests): refactor cdr-input tests #86

Merged

Conversation

KenjiCrosland
Copy link
Contributor

CDR-2541

let input;
beforeEach(() => {
wrapper = mount(CdrInput, { ...baseComponentPattern });
input = wrapper.find('.cdr-input');
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't love finding stuff by classname as a pattern because of the potential test brittleness. What do you think about targeting the input element instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah sounds good. Done.

@KenjiCrosland KenjiCrosland merged commit 81d7d52 into feat/unit-test-refactor Jun 15, 2022
@benjag benjag deleted the pr/CDR-2541-refactor-cdr-input-tests branch June 6, 2023 19:41
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