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

refactor(react): update test suites to RTL #11481

Conversation

joshblack
Copy link
Contributor

This PR updates breadcrumb and button to use React Testing Library

Changelog

New

Changed

  • Update Breadcrumb tests
  • Update Button tests

Removed

Testing / Reviewing

  • Go through test changes and verify coverage stays the same (no significant test cases have been not converted)

@joshblack joshblack requested a review from a team as a code owner May 24, 2022 18:50
@joshblack joshblack requested review from aledavila and dakahn May 24, 2022 18:50
@netlify
Copy link

netlify bot commented May 24, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0445387
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/629781cd0c08b700095c3991
😎 Deploy Preview https://deploy-preview-11481--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 24, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 0445387
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/629781cdbc3edd0008b65f57
😎 Deploy Preview https://deploy-preview-11481--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@aledavila aledavila left a comment

Choose a reason for hiding this comment

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

lgtm

@kodiakhq kodiakhq bot merged commit fe9f6b6 into carbon-design-system:main Jun 1, 2022
kennylam pushed a commit to kennylam/carbon that referenced this pull request Jul 30, 2024
…design-system#11416)

### Related Ticket(s)

Closes carbon-design-system#11178 carbon-design-system#11481

### Description

Sorting and Expansion option works individually, but sorting is not working when used along with expansion option in Data Table. 
Checking for `is-sortable` attribute during initial load seems to fix this issue.

Selection option is enabled for Data table by default without adding the is-selectable attribute to the table element.

### Changelog

**New**

- A function to handle the sorting action is added.

**Changed**

- `is-sortable` attribute was being checked only for changeAttribute cases, this is updated to check on initial load too. 
- Added a condition to check if is-selectable attribute is added to the Data table component

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants