{"action":"created","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/2820","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/2820/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/2820/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/2820/events","html_url":"https://github.com/cypress-io/cypress/issues/2820","id":383174960,"node_id":"MDU6SXNzdWUzODMxNzQ5NjA=","number":2820,"title":"3.1.1 -> 3.1.2 breaks cy.wrap for element arrays","user":{"login":"misoguy","id":12230408,"node_id":"MDQ6VXNlcjEyMjMwNDA4","avatar_url":"https://avatars0.githubusercontent.com/u/12230408?v=4","gravatar_id":"","url":"https://api.github.com/users/misoguy","html_url":"https://github.com/misoguy","followers_url":"https://api.github.com/users/misoguy/followers","following_url":"https://api.github.com/users/misoguy/following{/other_user}","gists_url":"https://api.github.com/users/misoguy/gists{/gist_id}","starred_url":"https://api.github.com/users/misoguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misoguy/subscriptions","organizations_url":"https://api.github.com/users/misoguy/orgs","repos_url":"https://api.github.com/users/misoguy/repos","events_url":"https://api.github.com/users/misoguy/events{/privacy}","received_events_url":"https://api.github.com/users/misoguy/received_events","type":"User","site_admin":false},"labels":[{"id":1145280570,"node_id":"MDU6TGFiZWwxMTQ1MjgwNTcw","url":"https://api.github.com/repos/cypress-io/cypress/labels/type:%20regression","name":"type: regression","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":{"login":"brian-mann","id":1268976,"node_id":"MDQ6VXNlcjEyNjg5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/1268976?v=4","gravatar_id":"","url":"https://api.github.com/users/brian-mann","html_url":"https://github.com/brian-mann","followers_url":"https://api.github.com/users/brian-mann/followers","following_url":"https://api.github.com/users/brian-mann/following{/other_user}","gists_url":"https://api.github.com/users/brian-mann/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-mann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-mann/subscriptions","organizations_url":"https://api.github.com/users/brian-mann/orgs","repos_url":"https://api.github.com/users/brian-mann/repos","events_url":"https://api.github.com/users/brian-mann/events{/privacy}","received_events_url":"https://api.github.com/users/brian-mann/received_events","type":"User","site_admin":false},"assignees":[{"login":"brian-mann","id":1268976,"node_id":"MDQ6VXNlcjEyNjg5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/1268976?v=4","gravatar_id":"","url":"https://api.github.com/users/brian-mann","html_url":"https://github.com/brian-mann","followers_url":"https://api.github.com/users/brian-mann/followers","following_url":"https://api.github.com/users/brian-mann/following{/other_user}","gists_url":"https://api.github.com/users/brian-mann/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-mann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-mann/subscriptions","organizations_url":"https://api.github.com/users/brian-mann/orgs","repos_url":"https://api.github.com/users/brian-mann/repos","events_url":"https://api.github.com/users/brian-mann/events{/privacy}","received_events_url":"https://api.github.com/users/brian-mann/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/cypress-io/cypress/milestones/95","html_url":"https://github.com/cypress-io/cypress/milestone/95","labels_url":"https://api.github.com/repos/cypress-io/cypress/milestones/95/labels","id":3847148,"node_id":"MDk6TWlsZXN0b25lMzg0NzE0OA==","number":95,"title":"Sprint 13","description":"","creator":{"login":"jennifer-shehane","id":1271364,"node_id":"MDQ6VXNlcjEyNzEzNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1271364?v=4","gravatar_id":"","url":"https://api.github.com/users/jennifer-shehane","html_url":"https://github.com/jennifer-shehane","followers_url":"https://api.github.com/users/jennifer-shehane/followers","following_url":"https://api.github.com/users/jennifer-shehane/following{/other_user}","gists_url":"https://api.github.com/users/jennifer-shehane/gists{/gist_id}","starred_url":"https://api.github.com/users/jennifer-shehane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennifer-shehane/subscriptions","organizations_url":"https://api.github.com/users/jennifer-shehane/orgs","repos_url":"https://api.github.com/users/jennifer-shehane/repos","events_url":"https://api.github.com/users/jennifer-shehane/events{/privacy}","received_events_url":"https://api.github.com/users/jennifer-shehane/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":7,"state":"closed","created_at":"2018-11-26T07:10:40Z","updated_at":"2018-12-10T16:36:25Z","due_on":"2018-12-02T08:00:00Z","closed_at":"2018-12-10T01:34:25Z"},"comments":7,"created_at":"2018-11-21T15:38:03Z","updated_at":"2018-12-12T19:11:52Z","closed_at":"2018-12-02T17:24:18Z","author_association":"NONE","body":"### Current behavior:\r\nclick() fails with the following error\r\nrelated to https://github.com/kentcdodds/cypress-testing-library/pull/25\r\n<!-- images, stack traces, etc -->\r\n```\r\nCypressError: cy.click() failed because it requires a DOM element.\r\n\r\nThe subject received was:\r\n\r\n  > [<button>, <button>]\r\n\r\nThe previous command that ran was:\r\n\r\n  > cy.then()\r\n      at Object.cypressErr (http://localhost:13370/__cypress/runner/cypress_runner.js:63008:11)\r\n      at Object.throwErr (http://localhost:13370/__cypress/runner/cypress_runner.js:62973:18)\r\n      at Object.throwErrByPath (http://localhost:13370/__cypress/runner/cypress_runner.js:63000:17)\r\n      at ensureElement (http://localhost:13370/__cypress/runner/cypress_runner.js:56011:21)\r\n      at validateType (http://localhost:13370/__cypress/runner/cypress_runner.js:55897:16)\r\n      at Object.ensureSubjectByType (http://localhost:13370/__cypress/runner/cypress_runner.js:55919:9)\r\n      at pushSubjectAndValidate (http://localhost:13370/__cypress/runner/cypress_runner.js:58778:15)\r\n      at Context.<anonymous> (http://localhost:13370/__cypress/runner/cypress_runner.js:58940:18)\r\n      at http://localhost:13370/__cypress/runner/cypress_runner.js:58649:33\r\n      at tryCatcher (http://localhost:13370/__cypress/runner/cypress_runner.js:124249:23)\r\n      at Promise._settlePromiseFromHandler (http://localhost:13370/__cypress/runner/cypress_runner.js:122267:31)\r\n      at Promise._settlePromise (http://localhost:13370/__cypress/runner/cypress_runner.js:122324:18)\r\n      at Promise._settlePromiseCtx (http://localhost:13370/__cypress/runner/cypress_runner.js:122361:10)\r\n      at Async._drainQueue (http://localhost:13370/__cypress/runner/cypress_runner.js:119178:12)\r\n      at Async._drainQueues (http://localhost:13370/__cypress/runner/cypress_runner.js:119183:10)\r\n      at Async.drainQueues (http://localhost:13370/__cypress/runner/cypress_runner.js:119057:14)\r\n```\r\n### Desired behavior:\r\nclick() to work. (works on 3.1.1)\r\n<!-- A clear and concise description of what you want to happen -->\r\n\r\n### Steps to reproduce:\r\nclone https://github.com/kentcdodds/cypress-testing-library\r\nrun `npm setup`\r\nconfirm test fails.\r\nrun `npm install cypress@3.1.1`\r\nrun `npm run test:cypress:run`\r\nconfirm test passes\r\n\r\n<!-- Issues without reproducible steps might get closed. *Tip* You can fork https://github.com/cypress-io/cypress-test-tiny repo, set up a failing test, then tell us the repo/branch to try. -->\r\n\r\n### Versions\r\ncypress: 3.1.2\r\n<!-- Cypress, operating system, browser -->\r\n"},"comment":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/comments/446707623","html_url":"https://github.com/cypress-io/cypress/issues/2820#issuecomment-446707623","issue_url":"https://api.github.com/repos/cypress-io/cypress/issues/2820","id":446707623,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjcwNzYyMw==","user":{"login":"egucciar","id":2848185,"node_id":"MDQ6VXNlcjI4NDgxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/2848185?v=4","gravatar_id":"","url":"https://api.github.com/users/egucciar","html_url":"https://github.com/egucciar","followers_url":"https://api.github.com/users/egucciar/followers","following_url":"https://api.github.com/users/egucciar/following{/other_user}","gists_url":"https://api.github.com/users/egucciar/gists{/gist_id}","starred_url":"https://api.github.com/users/egucciar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egucciar/subscriptions","organizations_url":"https://api.github.com/users/egucciar/orgs","repos_url":"https://api.github.com/users/egucciar/repos","events_url":"https://api.github.com/users/egucciar/events{/privacy}","received_events_url":"https://api.github.com/users/egucciar/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T19:11:52Z","updated_at":"2018-12-12T19:11:52Z","author_association":"NONE","body":"I have a feeling this also fixed a regression to my custom commands which yielded jquery arrays which stopped working in 3.1.2, but was working again in 3.1.3. Though i didnt use `cy.wrap` i suspect the underlying mechanism was the same, If so then thank you!"}}
{"actor":{"display_login":"egucciar"}}