-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed as not planned
Closed as not planned
Copy link
Labels
stage: needs investigatingSomeone from Cypress needs to look at thisSomeone from Cypress needs to look at thisstaleno activity on this issue for a long periodno activity on this issue for a long periodtopic: visibility 👁v14.0.0 🐛Issue present since 14.0.0Issue present since 14.0.0
Description
Current behavior
As of 14.x, Cypress mostly fails tests that include an animated element, with the message:
AssertionError: Timed out retrying after 4000ms: expected '<div.comentario-dialog-header>' to be 'visible'
This element `<div.comentario-dialog-header>` is not visible because its parent `<div.comentario-dialog.comentario-fade-in>` has CSS property: `opacity: 0`
at Context.eval (webpack://comentario/./cypress/e2e/embed/login-dialog.cy.ts:235:106)
See this Comentario build for example.
The behaviour is inconsistent and only seems to occur when run without UI. It does not occur:
- If run with
cypress open - With Cypress
13.7.0
It reports the element (in this case, the dialog header) as invisible, although it is perfectly visible:
Desired behavior
There must be no error, the test should consistently pass.
Test code to reproduce
This specific test code:
it('open Signup dialog when enabled', () => {
openLoginDlg();
cy.get('@loginDialog').contains('button', 'Sign up here').click();
cy.get('@root').contains('.comentario-dialog .comentario-dialog-header', 'Create an account').should('be.visible');
});See the complete spec file here.
Cypress Version
14.2.1
Node version
v22.14.0
Operating System
Linux
Debug Logs
See attachmentOther
Metadata
Metadata
Assignees
Labels
stage: needs investigatingSomeone from Cypress needs to look at thisSomeone from Cypress needs to look at thisstaleno activity on this issue for a long periodno activity on this issue for a long periodtopic: visibility 👁v14.0.0 🐛Issue present since 14.0.0Issue present since 14.0.0
