Closed DvaKompota closed 1 year ago
There are two and according to the accepted visibility definitions they are visible: attached and having non-0 size. A whole vertical strip of the nb-menu
seems to be on screen for some reason.
Thank you @pavelfeldman for such a swift response! So you think it is an application's under test bug, that reproduces specifically for mobile viewport? And that for some reason (perhaps different visibility criteria?) it is not caught by Cypress, but caught by Playwright?
I don't think it is an app bug per se - menu area is occluded by an opaque element, so the user taps won't trigger the menu. But we can't known that before we start clicking - the element is technically visible, everything above it can be transparent and pointer-events: none-y. I would not know why it is not caught by Cypress.
Thank you @pavelfeldman — closing the ticket then
https://www.akveo.com/ngx-admin/themes @skater_rambo.com
Context:
Code Snippet Validating www.akveo.com/ngx-admin application homepage at different screen resolutions:
Describe the bug The www.akveo.com/ngx-admin is used as a demo application under test If you run the code from the snippet, the first 3 validations will pass, and the last one will fail — that is an incorrect, because the
li.menu-item:has-text("FEATURES")
element is definitely not visible.NOTE: the 3rd validation (at the iPad resolution) passes correctly, as the element is already not visible at this resolution. But as soon as the width of the viewport becomes
575
pixels or less — Playwrigth starts to see this element again despite it's absence on the screen.The bug was discovered while building a pet test automation project for 1:1 comparison with Cypress (which didn't have this issue)