{"action":"created","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/2761","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/2761/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/2761/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/2761/events","html_url":"https://github.com/cypress-io/cypress/issues/2761","id":379623083,"node_id":"MDU6SXNzdWUzNzk2MjMwODM=","number":2761,"title":"Failed to execute 'scrollTo' on 'Window': No function was found that matched the signature provided.","user":{"login":"dustinhorton","id":378165,"node_id":"MDQ6VXNlcjM3ODE2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/378165?v=4","gravatar_id":"","url":"https://api.github.com/users/dustinhorton","html_url":"https://github.com/dustinhorton","followers_url":"https://api.github.com/users/dustinhorton/followers","following_url":"https://api.github.com/users/dustinhorton/following{/other_user}","gists_url":"https://api.github.com/users/dustinhorton/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinhorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinhorton/subscriptions","organizations_url":"https://api.github.com/users/dustinhorton/orgs","repos_url":"https://api.github.com/users/dustinhorton/repos","events_url":"https://api.github.com/users/dustinhorton/events{/privacy}","received_events_url":"https://api.github.com/users/dustinhorton/received_events","type":"User","site_admin":false},"labels":[{"id":731957932,"node_id":"MDU6TGFiZWw3MzE5NTc5MzI=","url":"https://api.github.com/repos/cypress-io/cypress/labels/browser:%20electron","name":"browser: electron","color":"0a4875","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-12T05:06:37Z","updated_at":"2019-01-04T13:49:26Z","closed_at":"2018-11-14T05:16:28Z","author_association":"NONE","body":"It seems like the combo of Cypress/Electron doesn't like:\r\n\r\n```js\r\nwindow.scrollTo({\r\n   behavior: 'smooth',\r\n   top: 0,\r\n})\r\n```\r\n\r\nas I get this error:\r\n\r\n```console\r\nFailed to execute 'scrollTo' on 'Window': No function was found that matched the signature provided.\r\n```\r\n\r\nTo get around this, I'm currently doing:\r\n\r\n```javascript\r\ntry {\r\n  window.scroll({\r\n    behavior: 'smooth',\r\n    top: 0,\r\n  })\r\n} catch(err) {\r\n  if (err instanceof TypeError) {\r\n    window.scroll(0, 0)\r\n  } else {\r\n    throw err\r\n  }\r\n}\r\n```\r\n\r\n### Current behavior:\r\n\r\n```\r\nFailed to execute 'scrollTo' on 'Window': No function was found that matched the signature provided.\r\n\r\nThis error originated from your application code, not from Cypress.\r\n\r\nWhen Cypress detects uncaught errors originating from your application it will automatically fail the current test.\r\n\r\nThis behavior is configurable, and you can choose to turn this off by listening to the 'uncaught:exception' event.\r\n\r\nhttps://on.cypress.io/uncaught-exception-from-application\r\n\r\nThis error originated from your application code, not from Cypress.\r\n\r\nWhen Cypress detects uncaught errors originating from your application it will automatically fail the current test.\r\n\r\nThis behavior is configurable, and you can choose to turn this off by listening to the 'uncaught:exception' event.\r\n\r\nhttps://on.cypress.io/uncaught-exception-from-application\r\n  Uncaught TypeError: Failed to execute 'scrollTo' on 'Window': No function was found that matched the signature provided.\r\n  \r\n  This error originated from your application code, not from Cypress.\r\n  \r\n  When Cypress detects uncaught errors originating from your application it will automatically fail the current test.\r\n  \r\n  This behavior is configurable, and you can choose to turn this off by listening to the 'uncaught:exception' event.\r\n```\r\n\r\n### Desired behavior:\r\n\r\nSimilar behavior to Chrome—work without error.\r\n\r\n### Steps to reproduce:\r\n\r\nRun a headless test on code that has the following:\r\n\r\n```javascript\r\nwindow.scrollTo({\r\n   behavior: 'smooth',\r\n   top: 0,\r\n})\r\n```\r\n\r\n### Versions\r\n\r\n```\r\n\"cypress\": \"^3.1.1\",\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/comments/451448214","html_url":"https://github.com/cypress-io/cypress/issues/2761#issuecomment-451448214","issue_url":"https://api.github.com/repos/cypress-io/cypress/issues/2761","id":451448214,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTQ0ODIxNA==","user":{"login":"felixpk","id":6123024,"node_id":"MDQ6VXNlcjYxMjMwMjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6123024?v=4","gravatar_id":"","url":"https://api.github.com/users/felixpk","html_url":"https://github.com/felixpk","followers_url":"https://api.github.com/users/felixpk/followers","following_url":"https://api.github.com/users/felixpk/following{/other_user}","gists_url":"https://api.github.com/users/felixpk/gists{/gist_id}","starred_url":"https://api.github.com/users/felixpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixpk/subscriptions","organizations_url":"https://api.github.com/users/felixpk/orgs","repos_url":"https://api.github.com/users/felixpk/repos","events_url":"https://api.github.com/users/felixpk/events{/privacy}","received_events_url":"https://api.github.com/users/felixpk/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T13:49:26Z","updated_at":"2019-01-04T13:49:26Z","author_association":"NONE","body":"Why is this issue closed?\r\n`cypress: 3.1.4` and the problem still exists"}}
{"actor":{"display_login":"felixpk"}}