Skip to content

test(js): Convert InviteMembersModal to RTL - #40637

Merged
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/test-js-convert-invitemembersmodal-to-rtl
Oct 27, 2022
Merged

evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/test-js-convert-invitemembersmodal-to-rtl

Conversation

@evanpurkhiser

Copy link
Copy Markdown
Member

No description provided.

@evanpurkhiser
evanpurkhiser requested a review from a team as a code owner October 27, 2022 08:19
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 27, 2022
@evanpurkhiser
evanpurkhiser requested review from a team and removed request for a team October 27, 2022 08:21
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
src/sentry/static/sentry/dist/entrypoints/app.js 20.22 KB (+0.02% 🔺)
src/sentry/static/sentry/dist/entrypoints/sentry.css 33.06 KB (0%)

@priscilawebdev priscilawebdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

great conversion


return (
<div className={className}>
<li className={className}>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe we can replace this with our list component?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

nah, our list component has styling, I just wanted this to be a list

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

doesn't it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes it has some padding left

const wrapper = mountWithTheme(
<InviteMembersModal {...modalProps} organization={org} />
);
render(<InviteMembersModal {...modalProps} organization={org} />);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

aha! this is not yet in ts and that is why the modalProps mock still works here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah. What we should do in the future, is export commonModalProps or makeModalProps from our test utils that can set them up for you

@evanpurkhiser
evanpurkhiser merged commit 963ccae into master Oct 27, 2022
@evanpurkhiser
evanpurkhiser deleted the evanpurkhiser/test-js-convert-invitemembersmodal-to-rtl branch October 27, 2022 08:45
jan-auer added a commit that referenced this pull request Oct 27, 2022
* master: (82 commits)
  ref(test): Convert account security details to rtl and ts (#40638)
  fix(appconnect): Drop app_id column (#40326)
  test(js): Convert InviteMembersModal to RTL (#40637)
  test(js): Convert fieldRenderers to RTL (#40633)
  chore(events): Use longKeys for Java packages (#40539)
  ref(ui): Remove deprecatedforms from AdminQuotas (#40627)
  ref(js): Convert InviteRowControl to a FC (#40634)
  feat(ui): Improve aria attributes of menu items (#40573)
  feat(js): Report usage of deprecatedforms in window.SentryApp (#40628)
  ref(ui): Remove deprecatedforms/selectField in AdminQueue (#40626)
  ref(js): Convert TitleStar to a FC (#40632)
  feat(ui): Label Settings Serach input (#40630)
  ref(js): Extract permissionStateToList out of class (#40620)
  ref(js): Be consistent about `domId` with `useMemo` (#40622)
  feat(ui): Use `nav` For settings navigations (#40576)
  fix(webpack): Use 127.0.0.1 loopback over locahost (#40625)
  test(discover): Convert eventsRequest.spec.jsx to RTL (#40585)
  fix(ui): Remove invalid `role="text"` (#40579)
  feat(ui): Use `header` for Layout.Header component (#40580)
  (fix): self-hosted e2e env variable update (#40619)
  ...
jan-auer added a commit that referenced this pull request Oct 27, 2022
* master: (82 commits)
  ref(test): Convert account security details to rtl and ts (#40638)
  fix(appconnect): Drop app_id column (#40326)
  test(js): Convert InviteMembersModal to RTL (#40637)
  test(js): Convert fieldRenderers to RTL (#40633)
  chore(events): Use longKeys for Java packages (#40539)
  ref(ui): Remove deprecatedforms from AdminQuotas (#40627)
  ref(js): Convert InviteRowControl to a FC (#40634)
  feat(ui): Improve aria attributes of menu items (#40573)
  feat(js): Report usage of deprecatedforms in window.SentryApp (#40628)
  ref(ui): Remove deprecatedforms/selectField in AdminQueue (#40626)
  ref(js): Convert TitleStar to a FC (#40632)
  feat(ui): Label Settings Serach input (#40630)
  ref(js): Extract permissionStateToList out of class (#40620)
  ref(js): Be consistent about `domId` with `useMemo` (#40622)
  feat(ui): Use `nav` For settings navigations (#40576)
  fix(webpack): Use 127.0.0.1 loopback over locahost (#40625)
  test(discover): Convert eventsRequest.spec.jsx to RTL (#40585)
  fix(ui): Remove invalid `role="text"` (#40579)
  feat(ui): Use `header` for Layout.Header component (#40580)
  (fix): self-hosted e2e env variable update (#40619)
  ...
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 11, 2022

This branch was successfully deployed

2 active deployments
Preview – sentry — e1efac23 Deployed Oct 27, 2022 by vercel[bot]
Preview – storybook — e1efac23 Deployed Oct 27, 2022 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants