{"action":"created","comment":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/69101787","id":69101787,"diff_hunk":"@@ -256,10 +328,37 @@ export default class TestRun extends Session {\n             this._fulfillCurrentDriverTask(driverStatus);\n         }\n \n-        return this.currentDriverTask ? this.currentDriverTask.command : null;\n+        return this._getNextTaskCommand();\n     }\n \n     // Execute command\n+    _enqueueHandleDialogCommand (command, callsite) {\n+        var dialogType     = command.type.replace(/handle|dialog|-/g, '');\n+        var dialog         = new ExpectedDialog(dialogType, command.returnValue);\n+        var length         = this.driverTaskQueue.length;\n+        var relatedCommand = null;\n+        var curCommand     = null;\n+\n+        // NOTE: we should find a command that triggered the native dialog to add information on how to handle\n+        // this dialog. If there's no such a command, we assume that the first page load invoked the native\n+        // dialog. We save information about the expected initial dialogs only before the first page load.\n+        for (var i = length - 1; i >= 0; i--) {\n+            curCommand = this.driverTaskQueue[i].command;\n+\n+            if (!isHandleDialogCommand(curCommand) && !isObservationCommand(curCommand)) {","path":"src/test-run/index.js","position":210,"original_position":210,"commit_id":"a42a627e04aaeb2570e9dd51890a587b31dc88bf","original_commit_id":"a42a627e04aaeb2570e9dd51890a587b31dc88bf","user":{"login":"inikulin","id":453071,"avatar_url":"https://avatars.githubusercontent.com/u/453071?v=3","gravatar_id":"","url":"https://api.github.com/users/inikulin","html_url":"https://github.com/inikulin","followers_url":"https://api.github.com/users/inikulin/followers","following_url":"https://api.github.com/users/inikulin/following{/other_user}","gists_url":"https://api.github.com/users/inikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/inikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inikulin/subscriptions","organizations_url":"https://api.github.com/users/inikulin/orgs","repos_url":"https://api.github.com/users/inikulin/repos","events_url":"https://api.github.com/users/inikulin/events{/privacy}","received_events_url":"https://api.github.com/users/inikulin/received_events","type":"User","site_admin":false},"body":"`currentCommand`","created_at":"2016-06-30T09:33:00Z","updated_at":"2016-06-30T09:33:00Z","html_url":"https://github.com/DevExpress/testcafe/pull/621#discussion_r69101787","pull_request_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/621","_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/69101787"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/621#discussion_r69101787"},"pull_request":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/621"}}},"pull_request":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/621","id":75280860,"html_url":"https://github.com/DevExpress/testcafe/pull/621","diff_url":"https://github.com/DevExpress/testcafe/pull/621.diff","patch_url":"https://github.com/DevExpress/testcafe/pull/621.patch","issue_url":"https://api.github.com/repos/DevExpress/testcafe/issues/621","number":621,"state":"open","locked":false,"title":"First part of native dialogs handling implemented (part of #451)","user":{"login":"helen-dikareva","id":12034551,"avatar_url":"https://avatars.githubusercontent.com/u/12034551?v=3","gravatar_id":"","url":"https://api.github.com/users/helen-dikareva","html_url":"https://github.com/helen-dikareva","followers_url":"https://api.github.com/users/helen-dikareva/followers","following_url":"https://api.github.com/users/helen-dikareva/following{/other_user}","gists_url":"https://api.github.com/users/helen-dikareva/gists{/gist_id}","starred_url":"https://api.github.com/users/helen-dikareva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helen-dikareva/subscriptions","organizations_url":"https://api.github.com/users/helen-dikareva/orgs","repos_url":"https://api.github.com/users/helen-dikareva/repos","events_url":"https://api.github.com/users/helen-dikareva/events{/privacy}","received_events_url":"https://api.github.com/users/helen-dikareva/received_events","type":"User","site_admin":false},"body":"Without supporting of dialogs in iframes and switching command\r\n/cc @inikulin @AlexanderMoskovkin @VasilyStrelyaev ","created_at":"2016-06-27T09:30:58Z","updated_at":"2016-06-30T09:33:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aef2ac5efe8b38b923861a53acbba0671748ddea","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/621/commits","review_comments_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/621/comments","review_comment_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/issues/621/comments","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/a42a627e04aaeb2570e9dd51890a587b31dc88bf","head":{"label":"helen-dikareva:nativeDialogReserve","ref":"nativeDialogReserve","sha":"a42a627e04aaeb2570e9dd51890a587b31dc88bf","user":{"login":"helen-dikareva","id":12034551,"avatar_url":"https://avatars.githubusercontent.com/u/12034551?v=3","gravatar_id":"","url":"https://api.github.com/users/helen-dikareva","html_url":"https://github.com/helen-dikareva","followers_url":"https://api.github.com/users/helen-dikareva/followers","following_url":"https://api.github.com/users/helen-dikareva/following{/other_user}","gists_url":"https://api.github.com/users/helen-dikareva/gists{/gist_id}","starred_url":"https://api.github.com/users/helen-dikareva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helen-dikareva/subscriptions","organizations_url":"https://api.github.com/users/helen-dikareva/orgs","repos_url":"https://api.github.com/users/helen-dikareva/repos","events_url":"https://api.github.com/users/helen-dikareva/events{/privacy}","received_events_url":"https://api.github.com/users/helen-dikareva/received_events","type":"User","site_admin":false},"repo":{"id":41913398,"name":"testcafe-phoenix","full_name":"helen-dikareva/testcafe-phoenix","owner":{"login":"helen-dikareva","id":12034551,"avatar_url":"https://avatars.githubusercontent.com/u/12034551?v=3","gravatar_id":"","url":"https://api.github.com/users/helen-dikareva","html_url":"https://github.com/helen-dikareva","followers_url":"https://api.github.com/users/helen-dikareva/followers","following_url":"https://api.github.com/users/helen-dikareva/following{/other_user}","gists_url":"https://api.github.com/users/helen-dikareva/gists{/gist_id}","starred_url":"https://api.github.com/users/helen-dikareva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helen-dikareva/subscriptions","organizations_url":"https://api.github.com/users/helen-dikareva/orgs","repos_url":"https://api.github.com/users/helen-dikareva/repos","events_url":"https://api.github.com/users/helen-dikareva/events{/privacy}","received_events_url":"https://api.github.com/users/helen-dikareva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/helen-dikareva/testcafe-phoenix","description":"","fork":true,"url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix","forks_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/forks","keys_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/teams","hooks_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/hooks","issue_events_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/events","assignees_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/tags","blobs_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/languages","stargazers_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/stargazers","contributors_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/contributors","subscribers_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/subscribers","subscription_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/subscription","commits_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/merges","archive_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/downloads","issues_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/labels{/name}","releases_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/releases{/id}","deployments_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/deployments","created_at":"2015-09-04T11:59:28Z","updated_at":"2016-06-17T10:04:41Z","pushed_at":"2016-06-29T14:43:41Z","git_url":"git://github.com/helen-dikareva/testcafe-phoenix.git","ssh_url":"git@github.com:helen-dikareva/testcafe-phoenix.git","clone_url":"https://github.com/helen-dikareva/testcafe-phoenix.git","svn_url":"https://github.com/helen-dikareva/testcafe-phoenix","homepage":null,"size":25996,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DevExpress:master","ref":"master","sha":"0794518e75ce995b0f34a9d5f6e8e4629e38331b","user":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"repo":{"id":34262857,"name":"testcafe","full_name":"DevExpress/testcafe","owner":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevExpress/testcafe","description":"","fork":false,"url":"https://api.github.com/repos/DevExpress/testcafe","forks_url":"https://api.github.com/repos/DevExpress/testcafe/forks","keys_url":"https://api.github.com/repos/DevExpress/testcafe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevExpress/testcafe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevExpress/testcafe/teams","hooks_url":"https://api.github.com/repos/DevExpress/testcafe/hooks","issue_events_url":"https://api.github.com/repos/DevExpress/testcafe/issues/events{/number}","events_url":"https://api.github.com/repos/DevExpress/testcafe/events","assignees_url":"https://api.github.com/repos/DevExpress/testcafe/assignees{/user}","branches_url":"https://api.github.com/repos/DevExpress/testcafe/branches{/branch}","tags_url":"https://api.github.com/repos/DevExpress/testcafe/tags","blobs_url":"https://api.github.com/repos/DevExpress/testcafe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevExpress/testcafe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevExpress/testcafe/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevExpress/testcafe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/{sha}","languages_url":"https://api.github.com/repos/DevExpress/testcafe/languages","stargazers_url":"https://api.github.com/repos/DevExpress/testcafe/stargazers","contributors_url":"https://api.github.com/repos/DevExpress/testcafe/contributors","subscribers_url":"https://api.github.com/repos/DevExpress/testcafe/subscribers","subscription_url":"https://api.github.com/repos/DevExpress/testcafe/subscription","commits_url":"https://api.github.com/repos/DevExpress/testcafe/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevExpress/testcafe/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevExpress/testcafe/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevExpress/testcafe/contents/{+path}","compare_url":"https://api.github.com/repos/DevExpress/testcafe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevExpress/testcafe/merges","archive_url":"https://api.github.com/repos/DevExpress/testcafe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevExpress/testcafe/downloads","issues_url":"https://api.github.com/repos/DevExpress/testcafe/issues{/number}","pulls_url":"https://api.github.com/repos/DevExpress/testcafe/pulls{/number}","milestones_url":"https://api.github.com/repos/DevExpress/testcafe/milestones{/number}","notifications_url":"https://api.github.com/repos/DevExpress/testcafe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevExpress/testcafe/labels{/name}","releases_url":"https://api.github.com/repos/DevExpress/testcafe/releases{/id}","deployments_url":"https://api.github.com/repos/DevExpress/testcafe/deployments","created_at":"2015-04-20T13:43:28Z","updated_at":"2016-05-06T11:53:58Z","pushed_at":"2016-06-30T09:22:24Z","git_url":"git://github.com/DevExpress/testcafe.git","ssh_url":"git@github.com:DevExpress/testcafe.git","clone_url":"https://github.com/DevExpress/testcafe.git","svn_url":"https://github.com/DevExpress/testcafe","homepage":null,"size":26305,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":61,"forks":14,"open_issues":61,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/621"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/621"},"issue":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/621"},"comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/DevExpress/testcafe/statuses/a42a627e04aaeb2570e9dd51890a587b31dc88bf"}}}}
{"actor":{"display_login":"inikulin"}}