Skip to content

Spec Runner overflow issue in Firefox after hovering in the command log #21881

Closed
@sync-by-unito

Description

@sync-by-unito

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:

Screen Shot 2022-05-02 at 8 51 54 AM

Desired Behavior

In this situation, Cypress should work the same in both FF and Chromium based browsers

Reproducible Steps

  1. Remove the isFirefox check from ResizablePanels.vue so that the overflow-x-auto class is always applied.
  2. Open any spec in Firefox.
  3. See that sizing/scaling all works normally
  4. Make the window small enough that the AUT is too small to see.
  5. Hover on a command such that the snapshot pinning UI appears.
  6. Notice the UI has all moved up a certain amount.
  7. 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 the window.innerHeight you get in the console.
  8. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions