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

chore: E2E tests for the Drill to detail modal #21187

Merged
merged 7 commits into from
Aug 29, 2022

Conversation

geido
Copy link
Member

@geido geido commented Aug 24, 2022

SUMMARY

This PR adds E2E tests for the drill to detail modal originally implemented in this PR #20728

Related RTL tests: #21148

It also adds a new ECharts Dashboard sample with some sample ECharts (as shown in the screenshot). The goal of this Dashboard is to grow and eventually show as many ECharts samples as possible. I'll continue enhancing this sample dashboard in separate PRs.

ECharts Dashboard

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N.A.

TESTING INSTRUCTIONS

All the tests should succeed

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 Aug 24, 2022

Codecov Report

Merging #21187 (e7d4fe6) into master (5f76ac9) will decrease coverage by 11.69%.
The diff coverage is 6.25%.

❗ Current head e7d4fe6 differs from pull request most recent head 8f2a153. Consider uploading reports for the commit 8f2a153 to get more accurate results

@@             Coverage Diff             @@
##           master   #21187       +/-   ##
===========================================
- Coverage   66.40%   54.71%   -11.70%     
===========================================
  Files        1783     1784        +1     
  Lines       68087    68132       +45     
  Branches     7261     7261               
===========================================
- Hits        45215    37280     -7935     
- Misses      21007    28987     +7980     
  Partials     1865     1865               
Flag Coverage Δ
hive ?
mysql ?
postgres ?
presto 52.94% <0.00%> (-0.08%) ⬇️
python 57.31% <0.00%> (-24.23%) ⬇️
sqlite ?
unit 50.60% <0.00%> (-0.07%) ⬇️

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

Impacted Files Coverage Δ
...BigNumber/BigNumberWithTrendline/transformProps.ts 46.26% <ø> (ø)
...board/components/DrillDetailPane/TableControls.tsx 0.00% <ø> (ø)
superset/cli/examples.py 0.00% <0.00%> (ø)
superset/examples/data_loading.py 0.00% <0.00%> (ø)
superset/examples/echarts_dashboard.py 0.00% <0.00%> (ø)
...end/src/explore/components/RowCountLabel/index.tsx 100.00% <100.00%> (ø)
superset/utils/dashboard_import_export.py 0.00% <0.00%> (-100.00%) ⬇️
superset/key_value/commands/update.py 0.00% <0.00%> (-88.89%) ⬇️
superset/key_value/commands/delete.py 0.00% <0.00%> (-85.30%) ⬇️
superset/db_engines/hive.py 0.00% <0.00%> (-85.19%) ⬇️
... and 289 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

});

it('opens the modal from the context menu', () => {
cy.get(
Copy link
Member

Choose a reason for hiding this comment

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

Can we extract the code that opens the modal to a function? Specifically this part:

cy.get(
  "[data-test-viz-type='big_number_total'] [aria-label='More Options']",
).click();
cy.get('.ant-dropdown')
  .not('.ant-dropdown-hidden')
  .find("[role='menu'] [role='menuitem']")
  .eq(5)
  .should('contain', 'Drill to detail')
  .click();

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. Updated

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jinghua-qa jinghua-qa left a comment

Choose a reason for hiding this comment

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

LGTM

@geido geido merged commit f017f98 into master Aug 29, 2022
@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
@mistercrunch mistercrunch deleted the chore/e2e-tests-drilltodetail-modal branch March 26, 2024 16:08
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/XL 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants