Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Aug 31, 2021

WHY are these changes introduced?

I am updating existing tests for Collapsible, Tabs and TextStyle components to use the new modern framework. I worked with @rdott in solving several of the details here on those tests.

WHAT is this pull request doing?

Part of test modernization (https://docs.google.com/spreadsheets/d/1GBuEZbOpVYJLNISK7gL69DU8rCxocn5L5GYaKtPXPbU/edit#gid=1498187033), updating tests using {mountWithAppProvider} from 'test-utilities/legacy' to {mountWithApp} from 'test-utilities'.

@ghost ghost force-pushed the polaris_tabs branch from 54c1c0f to 054f2c8 Compare August 31, 2021 18:51
@ghost ghost changed the title Add Checkbox, Choice, Collapsible, Tabs, TextField and TextStyle Add Checkbox, Collapsible, Tabs, TextField and TextStyle Aug 31, 2021
@ghost ghost changed the title Add Checkbox, Collapsible, Tabs, TextField and TextStyle [TestModernization]: Add test modernization to Collapsible, Tabs and TextStyle Aug 31, 2021
@ghost ghost force-pushed the polaris_tabs branch from 054f2c8 to 8a7b5ad Compare August 31, 2021 18:57
@ghost ghost marked this pull request as ready for review August 31, 2021 18:58
@github-actions
Copy link
Contributor

size-limit report

Path Size
cjs 163.42 KB (0%)
esm 96.16 KB (0%)
esnext 142.99 KB (0%)
css 34.47 KB (0%)

@ghost ghost requested review from a team and rdott August 31, 2021 20:13
Copy link
Contributor

@rdott rdott left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@kyledurand kyledurand left a comment

Choose a reason for hiding this comment

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

Looks awesome @kpinzas-sh! Thanks so much 😄

Free to ship as is but I'm super curious what the domNode.click is needed for because I've never had to use that. Also I'd expect click to be a function so it seems like it's not getting called 🤷‍♂️

);
expect(textStyle.find('span').text()).toBe('Hello Polaris');
const textStyle = mountWithApp(<TextStyle>Hello Polaris</TextStyle>);
expect(textStyle.find('span')).toContainReactText('Hello Polaris');
Copy link
Member

Choose a reason for hiding this comment

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

👋 Hello

Karen Pinzás Morrongiello and others added 4 commits September 1, 2021 09:28
Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
@ghost ghost merged commit 234abcb into main Sep 1, 2021
@ghost ghost deleted the polaris_tabs branch September 1, 2021 16:00
This pull request was closed.
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