Skip to content

Conversation

@rdott
Copy link
Contributor

@rdott rdott commented Aug 12, 2021

WHY are these changes introduced?

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

For the following component tests:

  • MediaCard
  • Layout

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

github-actions bot commented Aug 12, 2021

size-limit report

Path Size
cjs 142.53 KB (0%)
esm 96.29 KB (0%)
esnext 139.5 KB (0%)
css 33.76 KB (0%)

@rdott rdott changed the title [Test Modernization]: Modernized MediaCard tests [Test Modernization]: Modernized MediaCard, and Layout tests Aug 12, 2021
@rdott rdott requested a review from a team August 18, 2021 18:26
@rdott rdott marked this pull request as ready for review August 18, 2021 18:26
@rdott rdott requested a review from a user August 18, 2021 18:26
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.

🎉

TextContainer,
)!;

expect(annotedDescriptionTextContainer).toContainReactComponent('div');
Copy link

Choose a reason for hiding this comment

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

I think we can remove this one because the next one is testing the existence of the div in order to assert the text.

@rdott rdott force-pushed the test-mod/mediaCard branch from 4671f78 to edb2368 Compare August 18, 2021 20:15
@rdott rdott merged commit 5061228 into main Aug 19, 2021
@rdott rdott deleted the test-mod/mediaCard branch August 19, 2021 15:48
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