Description
Current Behavior
Note: This bug would be irrelevant after https://cypress-io.atlassian.net/browse/UNIFY-668 or https://cypress-io.atlassian.net/browse/UNIFY-1546 is completed and prevents needing the scroll, it would probably be better to spend effort on the responsiveness in general than chasing down this issue with FF.
A small enhancement to the Runner - becoming scrollable when the viewport is too small for the AUT to be visible - has the potential to break the UI in Firefox in some narrow circumstances, so I’ve currently turned off that enhancement in FF. It seems likely that it might be related to this category of bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1663634. See missing headers in these panels and the white space the bottom of this screenshot for an example of the bad state:
Desired Behavior
In this situation, Cypress should work the same in both FF and Chromium based browsers
Reproducible Steps
- Remove the
isFirefox
check from ResizablePanels.vue so that theoverflow-x-auto
class is always applied. - Open any spec in Firefox.
- See that sizing/scaling all works normally
- Make the window small enough that the AUT is too small to see.
- Hover on a command such that the snapshot pinning UI appears.
- Notice the UI has all moved up a certain amount.
- Inspect the DOM to see that the
100vh
that sets the height for the container element for the panels is still applied, and the calculated height in the CSS panel matches thewindow.innerHeight
you get in the console. - Resize the window bigger and notice that it comes back to normal behavior until you hover on the command log again in the same situation as above.
In my first look I couldn’t see why simply showing and hiding the snapshot controls would produce this effect in Firefox but not Chrome, so I’ve made this ticket to not hold up PR digging in to this part.
┆Issue is synchronized with this Jira Bug by Unito
┆Attachments: Screen Shot 2022-05-02 at 8.51.54 AM.png
┆author: Mark Noonan
┆epic: UI/UX Improvements
┆friendlyId: UNIFY-1704
┆priority: Lowest
┆sprint: Backlog
┆taskType: Bug