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: Dashboard cypress refactor #11049

Closed

Conversation

adam-stasiak
Copy link
Contributor

@adam-stasiak adam-stasiak commented Sep 24, 2020

SUMMARY

Cypress selectors instead of class selectors in dashboard.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

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

@adam-stasiak adam-stasiak changed the title [WIP] chore:Dashboard cypress refactor chore:Dashboard cypress refactor Sep 25, 2020
@adam-stasiak adam-stasiak changed the title chore:Dashboard cypress refactor chore: Dashboard cypress refactor Sep 29, 2020
@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2020

Codecov Report

Merging #11049 into master will increase coverage by 0.33%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11049      +/-   ##
==========================================
+ Coverage   61.36%   61.69%   +0.33%     
==========================================
  Files         383      816     +433     
  Lines       24188    38589   +14401     
  Branches        0     3650    +3650     
==========================================
+ Hits        14842    23806    +8964     
- Misses       9346    14603    +5257     
- Partials        0      180     +180     
Flag Coverage Δ
#javascript 62.18% <75.00%> (?)
#python 61.39% <ø> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
superset-frontend/src/components/DeleteModal.tsx 100.00% <ø> (ø)
superset-frontend/src/components/EditableTitle.tsx 74.28% <ø> (ø)
superset-frontend/src/components/FaveStar.tsx 80.95% <ø> (ø)
...rset-frontend/src/components/ListView/ListView.tsx 96.00% <ø> (ø)
...ontend/src/components/ListView/TableCollection.tsx 100.00% <ø> (ø)
...set-frontend/src/components/ListViewCard/index.tsx 93.47% <ø> (ø)
superset-frontend/src/components/Modal.tsx 94.11% <ø> (ø)
...frontend/src/dashboard/components/AddSliceCard.jsx 50.00% <0.00%> (ø)
.../src/dashboard/components/BuilderComponentPane.jsx 33.33% <ø> (ø)
...tend/src/dashboard/components/DashboardBuilder.jsx 77.27% <ø> (ø)
... and 451 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 8b458ac...796aae0. Read the comment docs.

@adam-stasiak adam-stasiak force-pushed the dashboard-cypress-refactor branch 2 times, most recently from 393763f to b484572 Compare September 29, 2020 13:46
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Left lots of little comments/concerns questions. The real fix needed here is in reference to some icon names that don't look right. Otherwise, the big theme around the questions/suggestions is about adding more specific/explicit data-test attributes, in more targeted places, so we don't have to rely on traversing elements with find/children/siblings/last/etc, and we don't have problems caused by generic selectors, e.g. if more than one cancel-button is on the screen at once, or if we're in the wrong modal but there's still a cancel-button viible. Kind of a hypothetical problem, but I think you get the intent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants