Cypress: The scrollTo command doesn't log coordinates when options are used

Created on 11 Oct 2017  路  3Comments  路  Source: cypress-io/cypress

  • Operating System: Mac OS X
  • Cypress Version: 1.0.1
  • Browser Version: Chrome 61

Is this a Feature or Bug?

Bug

Current behavior:

cy.scrollTo(0, 200, {duration: 500});

In command log:
image

In debug console:
image

Desired behavior:

In command log:

SCROLLTO 0, 200, {duration: 500}

In debug console:

Command: scrollTo
X: 0
Y: 200
Options: {duration: 500}

How to reproduce:

Test code:

cy.visit('http://google.com');

cy.scrollTo(0, 200, {duration: 500});
first-timers-only pkdriver

Most helpful comment

I can look into this one!

All 3 comments

I can look into this one!

The code for this is merged, but it has not been released yet.

Fixed in 1.0.2.

Was this page helpful?
0 / 5 - 0 ratings