-
Notifications
You must be signed in to change notification settings - Fork 16
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: add cypress tests for Outlier table DHIS2-17162 #3008
Conversation
🚀 Deployed on https://pr-3008--dhis2-data-visualizer.netlify.app |
1 flaky test on run #2762 ↗︎
Details:
cypress/integration/dimensions/data.cy.js • 1 flaky test • e2e-chrome-parallel-2.41
Review all test suite changes for PR #3008 ↗︎ |
cy.getBySel(dataTypesSelectButtonEl).click() | ||
cy.getBySelLike(dataTypeSelectOptionEl).contains(dataType).click() | ||
cy.getBySel(dataTypesSelectButtonEl).then(($typesSelect) => { | ||
// account for disabled type selector with preselected item |
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.
In which case is this needed to have?
!$typesSelect.text().includes(dataType)
looks over-engineered to me 🤔
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.
I added a comment, perhaps is not very clear 😅
Basically, when you have only 1 type enabled, the whole select gets disabled with the preselected type, then the actions for selecting the type don't work.
So, the reasoning is, if the type you want is already selected, don't try to select it again, this accounts also for the case of only 1 type available described above.
Needed by cypress-tags.
708e1c8
to
d171fee
Compare
Implements DHIS2-17162
Key features
Description
Tests are based on the spec
Screenshots