{"action":"created","issue":{"url":"https://api.github.com/repos/chaijs/chai/issues/944","repository_url":"https://api.github.com/repos/chaijs/chai","labels_url":"https://api.github.com/repos/chaijs/chai/issues/944/labels{/name}","comments_url":"https://api.github.com/repos/chaijs/chai/issues/944/comments","events_url":"https://api.github.com/repos/chaijs/chai/issues/944/events","html_url":"https://github.com/chaijs/chai/issues/944","id":215790168,"number":944,"title":"to.not.exist - test incorrectly failing","user":{"login":"gavin-johnson84","id":15869453,"avatar_url":"https://avatars3.githubusercontent.com/u/15869453?v=3","gravatar_id":"","url":"https://api.github.com/users/gavin-johnson84","html_url":"https://github.com/gavin-johnson84","followers_url":"https://api.github.com/users/gavin-johnson84/followers","following_url":"https://api.github.com/users/gavin-johnson84/following{/other_user}","gists_url":"https://api.github.com/users/gavin-johnson84/gists{/gist_id}","starred_url":"https://api.github.com/users/gavin-johnson84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavin-johnson84/subscriptions","organizations_url":"https://api.github.com/users/gavin-johnson84/orgs","repos_url":"https://api.github.com/users/gavin-johnson84/repos","events_url":"https://api.github.com/users/gavin-johnson84/events{/privacy}","received_events_url":"https://api.github.com/users/gavin-johnson84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-21T15:59:29Z","updated_at":"2017-03-23T08:53:49Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having a test incorrectly failing when using the `.to.not.exist` chain.\r\n\r\nTo verify this I've added numerous `browser.pause` to my tests and I can see that the element is removed from the DOM.\r\n\r\nPlease see my test below for reference:\r\n```\r\n  it(\"should remove the unread message counter\", function () {\r\n    this.retries(3);\r\n    browser.reload();\r\n    browser.url(pageUrl);\r\n    browser.waitForExist(frameUrl);\r\n    browser.frame($(frameUrl).value);\r\n    browser.pause(5000);\r\n    browser.waitForExist(selectors.notificationIcon);\r\n    browser.click(selectors.avatars);\r\n    browser.pause(10000);\r\n    expect(selectors.notificationIcon).to.not.exist;\r\n  });\r\n```\r\n\r\nI'm using webdriver.io for further reference.\r\n\r\nMany thanks!"},"comment":{"url":"https://api.github.com/repos/chaijs/chai/issues/comments/288654592","html_url":"https://github.com/chaijs/chai/issues/944#issuecomment-288654592","issue_url":"https://api.github.com/repos/chaijs/chai/issues/944","id":288654592,"user":{"login":"gavin-johnson84","id":15869453,"avatar_url":"https://avatars3.githubusercontent.com/u/15869453?v=3","gravatar_id":"","url":"https://api.github.com/users/gavin-johnson84","html_url":"https://github.com/gavin-johnson84","followers_url":"https://api.github.com/users/gavin-johnson84/followers","following_url":"https://api.github.com/users/gavin-johnson84/following{/other_user}","gists_url":"https://api.github.com/users/gavin-johnson84/gists{/gist_id}","starred_url":"https://api.github.com/users/gavin-johnson84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavin-johnson84/subscriptions","organizations_url":"https://api.github.com/users/gavin-johnson84/orgs","repos_url":"https://api.github.com/users/gavin-johnson84/repos","events_url":"https://api.github.com/users/gavin-johnson84/events{/privacy}","received_events_url":"https://api.github.com/users/gavin-johnson84/received_events","type":"User","site_admin":false},"created_at":"2017-03-23T08:53:49Z","updated_at":"2017-03-23T08:53:49Z","body":"Hi @meeber, thanks for your response! I've made the following changes to my test:\r\n```\r\n  it(\"should remove the unread message counter\", function () {\r\n    this.retries(3);\r\n    browser.reload();\r\n    browser.url(pageUrl);\r\n    browser.waitForExist(frameUrl);\r\n    browser.frame($(frameUrl).value);\r\n    browser.waitForExist(selectors.notificationIcon);\r\n    browser.click(selectors.avatars);\r\n    //expect(selectors.notificationIcon).to.not.exist();\r\n    if (selectors.notificationIcon !== null && selectors.notificationIcon !== undefined) {\r\n      throw Error(\"oh noes\");\r\n    }\r\n  });\r\n```\r\nI get the following error when the test has run:\r\n```\r\n[chrome #0-6] 1) chat pro-active messages opened should remove the unread message counter:\r\n[chrome #0-6] oh noes\r\n[chrome #0-6] Error: oh noes\r\n[chrome #0-6]     at Context.<anonymous> (/Users/gavin/Code/triptease/test-drive/e2e/guestpa/tests/chat/proactive-messages/proactive-messages-opened.test.js:49:13)\r\n[chrome #0-6]     at F (/Users/gavin/Code/triptease/test-drive/e2e/node_modules/wdio-sync/node_modules/core-js/library/modules/_export.js:35:28)\r\n```\r\n\r\nCheers"}}
{"actor":{"display_login":"gavin-johnson84"}}