-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat(Data Grid): add i18n props #2263
Conversation
🦋 Changeset detectedLatest commit: 1dccc60 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✔️ Deploy Preview for paste-theme-designer ready! 🔨 Explore the source changes: 1dccc60 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-theme-designer/deploys/62224ab3258e0a00087e7d9e 😎 Browse the preview: https://deploy-preview-2263--paste-theme-designer.netlify.app |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1dccc60:
|
✔️ Deploy Preview for paste-docs ready! 🔨 Explore the source changes: 1dccc60 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-docs/deploys/62224ab339cf870008be221f 😎 Browse the preview: https://deploy-preview-2263--paste-docs.netlify.app |
Size Change: +488 B (0%) Total Size: 508 kB
ℹ️ View Unchanged
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super good. Minor non-blocking suggestion for the ts-ignore tidy up
|
||
it('should use i18nAscendingLabel for the ascending label', () => { | ||
render(<DataGridHeaderSort direction="ascending" i18nAscendingLabel="Tri croissant" />); | ||
const button = screen.getByRole('button', {name: 'Tri croissant'}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I KNOW! I forgot that its an actual word. I did so much research on this.
); | ||
const alert = screen.getByTestId('alert-i18n'); | ||
const icon = alert.querySelector('[data-paste-element="ALERT_ICON"]'); | ||
expect(icon?.textContent).toEqual('(error)'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Praise: these tests feel so much specific now
4f2af4e
to
1dccc60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
Data Grid
Alert
Toast
Contributing to Twilio