{"action":"created","comment":{"url":"https://api.github.com/repos/autoschool/practice2016/pulls/comments/59819836","id":59819836,"diff_hunk":"@@ -0,0 +1,51 @@\n+package ru.qatools.school.webtests;\n+\n+import org.junit.Before;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import ru.qatools.school.pages.MainPage;\n+import ru.qatools.school.rules.WebDriverRule;\n+import ru.qatools.school.steps.websteps.DefaultSteps;\n+import ru.yandex.qatools.allure.annotations.Title;\n+import com.tngtech.java.junit.dataprovider.DataProvider;\n+import com.tngtech.java.junit.dataprovider.DataProviderRunner;\n+import com.tngtech.java.junit.dataprovider.UseDataProvider;\n+\n+@RunWith(DataProviderRunner.class)\n+public class AddWidgetButtonTest {\n+\n+    @DataProvider\n+    public static Object[][] dataProviderNumber() {\n+        return new Object[][]{\n+                {1},{2},{3},{4},{5},{6},{7},{8},{9},{10}\n+        };\n+    }\n+\n+    public static final String CITY = \"Moscow\";\n+\n+    private DefaultSteps defaultSteps;\n+\n+    @Rule\n+    public WebDriverRule webDriverRule = new WebDriverRule();\n+\n+    @Before\n+    public void initSteps() {\n+        defaultSteps = new DefaultSteps(webDriverRule.getDriver());\n+    }\n+\n+    @Test\n+    @Title(\"Жмем на кнопку n раз, должно быть n+1 виджетов\")\n+    @UseDataProvider(\"dataProviderNumber\")\n+    public void shouldSeeNPlusOneWidgetsAfterNClickByAddButton(int n) {\n+        defaultSteps.openMainPageWithCity(CITY);\n+        defaultSteps.clickAddWidgetButtonNTimes(n);\n+        defaultSteps.widgetsAmountShouldBe(n+1);\n+    }","path":"commons-module/src/test/java/ru/qatools/school/webtests/AddWidgetButtonTest.java","position":44,"original_position":44,"commit_id":"33a8217756634bf405d4395c987e930fcdbfabdd","original_commit_id":"33a8217756634bf405d4395c987e930fcdbfabdd","user":{"login":"theBaldSoprano","id":18193842,"avatar_url":"https://avatars.githubusercontent.com/u/18193842?v=3","gravatar_id":"","url":"https://api.github.com/users/theBaldSoprano","html_url":"https://github.com/theBaldSoprano","followers_url":"https://api.github.com/users/theBaldSoprano/followers","following_url":"https://api.github.com/users/theBaldSoprano/following{/other_user}","gists_url":"https://api.github.com/users/theBaldSoprano/gists{/gist_id}","starred_url":"https://api.github.com/users/theBaldSoprano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theBaldSoprano/subscriptions","organizations_url":"https://api.github.com/users/theBaldSoprano/orgs","repos_url":"https://api.github.com/users/theBaldSoprano/repos","events_url":"https://api.github.com/users/theBaldSoprano/events{/privacy}","received_events_url":"https://api.github.com/users/theBaldSoprano/received_events","type":"User","site_admin":false},"body":"вот красивый тест. как мне кажется","created_at":"2016-04-15T02:25:07Z","updated_at":"2016-04-15T02:25:07Z","html_url":"https://github.com/autoschool/practice2016/pull/31#discussion_r59819836","pull_request_url":"https://api.github.com/repos/autoschool/practice2016/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/autoschool/practice2016/pulls/comments/59819836"},"html":{"href":"https://github.com/autoschool/practice2016/pull/31#discussion_r59819836"},"pull_request":{"href":"https://api.github.com/repos/autoschool/practice2016/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/autoschool/practice2016/pulls/31","id":66563454,"html_url":"https://github.com/autoschool/practice2016/pull/31","diff_url":"https://github.com/autoschool/practice2016/pull/31.diff","patch_url":"https://github.com/autoschool/practice2016/pull/31.patch","issue_url":"https://api.github.com/repos/autoschool/practice2016/issues/31","number":31,"state":"open","locked":false,"title":"Мой тест","user":{"login":"vananos","id":16006376,"avatar_url":"https://avatars.githubusercontent.com/u/16006376?v=3","gravatar_id":"","url":"https://api.github.com/users/vananos","html_url":"https://github.com/vananos","followers_url":"https://api.github.com/users/vananos/followers","following_url":"https://api.github.com/users/vananos/following{/other_user}","gists_url":"https://api.github.com/users/vananos/gists{/gist_id}","starred_url":"https://api.github.com/users/vananos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vananos/subscriptions","organizations_url":"https://api.github.com/users/vananos/orgs","repos_url":"https://api.github.com/users/vananos/repos","events_url":"https://api.github.com/users/vananos/events{/privacy}","received_events_url":"https://api.github.com/users/vananos/received_events","type":"User","site_admin":false},"body":"Судя по моим тестам погода виджет погоды работает не совсем корректно, проверил руками, действительно он так работает, или он только по России погоду показывает?\r\nОшибки при тестах:\r\nAssertionError: Expected: is \"Kiev\" but: was \"Pozh\"\r\nAssertionError: Expected: is \"Berlin\" but: was \"Troitsk\"\r\nAssertionError: Expected: is \"New York\" but: was \"Albany\" \r\n\r\nВ первый раз не все закоммитил, сейчас вроде все залил на github ;)\r\n\r\n","created_at":"2016-04-14T22:19:46Z","updated_at":"2016-04-15T02:25:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/autoschool/practice2016/pulls/31/commits","review_comments_url":"https://api.github.com/repos/autoschool/practice2016/pulls/31/comments","review_comment_url":"https://api.github.com/repos/autoschool/practice2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/autoschool/practice2016/issues/31/comments","statuses_url":"https://api.github.com/repos/autoschool/practice2016/statuses/33a8217756634bf405d4395c987e930fcdbfabdd","head":{"label":"vananos:master","ref":"master","sha":"33a8217756634bf405d4395c987e930fcdbfabdd","user":{"login":"vananos","id":16006376,"avatar_url":"https://avatars.githubusercontent.com/u/16006376?v=3","gravatar_id":"","url":"https://api.github.com/users/vananos","html_url":"https://github.com/vananos","followers_url":"https://api.github.com/users/vananos/followers","following_url":"https://api.github.com/users/vananos/following{/other_user}","gists_url":"https://api.github.com/users/vananos/gists{/gist_id}","starred_url":"https://api.github.com/users/vananos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vananos/subscriptions","organizations_url":"https://api.github.com/users/vananos/orgs","repos_url":"https://api.github.com/users/vananos/repos","events_url":"https://api.github.com/users/vananos/events{/privacy}","received_events_url":"https://api.github.com/users/vananos/received_events","type":"User","site_admin":false},"repo":{"id":55712751,"name":"practice2016","full_name":"vananos/practice2016","owner":{"login":"vananos","id":16006376,"avatar_url":"https://avatars.githubusercontent.com/u/16006376?v=3","gravatar_id":"","url":"https://api.github.com/users/vananos","html_url":"https://github.com/vananos","followers_url":"https://api.github.com/users/vananos/followers","following_url":"https://api.github.com/users/vananos/following{/other_user}","gists_url":"https://api.github.com/users/vananos/gists{/gist_id}","starred_url":"https://api.github.com/users/vananos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vananos/subscriptions","organizations_url":"https://api.github.com/users/vananos/orgs","repos_url":"https://api.github.com/users/vananos/repos","events_url":"https://api.github.com/users/vananos/events{/privacy}","received_events_url":"https://api.github.com/users/vananos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vananos/practice2016","description":"Practical part of lessons","fork":true,"url":"https://api.github.com/repos/vananos/practice2016","forks_url":"https://api.github.com/repos/vananos/practice2016/forks","keys_url":"https://api.github.com/repos/vananos/practice2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vananos/practice2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vananos/practice2016/teams","hooks_url":"https://api.github.com/repos/vananos/practice2016/hooks","issue_events_url":"https://api.github.com/repos/vananos/practice2016/issues/events{/number}","events_url":"https://api.github.com/repos/vananos/practice2016/events","assignees_url":"https://api.github.com/repos/vananos/practice2016/assignees{/user}","branches_url":"https://api.github.com/repos/vananos/practice2016/branches{/branch}","tags_url":"https://api.github.com/repos/vananos/practice2016/tags","blobs_url":"https://api.github.com/repos/vananos/practice2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vananos/practice2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vananos/practice2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/vananos/practice2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vananos/practice2016/statuses/{sha}","languages_url":"https://api.github.com/repos/vananos/practice2016/languages","stargazers_url":"https://api.github.com/repos/vananos/practice2016/stargazers","contributors_url":"https://api.github.com/repos/vananos/practice2016/contributors","subscribers_url":"https://api.github.com/repos/vananos/practice2016/subscribers","subscription_url":"https://api.github.com/repos/vananos/practice2016/subscription","commits_url":"https://api.github.com/repos/vananos/practice2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/vananos/practice2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/vananos/practice2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/vananos/practice2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/vananos/practice2016/contents/{+path}","compare_url":"https://api.github.com/repos/vananos/practice2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vananos/practice2016/merges","archive_url":"https://api.github.com/repos/vananos/practice2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vananos/practice2016/downloads","issues_url":"https://api.github.com/repos/vananos/practice2016/issues{/number}","pulls_url":"https://api.github.com/repos/vananos/practice2016/pulls{/number}","milestones_url":"https://api.github.com/repos/vananos/practice2016/milestones{/number}","notifications_url":"https://api.github.com/repos/vananos/practice2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vananos/practice2016/labels{/name}","releases_url":"https://api.github.com/repos/vananos/practice2016/releases{/id}","deployments_url":"https://api.github.com/repos/vananos/practice2016/deployments","created_at":"2016-04-07T17:04:55Z","updated_at":"2016-04-07T17:04:56Z","pushed_at":"2016-04-14T22:28:33Z","git_url":"git://github.com/vananos/practice2016.git","ssh_url":"git@github.com:vananos/practice2016.git","clone_url":"https://github.com/vananos/practice2016.git","svn_url":"https://github.com/vananos/practice2016","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"autoschool:master","ref":"master","sha":"e6fd5578ac6e31a58bdc3cee569e890e57f9727e","user":{"login":"autoschool","id":9036536,"avatar_url":"https://avatars.githubusercontent.com/u/9036536?v=3","gravatar_id":"","url":"https://api.github.com/users/autoschool","html_url":"https://github.com/autoschool","followers_url":"https://api.github.com/users/autoschool/followers","following_url":"https://api.github.com/users/autoschool/following{/other_user}","gists_url":"https://api.github.com/users/autoschool/gists{/gist_id}","starred_url":"https://api.github.com/users/autoschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autoschool/subscriptions","organizations_url":"https://api.github.com/users/autoschool/orgs","repos_url":"https://api.github.com/users/autoschool/repos","events_url":"https://api.github.com/users/autoschool/events{/privacy}","received_events_url":"https://api.github.com/users/autoschool/received_events","type":"Organization","site_admin":false},"repo":{"id":55640208,"name":"practice2016","full_name":"autoschool/practice2016","owner":{"login":"autoschool","id":9036536,"avatar_url":"https://avatars.githubusercontent.com/u/9036536?v=3","gravatar_id":"","url":"https://api.github.com/users/autoschool","html_url":"https://github.com/autoschool","followers_url":"https://api.github.com/users/autoschool/followers","following_url":"https://api.github.com/users/autoschool/following{/other_user}","gists_url":"https://api.github.com/users/autoschool/gists{/gist_id}","starred_url":"https://api.github.com/users/autoschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autoschool/subscriptions","organizations_url":"https://api.github.com/users/autoschool/orgs","repos_url":"https://api.github.com/users/autoschool/repos","events_url":"https://api.github.com/users/autoschool/events{/privacy}","received_events_url":"https://api.github.com/users/autoschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/autoschool/practice2016","description":"Practical part of lessons","fork":false,"url":"https://api.github.com/repos/autoschool/practice2016","forks_url":"https://api.github.com/repos/autoschool/practice2016/forks","keys_url":"https://api.github.com/repos/autoschool/practice2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/autoschool/practice2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/autoschool/practice2016/teams","hooks_url":"https://api.github.com/repos/autoschool/practice2016/hooks","issue_events_url":"https://api.github.com/repos/autoschool/practice2016/issues/events{/number}","events_url":"https://api.github.com/repos/autoschool/practice2016/events","assignees_url":"https://api.github.com/repos/autoschool/practice2016/assignees{/user}","branches_url":"https://api.github.com/repos/autoschool/practice2016/branches{/branch}","tags_url":"https://api.github.com/repos/autoschool/practice2016/tags","blobs_url":"https://api.github.com/repos/autoschool/practice2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/autoschool/practice2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/autoschool/practice2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/autoschool/practice2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/autoschool/practice2016/statuses/{sha}","languages_url":"https://api.github.com/repos/autoschool/practice2016/languages","stargazers_url":"https://api.github.com/repos/autoschool/practice2016/stargazers","contributors_url":"https://api.github.com/repos/autoschool/practice2016/contributors","subscribers_url":"https://api.github.com/repos/autoschool/practice2016/subscribers","subscription_url":"https://api.github.com/repos/autoschool/practice2016/subscription","commits_url":"https://api.github.com/repos/autoschool/practice2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/autoschool/practice2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/autoschool/practice2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/autoschool/practice2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/autoschool/practice2016/contents/{+path}","compare_url":"https://api.github.com/repos/autoschool/practice2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/autoschool/practice2016/merges","archive_url":"https://api.github.com/repos/autoschool/practice2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/autoschool/practice2016/downloads","issues_url":"https://api.github.com/repos/autoschool/practice2016/issues{/number}","pulls_url":"https://api.github.com/repos/autoschool/practice2016/pulls{/number}","milestones_url":"https://api.github.com/repos/autoschool/practice2016/milestones{/number}","notifications_url":"https://api.github.com/repos/autoschool/practice2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/autoschool/practice2016/labels{/name}","releases_url":"https://api.github.com/repos/autoschool/practice2016/releases{/id}","deployments_url":"https://api.github.com/repos/autoschool/practice2016/deployments","created_at":"2016-04-06T21:00:54Z","updated_at":"2016-04-14T14:03:26Z","pushed_at":"2016-04-15T01:34:38Z","git_url":"git://github.com/autoschool/practice2016.git","ssh_url":"git@github.com:autoschool/practice2016.git","clone_url":"https://github.com/autoschool/practice2016.git","svn_url":"https://github.com/autoschool/practice2016","homepage":null,"size":364,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":9,"forks":28,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/autoschool/practice2016/pulls/31"},"html":{"href":"https://github.com/autoschool/practice2016/pull/31"},"issue":{"href":"https://api.github.com/repos/autoschool/practice2016/issues/31"},"comments":{"href":"https://api.github.com/repos/autoschool/practice2016/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/autoschool/practice2016/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/autoschool/practice2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/autoschool/practice2016/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/autoschool/practice2016/statuses/33a8217756634bf405d4395c987e930fcdbfabdd"}}}}