-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: Fix act errors in PopoverDropdown test #21361
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21361 +/- ##
==========================================
- Coverage 66.61% 66.59% -0.03%
==========================================
Files 1791 1791
Lines 68481 68481
Branches 7299 7299
==========================================
- Hits 45617 45603 -14
- Misses 20978 20998 +20
+ Partials 1886 1880 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -36,19 +36,19 @@ const defaultProps: PopoverDropdownProps = { | |||
onChange: jest.fn(), | |||
}; | |||
|
|||
test('renders with default props', () => { | |||
it('renders with default props', async () => { |
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.
it('renders with default props', async () => { | |
test('renders with default props', async () => { |
expect(screen.getByRole('button')).toHaveTextContent('Option 1'); | ||
}); | ||
|
||
test('renders the menu on click', () => { | ||
it('renders the menu on click', async () => { |
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.
it('renders the menu on click', async () => { | |
test('renders the menu on click', async () => { |
}); | ||
|
||
test('renders with custom button', () => { | ||
it('renders with custom button', async () => { |
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.
it('renders with custom button', async () => { | |
test('renders with custom button', async () => { |
}); | ||
|
||
test('renders with custom option', () => { | ||
it('renders with custom option', async () => { |
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.
it('renders with custom option', async () => { | |
test('renders with custom option', async () => { |
}); | ||
|
||
test('triggers onChange', () => { | ||
it('triggers onChange', async () => { |
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.
it('triggers onChange', async () => { | |
test('triggers onChange', async () => { |
SUMMARY
This PR fixes 5 act errors in
superset-frontend/src/components/PopoverDropdown/PopoverDropdown.test.tsx
TESTING INSTRUCTIONS
superset-frontend/src/components/PopoverDropdown
npm run test superset-frontend/src/components/PopoverDropdown/PopoverDropdown.test.tsx
ADDITIONAL INFORMATION