-
Couldn't load subscription status.
- Fork 3.4k
refactor: modernizes visibility tests #32833
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
base: develop
Are you sure you want to change the base?
Conversation
cypress
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Project |
cypress
|
| Branch Review |
refactor/visibility-tests
|
| Run status |
|
| Run duration | 16m 05s |
| Commit |
|
| Committer | Cacie Prins |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
8
|
|
|
3
|
|
|
605
|
|
|
4
|
|
|
9810
|
| View all changes introduced in this branch ↗︎ | |
Warning
Partial Report: The results for the Application Quality reports may be incomplete.
UI Coverage
45.48%
|
|
|---|---|
|
|
188
|
|
|
161
|
Accessibility
97.98%
|
|
|---|---|
|
|
4 critical
8 serious
2 moderate
2 minor
|
|
|
101
|
Tests for review
The first 5 failed specs are shown, see all 882 specs in Cypress Cloud.
cypress/e2e/e2e/origin/cookie_login.cy.ts • 1 flaky test • 5x-driver-firefox
| Test | Artifacts | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ... > past Max-Age, before Expires -> not logged in |
| |||||||||||||
| Test | Artifacts | |||||||
|---|---|---|---|---|---|---|---|---|
| ... > stops waiting when an xhr request is canceled |
| |||||||
| Test | Artifacts | |
|---|---|---|
| SidebarNavigation > expands the bar when clicking the expand button |
Test Replay
Screenshots
|
|
|
|
||
| expect(this.$tableVisCollapse.find('tr.collapse')).to.be.hidden | ||
| expect(this.$tableVisCollapse.find('tr.collapse')).to.not.be.visible | ||
| describe('html is display none', () => { |
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.
Did we remove the test where html/body are not display none?
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.
added back in 4573e14
Additional details
In preparation for testing visibility algorithm modifications, this refactors the
visibility.cy.tsspec. It now uses static html fixtures, and a declarative testing style that makes it easier to determine what should and should not be visible.Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation?type definitions?Note
Rewrites DOM visibility tests to use static HTML fixtures with declarative expectations and shared helpers, expanding coverage across CSS, forms, overflow, positioning, transforms, and reason messages.
packages/driver/cypress/e2e/dom/visibility.cy.ts:assertVisibilityForEl,prepareFixtureSection,assertVisibilityForSectionsand groups tests into scenario suites.cy-expect/cy-legacy-expect.html/bodyoverrides and updates#getReasonIsHiddenassertions to read from fixtures.packages/driver/cypress/fixtures/visibility/:basic-css-properties.html,form-elements.html,overflow.html,positioning.html,transforms.html,empty.html,table-visibility.html.style.css(section visibility and highlighting) andux.js(in-page nav/section activation).Written by Cursor Bugbot for commit 4573e14. This will update automatically on new commits. Configure here.