Skip to content

Update to cypress 4.6.0 is not consistently showing address bar/viewport is resizing #7443

Closed
@danreale

Description

@danreale

Current behavior:

When running a test with cypress 4.6.0, I am noticing that that address bar is showing when the test starts and then disappearing shortly after.
I am also noticing the view port is resizing and not showing the whole application while the tests run through. I was on version 4.4.1 prior to uploading (didnt see these issues), so I am not sure if this issue was present on 4.5.0.

Desired behavior:

I would expect the address bar would always show during a test and that the page doesnt resize/ stays the same size during the test run.

May-21-2020 09-53-17_6

Test code to reproduce

Versions

4.6.0
mac (high sierra 10.13.6)
chrome and edge browsers (did not try others)

Activity

Jacek-fstack

Jacek-fstack commented on May 21, 2020

@Jacek-fstack

+1 it's gone for me as well

jennifer-shehane

jennifer-shehane commented on May 21, 2020

@jennifer-shehane
Member

I bet this is due to #7203

added
pkg/reporterThis is due to an issue in the packages/reporter directory
type: regressionA bug that didn't appear until a specific Cy version release
on May 21, 2020
danreale

danreale commented on May 21, 2020

@danreale
Author

@jennifer-shehane would this be slated for the next release?

ragu2807

ragu2807 commented on May 21, 2020

@ragu2807

Yeah, I can see the same issue with v4.6.0 whereas 4.5.0 looks good.

OS: macOS Mojave 10.14.6
Browsers: Chrome, Edge, Firefox and Electron

Noticed this happens when Cypress scrolls to an element that is not visible within the specified viewport, although it scrolls to the element correctly.

jennifer-shehane

jennifer-shehane commented on May 22, 2020

@jennifer-shehane
Member

I was able to recreate this with the following code. I also have to run this code in combination with resizing the main browser window to touch either the width/height of the AUT iframe. So if my browser window is really maxed out - you won't see it.

index.html

<html>
<body>
<p style="height: 2000;">Aenean lacinia bibendum nulla sed consectetur.</p>
<footer>Aenean lacinia bibendum nulla sed consectetur.</footer>
</body>
</html>

spec.js

it('test', () => {
  cy.visit('index.html')
  cy.get('footer').click()
})

jennifer-shehane

jennifer-shehane commented on May 22, 2020

@jennifer-shehane
Member

Reverting #7203 fixes the issue. Will go ahead and revert and reopen the other issue this was fixing since this affects more people.

10 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/runnerThis is due to an issue in the packages/runner directorytype: regressionA bug that didn't appear until a specific Cy version releasev4.6.0 🐛Issue present since 4.6.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @chrisbreiding@jennifer-shehane@Jacek-fstack@ragu2807@danreale

      Issue actions

        Update to cypress 4.6.0 is not consistently showing address bar/viewport is resizing · Issue #7443 · cypress-io/cypress