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: Fix act errors in PopoverDropdown test #21361

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

lyndsiWilliams
Copy link
Member

SUMMARY

This PR fixes 5 act errors in superset-frontend/src/components/PopoverDropdown/PopoverDropdown.test.tsx

TESTING INSTRUCTIONS

  • cd into superset-frontend/src/components/PopoverDropdown
  • run npm run test superset-frontend/src/components/PopoverDropdown/PopoverDropdown.test.tsx
  • Observe that there are no act errors in the console

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Sep 7, 2022

Codecov Report

Merging #21361 (30eb14c) into master (ce3d38d) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            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     
Flag Coverage Δ
hive 52.97% <ø> (ø)
javascript 52.73% <ø> (-0.04%) ⬇️
mysql 80.83% <ø> (ø)
postgres 80.88% <ø> (ø)
presto 52.87% <ø> (ø)
python 81.36% <ø> (ø)
sqlite 79.43% <ø> (ø)
unit 50.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rd/components/nativeFilters/FilterBar/keyValue.tsx 18.51% <0.00%> (-22.23%) ⬇️
...board/components/nativeFilters/FilterBar/index.tsx 60.14% <0.00%> (-5.80%) ⬇️

📣 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 () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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 () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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 () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
it('renders with custom button', async () => {
test('renders with custom button', async () => {

});

test('renders with custom option', () => {
it('renders with custom option', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
it('renders with custom option', async () => {
test('renders with custom option', async () => {

});

test('triggers onChange', () => {
it('triggers onChange', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
it('triggers onChange', async () => {
test('triggers onChange', async () => {

@michael-s-molina michael-s-molina merged commit 994a005 into master Sep 8, 2022
@lyndsiWilliams lyndsiWilliams deleted the lyndsi/popoverdropdown-act-cleanup branch September 8, 2022 16:31
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants