Skip to content

test(native-filters): scoping tree in native filters modal - #12655

Merged
villebro merged 2 commits into
apache:masterfrom
simcha90:scope-tests
Jan 26, 2021
Merged

villebro merged 2 commits into
apache:masterfrom
simcha90:scope-tests

Conversation

@simcha90

@simcha90 simcha90 commented Jan 21, 2021 •

Copy link
Copy Markdown
Contributor

SUMMARY

  • Add test to Scoping tree in native filters modal
  • Includes also tests for FiltersScope functionality in native filters modal

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@villebro villebro changed the title test: Add test to scoping tree in native filters modal test(native-filters): scoping tree in native filters modal Jan 21, 2021
@codecov-io

codecov-io commented Jan 21, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #12655 (1ba688e) into master (a422c76) will decrease coverage by 7.92%.
The diff coverage is 28.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12655      +/-   ##
==========================================
- Coverage   66.79%   58.87%   -7.93%     
==========================================
  Files        1015      963      -52     
  Lines       49676    47114    -2562     
  Branches     4847     4396     -451     
==========================================
- Hits        33183    27737    -5446     
- Misses      16371    19377    +3006     
+ Partials      122        0     -122     
Flag Coverage Δ
cypress 50.90% <28.00%> (-0.15%) ⬇️
javascript ?
python 63.39% <ø> (-0.60%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/common/components/index.tsx 100.00% <ø> (ø)
...oard/components/nativeFilters/FilterConfigForm.tsx 66.66% <ø> (-15.48%) ⬇️
...ard/components/nativeFilters/FilterConfigModal.tsx 51.93% <ø> (-11.10%) ⬇️
...nd/src/dashboard/components/nativeFilters/state.ts 27.90% <0.00%> (-32.97%) ⬇️
...nd/src/dashboard/components/nativeFilters/types.ts 100.00% <ø> (ø)
...dashboard/components/nativeFilters/ScopingTree.tsx 6.25% <9.09%> (-71.53%) ⬇️
...nd/src/dashboard/components/nativeFilters/utils.ts 23.52% <22.50%> (-34.37%) ⬇️
...dashboard/components/nativeFilters/FilterScope.tsx 64.70% <64.70%> (ø)
...uperset-frontend/src/dashboard/util/dnd-reorder.js 0.00% <0.00%> (-100.00%) ⬇️
...rset-frontend/src/dashboard/util/getEmptyLayout.js 0.00% <0.00%> (-100.00%) ⬇️
... and 419 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2463215...1ba688e. Read the comment docs.

@villebro villebro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few comments

};

const getTreeSwitcher = (order = 0) =>
document.querySelectorAll('.ant-tree-switcher')[order];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be nice to add a data-test to the Tree switcher.

@simcha90 simcha90 Jan 24, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't find way to add data-test attribute to the Tree switcher, it looks like Ant don't expose such api

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, you're right, this appears to only be supported on certain AntD components currently.

@junlincc junlincc added dashboard:native-filters Related to the native filters of the Dashboard hold:testing! On hold for testing and removed hold:testing! On hold for testing labels Jan 22, 2021
@villebro
villebro merged commit da63b4b into apache:master Jan 26, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Jan 26, 2021
* master: (52 commits)
  docs: Updates to Superset Site for 1.0 (apache#12626)
  test(native-filters): scoping tree in native filters modal (apache#12655)
  Fix tests errors and warnings - iteration 3 (apache#12212) (apache#12219)
  Fix tests errors and warnings - iteration 5 (apache#12212) (apache#12224)
  Fix tests errors and warnings - iteration 6 (apache#12212) (apache#12227)
  feat(native-filters): apply scoping of native filters to dashboard (apache#12716)
  Fix tests errors and warnings - iteration 4 (apache#12212) (apache#12223)
  Fix tests errors and warnings - iteration 7 (apache#12212) (apache#12245)
  fix: missing select menu background (apache#12759)
  fix(explore): incorrect missing datasource condition (apache#12758)
  feat: default timepicker to last week when dataset is changed (apache#12609)
  feat(explore): allow opening charts with missing dataset (apache#12705)
  chore: upgrade Cypress to 6.2.1 (apache#12605)
  refactor(explore): Enhance Dataset and Control panel Collapse components (apache#12218)
  feat: Adding option to set_database_uri CLI command (apache#12740)
  docs: Fixed typo on line 348 (apache#12739)
  Fix tests errors and warnings - iteration 2 (apache#12212) (apache#12214)
  docs: Remove gatsby-plugin-offline (apache#12693)
  test: oracle engine spec (apache#12615)
  test: hive db engine spec (apache#12520)
  ...
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 First shipped in 1.2.0 labels Mar 12, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
)

* test: add test to scoping tree in native filters

* test: rename mocks
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 dashboard:native-filters Related to the native filters of the Dashboard size/L 🚢 1.2.0 First shipped in 1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants