{"action":"created","comment":{"url":"https://api.github.com/repos/timbortnik/behave_web/pulls/comments/168138727","pull_request_review_id":96454918,"id":168138727,"diff_hunk":"@@ -0,0 +1,60 @@\n+from behave import when, then\n+from selenium import webdriver\n+from selenium.webdriver.support.wait import WebDriverWait\n+from helpers.icon_in_div_changed import IconInDivChanged\n+from selenium.webdriver.support import expected_conditions as ec\n+from selenium.webdriver.common.by import By\n+\n+\n+FULL_NAME = None\n+driver = webdriver.Chrome\n+status_shortcuts = {'available': 'icon-avail',\n+                    'away': 'icon-xa',\n+                    'do not disturb': 'icon-dnd'}\n+\n+\n+def change_full_name(name):\n+    global FULL_NAME\n+    FULL_NAME = name\n+\n+\n+@when('we get full user name from settings')\n+def get_full_name(context):\n+    global FULL_NAME\n+    FULL_NAME = context.settings_page.full_name()\n+\n+\n+@when('we are in chat window')\n+def step_impl1(context):\n+    context.lobby_page.navigate()\n+\n+\n+@then('we change status to \"away\"')\n+def stat_away(context):\n+    context.wait.until(ec.presence_of_element_located((By.ID, 'status_dropdown')))\n+    context.lobby_page.click_dropdown()\n+    context.lobby_page.click_away()\n+    wait = WebDriverWait(driver, 10)\n+    div = context.lobby_page.find_element_by_username(FULL_NAME)\n+    status_str = wait.until(IconInDivChanged(div, status_shortcuts['available']))\n+    assert status_shortcuts['away'] in status_str\n+\n+\n+@then('we change status to \"do not disturb\"')\n+def stat_dnd(context):\n+    context.lobby_page.click_dropdown()\n+    context.lobby_page.click_do_not_disturb()\n+    wait = WebDriverWait(driver, 10)\n+    div = context.lobby_page.find_element_by_username(FULL_NAME)\n+    status_str = wait.until(IconInDivChanged(div, status_shortcuts['away']))\n+    assert status_shortcuts['do not disturb'] in status_str\n+\n+\n+@then('we change status to \"available\"')\n+def stat_available(context):\n+    context.lobby_page.click_dropdown()\n+    context.lobby_page.click_available()\n+    wait = WebDriverWait(driver, 10)","path":"features/steps/step_checking_status.py","position":57,"original_position":57,"commit_id":"ad88278c5c1708d9a8b4706f9edf406393be8e27","original_commit_id":"ad88278c5c1708d9a8b4706f9edf406393be8e27","user":{"login":"Anedchenko","id":33290664,"avatar_url":"https://avatars0.githubusercontent.com/u/33290664?v=4","gravatar_id":"","url":"https://api.github.com/users/Anedchenko","html_url":"https://github.com/Anedchenko","followers_url":"https://api.github.com/users/Anedchenko/followers","following_url":"https://api.github.com/users/Anedchenko/following{/other_user}","gists_url":"https://api.github.com/users/Anedchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Anedchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anedchenko/subscriptions","organizations_url":"https://api.github.com/users/Anedchenko/orgs","repos_url":"https://api.github.com/users/Anedchenko/repos","events_url":"https://api.github.com/users/Anedchenko/events{/privacy}","received_events_url":"https://api.github.com/users/Anedchenko/received_events","type":"User","site_admin":false},"body":"Fixed. Thank you.","created_at":"2018-02-14T10:51:33Z","updated_at":"2018-02-14T10:51:33Z","html_url":"https://github.com/timbortnik/behave_web/pull/20#discussion_r168138727","pull_request_url":"https://api.github.com/repos/timbortnik/behave_web/pulls/20","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/timbortnik/behave_web/pulls/comments/168138727"},"html":{"href":"https://github.com/timbortnik/behave_web/pull/20#discussion_r168138727"},"pull_request":{"href":"https://api.github.com/repos/timbortnik/behave_web/pulls/20"}},"in_reply_to_id":166873554},"pull_request":{"url":"https://api.github.com/repos/timbortnik/behave_web/pulls/20","id":166396139,"html_url":"https://github.com/timbortnik/behave_web/pull/20","diff_url":"https://github.com/timbortnik/behave_web/pull/20.diff","patch_url":"https://github.com/timbortnik/behave_web/pull/20.patch","issue_url":"https://api.github.com/repos/timbortnik/behave_web/issues/20","number":20,"state":"open","locked":false,"title":"Checking user name on people page","user":{"login":"Anedchenko","id":33290664,"avatar_url":"https://avatars0.githubusercontent.com/u/33290664?v=4","gravatar_id":"","url":"https://api.github.com/users/Anedchenko","html_url":"https://github.com/Anedchenko","followers_url":"https://api.github.com/users/Anedchenko/followers","following_url":"https://api.github.com/users/Anedchenko/following{/other_user}","gists_url":"https://api.github.com/users/Anedchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Anedchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anedchenko/subscriptions","organizations_url":"https://api.github.com/users/Anedchenko/orgs","repos_url":"https://api.github.com/users/Anedchenko/repos","events_url":"https://api.github.com/users/Anedchenko/events{/privacy}","received_events_url":"https://api.github.com/users/Anedchenko/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-31T22:38:56Z","updated_at":"2018-02-14T10:51:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e61180df6b8bc10c2b0c8c4b198a889c362a698","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/timbortnik/behave_web/pulls/20/commits","review_comments_url":"https://api.github.com/repos/timbortnik/behave_web/pulls/20/comments","review_comment_url":"https://api.github.com/repos/timbortnik/behave_web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/timbortnik/behave_web/issues/20/comments","statuses_url":"https://api.github.com/repos/timbortnik/behave_web/statuses/ad88278c5c1708d9a8b4706f9edf406393be8e27","head":{"label":"timbortnik:checking_user_name_on_people_page","ref":"checking_user_name_on_people_page","sha":"ad88278c5c1708d9a8b4706f9edf406393be8e27","user":{"login":"timbortnik","id":2828549,"avatar_url":"https://avatars1.githubusercontent.com/u/2828549?v=4","gravatar_id":"","url":"https://api.github.com/users/timbortnik","html_url":"https://github.com/timbortnik","followers_url":"https://api.github.com/users/timbortnik/followers","following_url":"https://api.github.com/users/timbortnik/following{/other_user}","gists_url":"https://api.github.com/users/timbortnik/gists{/gist_id}","starred_url":"https://api.github.com/users/timbortnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbortnik/subscriptions","organizations_url":"https://api.github.com/users/timbortnik/orgs","repos_url":"https://api.github.com/users/timbortnik/repos","events_url":"https://api.github.com/users/timbortnik/events{/privacy}","received_events_url":"https://api.github.com/users/timbortnik/received_events","type":"User","site_admin":false},"repo":{"id":41996054,"name":"behave_web","full_name":"timbortnik/behave_web","owner":{"login":"timbortnik","id":2828549,"avatar_url":"https://avatars1.githubusercontent.com/u/2828549?v=4","gravatar_id":"","url":"https://api.github.com/users/timbortnik","html_url":"https://github.com/timbortnik","followers_url":"https://api.github.com/users/timbortnik/followers","following_url":"https://api.github.com/users/timbortnik/following{/other_user}","gists_url":"https://api.github.com/users/timbortnik/gists{/gist_id}","starred_url":"https://api.github.com/users/timbortnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbortnik/subscriptions","organizations_url":"https://api.github.com/users/timbortnik/orgs","repos_url":"https://api.github.com/users/timbortnik/repos","events_url":"https://api.github.com/users/timbortnik/events{/privacy}","received_events_url":"https://api.github.com/users/timbortnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timbortnik/behave_web","description":"Pyhon Behave Selenium Web demo","fork":false,"url":"https://api.github.com/repos/timbortnik/behave_web","forks_url":"https://api.github.com/repos/timbortnik/behave_web/forks","keys_url":"https://api.github.com/repos/timbortnik/behave_web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timbortnik/behave_web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timbortnik/behave_web/teams","hooks_url":"https://api.github.com/repos/timbortnik/behave_web/hooks","issue_events_url":"https://api.github.com/repos/timbortnik/behave_web/issues/events{/number}","events_url":"https://api.github.com/repos/timbortnik/behave_web/events","assignees_url":"https://api.github.com/repos/timbortnik/behave_web/assignees{/user}","branches_url":"https://api.github.com/repos/timbortnik/behave_web/branches{/branch}","tags_url":"https://api.github.com/repos/timbortnik/behave_web/tags","blobs_url":"https://api.github.com/repos/timbortnik/behave_web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timbortnik/behave_web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timbortnik/behave_web/git/refs{/sha}","trees_url":"https://api.github.com/repos/timbortnik/behave_web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timbortnik/behave_web/statuses/{sha}","languages_url":"https://api.github.com/repos/timbortnik/behave_web/languages","stargazers_url":"https://api.github.com/repos/timbortnik/behave_web/stargazers","contributors_url":"https://api.github.com/repos/timbortnik/behave_web/contributors","subscribers_url":"https://api.github.com/repos/timbortnik/behave_web/subscribers","subscription_url":"https://api.github.com/repos/timbortnik/behave_web/subscription","commits_url":"https://api.github.com/repos/timbortnik/behave_web/commits{/sha}","git_commits_url":"https://api.github.com/repos/timbortnik/behave_web/git/commits{/sha}","comments_url":"https://api.github.com/repos/timbortnik/behave_web/comments{/number}","issue_comment_url":"https://api.github.com/repos/timbortnik/behave_web/issues/comments{/number}","contents_url":"https://api.github.com/repos/timbortnik/behave_web/contents/{+path}","compare_url":"https://api.github.com/repos/timbortnik/behave_web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timbortnik/behave_web/merges","archive_url":"https://api.github.com/repos/timbortnik/behave_web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timbortnik/behave_web/downloads","issues_url":"https://api.github.com/repos/timbortnik/behave_web/issues{/number}","pulls_url":"https://api.github.com/repos/timbortnik/behave_web/pulls{/number}","milestones_url":"https://api.github.com/repos/timbortnik/behave_web/milestones{/number}","notifications_url":"https://api.github.com/repos/timbortnik/behave_web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timbortnik/behave_web/labels{/name}","releases_url":"https://api.github.com/repos/timbortnik/behave_web/releases{/id}","deployments_url":"https://api.github.com/repos/timbortnik/behave_web/deployments","created_at":"2015-09-06T09:05:42Z","updated_at":"2018-01-11T21:29:43Z","pushed_at":"2018-02-14T10:31:22Z","git_url":"git://github.com/timbortnik/behave_web.git","ssh_url":"git@github.com:timbortnik/behave_web.git","clone_url":"https://github.com/timbortnik/behave_web.git","svn_url":"https://github.com/timbortnik/behave_web","homepage":"","size":354,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"timbortnik:master","ref":"master","sha":"af79d771c3521aa27d9d0de5825009e0eb118c5b","user":{"login":"timbortnik","id":2828549,"avatar_url":"https://avatars1.githubusercontent.com/u/2828549?v=4","gravatar_id":"","url":"https://api.github.com/users/timbortnik","html_url":"https://github.com/timbortnik","followers_url":"https://api.github.com/users/timbortnik/followers","following_url":"https://api.github.com/users/timbortnik/following{/other_user}","gists_url":"https://api.github.com/users/timbortnik/gists{/gist_id}","starred_url":"https://api.github.com/users/timbortnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbortnik/subscriptions","organizations_url":"https://api.github.com/users/timbortnik/orgs","repos_url":"https://api.github.com/users/timbortnik/repos","events_url":"https://api.github.com/users/timbortnik/events{/privacy}","received_events_url":"https://api.github.com/users/timbortnik/received_events","type":"User","site_admin":false},"repo":{"id":41996054,"name":"behave_web","full_name":"timbortnik/behave_web","owner":{"login":"timbortnik","id":2828549,"avatar_url":"https://avatars1.githubusercontent.com/u/2828549?v=4","gravatar_id":"","url":"https://api.github.com/users/timbortnik","html_url":"https://github.com/timbortnik","followers_url":"https://api.github.com/users/timbortnik/followers","following_url":"https://api.github.com/users/timbortnik/following{/other_user}","gists_url":"https://api.github.com/users/timbortnik/gists{/gist_id}","starred_url":"https://api.github.com/users/timbortnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbortnik/subscriptions","organizations_url":"https://api.github.com/users/timbortnik/orgs","repos_url":"https://api.github.com/users/timbortnik/repos","events_url":"https://api.github.com/users/timbortnik/events{/privacy}","received_events_url":"https://api.github.com/users/timbortnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timbortnik/behave_web","description":"Pyhon Behave Selenium Web demo","fork":false,"url":"https://api.github.com/repos/timbortnik/behave_web","forks_url":"https://api.github.com/repos/timbortnik/behave_web/forks","keys_url":"https://api.github.com/repos/timbortnik/behave_web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timbortnik/behave_web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timbortnik/behave_web/teams","hooks_url":"https://api.github.com/repos/timbortnik/behave_web/hooks","issue_events_url":"https://api.github.com/repos/timbortnik/behave_web/issues/events{/number}","events_url":"https://api.github.com/repos/timbortnik/behave_web/events","assignees_url":"https://api.github.com/repos/timbortnik/behave_web/assignees{/user}","branches_url":"https://api.github.com/repos/timbortnik/behave_web/branches{/branch}","tags_url":"https://api.github.com/repos/timbortnik/behave_web/tags","blobs_url":"https://api.github.com/repos/timbortnik/behave_web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timbortnik/behave_web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timbortnik/behave_web/git/refs{/sha}","trees_url":"https://api.github.com/repos/timbortnik/behave_web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timbortnik/behave_web/statuses/{sha}","languages_url":"https://api.github.com/repos/timbortnik/behave_web/languages","stargazers_url":"https://api.github.com/repos/timbortnik/behave_web/stargazers","contributors_url":"https://api.github.com/repos/timbortnik/behave_web/contributors","subscribers_url":"https://api.github.com/repos/timbortnik/behave_web/subscribers","subscription_url":"https://api.github.com/repos/timbortnik/behave_web/subscription","commits_url":"https://api.github.com/repos/timbortnik/behave_web/commits{/sha}","git_commits_url":"https://api.github.com/repos/timbortnik/behave_web/git/commits{/sha}","comments_url":"https://api.github.com/repos/timbortnik/behave_web/comments{/number}","issue_comment_url":"https://api.github.com/repos/timbortnik/behave_web/issues/comments{/number}","contents_url":"https://api.github.com/repos/timbortnik/behave_web/contents/{+path}","compare_url":"https://api.github.com/repos/timbortnik/behave_web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timbortnik/behave_web/merges","archive_url":"https://api.github.com/repos/timbortnik/behave_web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timbortnik/behave_web/downloads","issues_url":"https://api.github.com/repos/timbortnik/behave_web/issues{/number}","pulls_url":"https://api.github.com/repos/timbortnik/behave_web/pulls{/number}","milestones_url":"https://api.github.com/repos/timbortnik/behave_web/milestones{/number}","notifications_url":"https://api.github.com/repos/timbortnik/behave_web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timbortnik/behave_web/labels{/name}","releases_url":"https://api.github.com/repos/timbortnik/behave_web/releases{/id}","deployments_url":"https://api.github.com/repos/timbortnik/behave_web/deployments","created_at":"2015-09-06T09:05:42Z","updated_at":"2018-01-11T21:29:43Z","pushed_at":"2018-02-14T10:31:22Z","git_url":"git://github.com/timbortnik/behave_web.git","ssh_url":"git@github.com:timbortnik/behave_web.git","clone_url":"https://github.com/timbortnik/behave_web.git","svn_url":"https://github.com/timbortnik/behave_web","homepage":"","size":354,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/timbortnik/behave_web/pulls/20"},"html":{"href":"https://github.com/timbortnik/behave_web/pull/20"},"issue":{"href":"https://api.github.com/repos/timbortnik/behave_web/issues/20"},"comments":{"href":"https://api.github.com/repos/timbortnik/behave_web/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/timbortnik/behave_web/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/timbortnik/behave_web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/timbortnik/behave_web/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/timbortnik/behave_web/statuses/ad88278c5c1708d9a8b4706f9edf406393be8e27"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Anedchenko"}}