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

test(ui): Convert collapsible component to RTL #29982

Merged
merged 4 commits into from
Nov 12, 2021

Conversation

scttcper
Copy link
Member

No description provided.

@scttcper scttcper requested a review from a team November 12, 2021 04:22
@@ -1,4 +1,4 @@
import {mountWithTheme} from 'sentry-test/enzyme';
import {fireEvent, mountWithTheme, screen} from 'sentry-test/reactTestingLibrary';
Copy link
Member

Choose a reason for hiding this comment

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

since the PR #29638 was just merged... can we please replace fireEvent with userEvent? 🙏


// custom collapse back
wrapper.find('button[aria-label="Custom Collapse"]').simulate('click');
userEvent.click(screen.getByText('Custom Collapse'));
Copy link
Member

Choose a reason for hiding this comment

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

thank you 🙏

@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants