Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollIntoView() does not work #519

Closed
ddeath opened this issue May 30, 2017 · 2 comments
Closed

scrollIntoView() does not work #519

ddeath opened this issue May 30, 2017 · 2 comments
Milestone

Comments

@ddeath
Copy link

ddeath commented May 30, 2017

  • Operating System: Linux Mint 18
  • Cypress Version: 0.19.2
  • Browser/Browser Version: Chrome 60, Electron 53

Are you requesting a feature or reporting a bug?

Bug

Current behavior:

Test are failing because the code does not scroll into the element

Expected behavior:

Test are passing because it scrolls into the element

How to reproduce the current behavior:

clone https://github.com/ddeath/cypress-scroll-bug and run the tests

Test code:

describe('Broken Sink', function(){
  before(() => {
    cy.visit('/');
  });

  it('Should scroll in cli', () => {
    cy.get('.selector').click();
    cy.get('.item-2').click();

    cy.get('#footer').then(function($btn){
      $btn.get(0).scrollIntoView();
    }).get('.selector').click()
      .get('.item-3').click();
  });
})

Additional Info (images, notes, stack traces, etc)

@RandallKent
Copy link
Contributor

The code for this is done, but this has yet to be released. We'll update the issue and reference the changelog when it's released.

@brian-mann
Copy link
Member

Fixed in 0.20.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants