{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/dusk/issues/594","repository_url":"https://api.github.com/repos/laravel/dusk","labels_url":"https://api.github.com/repos/laravel/dusk/issues/594/labels{/name}","comments_url":"https://api.github.com/repos/laravel/dusk/issues/594/comments","events_url":"https://api.github.com/repos/laravel/dusk/issues/594/events","html_url":"https://github.com/laravel/dusk/issues/594","id":393653571,"node_id":"MDU6SXNzdWUzOTM2NTM1NzE=","number":594,"title":"waitUntil not working as expected","user":{"login":"hardikdangar","id":197406,"node_id":"MDQ6VXNlcjE5NzQwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/197406?v=4","gravatar_id":"","url":"https://api.github.com/users/hardikdangar","html_url":"https://github.com/hardikdangar","followers_url":"https://api.github.com/users/hardikdangar/followers","following_url":"https://api.github.com/users/hardikdangar/following{/other_user}","gists_url":"https://api.github.com/users/hardikdangar/gists{/gist_id}","starred_url":"https://api.github.com/users/hardikdangar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardikdangar/subscriptions","organizations_url":"https://api.github.com/users/hardikdangar/orgs","repos_url":"https://api.github.com/users/hardikdangar/repos","events_url":"https://api.github.com/users/hardikdangar/events{/privacy}","received_events_url":"https://api.github.com/users/hardikdangar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-22T08:06:00Z","updated_at":"2018-12-22T16:11:54Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\ni am testing App via dusk. it has this button which checks validation and fires ajax and gives form if suceeses and error message if fails. To intercept ajax request i am adding variable  AppdataLoaded = false and when ajax finishes it will be true using $browser->script. this works but i am having trouble checking AppdataLoaded variable via waitUntil, as per document i should be able to check if AppdataLoaded == true but it does not work. Here is the code,\r\n\r\n```\r\n        $browser->type('#search_value',$searchtext);\r\n\r\n        $test = $browser->script('\r\n\r\n            var AppdataLoaded = false;\r\n            $( document ).ajaxComplete(function() {\r\n                AppdataLoaded = true;\r\n                $(\".subheadingtext\").text(\"loaded\");\r\n            });\r\n        \r\n        ');\r\n\r\n        $browser->press('Continue');\r\n\r\n        $browser->waitUntil('AppdataLoaded == true',10);\r\n\r\n```\r\n\r\n\r\nFacebook\\WebDriver\\Exception\\TimeOutException: Waited 10 seconds for callback. I am not sure if i am understanding docs wrong or there is issue with waituntill. I tried $browser->waitUntil('AppdataLoaded',10); first but it also it did not work.\r\n\r\nCan anyone point me what i am missing here. If its not right way to test then any other way to test this ?"},"comment":{"url":"https://api.github.com/repos/laravel/dusk/issues/comments/449580640","html_url":"https://github.com/laravel/dusk/issues/594#issuecomment-449580640","issue_url":"https://api.github.com/repos/laravel/dusk/issues/594","id":449580640,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTU4MDY0MA==","user":{"login":"staudenmeir","id":1853169,"node_id":"MDQ6VXNlcjE4NTMxNjk=","avatar_url":"https://avatars3.githubusercontent.com/u/1853169?v=4","gravatar_id":"","url":"https://api.github.com/users/staudenmeir","html_url":"https://github.com/staudenmeir","followers_url":"https://api.github.com/users/staudenmeir/followers","following_url":"https://api.github.com/users/staudenmeir/following{/other_user}","gists_url":"https://api.github.com/users/staudenmeir/gists{/gist_id}","starred_url":"https://api.github.com/users/staudenmeir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staudenmeir/subscriptions","organizations_url":"https://api.github.com/users/staudenmeir/orgs","repos_url":"https://api.github.com/users/staudenmeir/repos","events_url":"https://api.github.com/users/staudenmeir/events{/privacy}","received_events_url":"https://api.github.com/users/staudenmeir/received_events","type":"User","site_admin":false},"created_at":"2018-12-22T16:11:54Z","updated_at":"2018-12-22T16:11:54Z","author_association":"CONTRIBUTOR","body":"https://stackoverflow.com/a/25520719/4848587"}}
{"actor":{"display_login":"staudenmeir"}}