{"action":"opened","issue":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1295","repository_url":"https://api.github.com/repos/nightwatchjs/nightwatch","labels_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1295/labels{/name}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1295/comments","events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1295/events","html_url":"https://github.com/nightwatchjs/nightwatch/issues/1295","id":191533071,"number":1295,"title":"Timing issue with BDD expect assertions","user":{"login":"jk171505","id":1572947,"avatar_url":"https://avatars.githubusercontent.com/u/1572947?v=3","gravatar_id":"","url":"https://api.github.com/users/jk171505","html_url":"https://github.com/jk171505","followers_url":"https://api.github.com/users/jk171505/followers","following_url":"https://api.github.com/users/jk171505/following{/other_user}","gists_url":"https://api.github.com/users/jk171505/gists{/gist_id}","starred_url":"https://api.github.com/users/jk171505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jk171505/subscriptions","organizations_url":"https://api.github.com/users/jk171505/orgs","repos_url":"https://api.github.com/users/jk171505/repos","events_url":"https://api.github.com/users/jk171505/events{/privacy}","received_events_url":"https://api.github.com/users/jk171505/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-24T14:29:15Z","updated_at":"2016-11-24T14:29:15Z","closed_at":null,"body":"Every method run after expect assertions are executed immediately, is this expected? If so, is this possible to use a callback with such assertions? I tried to use .waitForElementVisible, but can't find a way to use it with sections in page object...\r\n\r\n**The following code:**\r\n`console.log(new Date());`\r\n`this.expect.section('@datePicker').to.be.present.before(1000);`\r\n`this.click('@input').expect.section('@datePicker').to.be.visible.before(1000);`\r\n`console.log(new Date());`\r\n\r\n**Produces this output:**\r\n`2016-11-24T14:21:52.688Z`\r\n`2016-11-24T14:21:52.693Z`\r\n` ✔ Expected element <Section[name=startDate],Section[name=datePicker]> to be present in 1000ms - element was present in 1082ms`\r\n` ✔ Expected element <Section[name=startDate],Section[name=datePicker]> to be visible in 250ms - condition was met in 1537ms`\r\n\r\n**What I expected to see is:**\r\n`2016-11-24T14:21:52.688Z`\r\n` ✔ Expected element <Section[name=startDate],Section[name=datePicker]> to be present in 1000ms - element was present in 1082ms`\r\n` ✔ Expected element <Section[name=startDate],Section[name=datePicker]> to be visible in 250ms - condition was met in 1537ms`\r\n`2016-11-24T14:21:54.693Z`\r\n"}}
{"actor":{"display_login":"jk171505"}}