{"action":"created","comment":{"url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/comments/171961501","pull_request_review_id":100912078,"id":171961501,"diff_hunk":"@@ -104,57 +122,152 @@ public void shouldDisplayMoreForFirstItemOnPopularSectionWhenMouseOver() {\n \n     @Test\n     public void shouldDisplayPriceForFirstItemOnPopularSectionWhenMouseOver() {\n-\n+        mainPage.getPopularLink().click();\n+        mainPage.hoverMouseOverFirstPopularElement();\n+        Assertions.assertTrue(mainPage.getPriceFromFirstItemWhenMouseOver().isDisplayed());\n+        String prize = \"$16.51\";\n+        Assertions.assertEquals(prize, mainPage.getPriceFromFirstItemWhenMouseOver().getText());\n     }\n \n     @Test\n-    public void shouldDisplayPopupAfterClickingOnFirstItemOnPopularSection() {\n-\n+    public void shouldDisplayTitleForSecondItemOnPopularSection() {\n+        mainPage.getPopularLink().click();\n+        String defaultLink = \"http://automationpractice.com/img/p/7/7-home_default.jpg\";\n+        Assertions.assertEquals(defaultLink, mainPage.getPopularOffers().get(1).findElement(By.className(\"replace-2x\")).getAttribute(\"src\"));\n     }\n \n     @Test\n-    public void shouldDisplayMainImageOnViewSection() {\n-\n+    public void shouldDisplayPriceForSecondItemOnPopularSection() {\n+        mainPage.getPopularLink().click();\n+        String price = mainPage.getPriceForItemsOnPopularSection().get(1).findElement(By.className(\"price\")).getText();\n+        Assertions.assertEquals(\"$27.00\", price);\n     }\n \n     @Test\n-    public void shouldDisplayBoxOfImagesOnViewSection() {\n+    public void shouldDisplayQuickViewOnSecondPopularItemWhenMouseOver() {\n+        mainPage.getPopularLink().click();\n+        mainPage.hoverMouseOverSecondPopularElement();\n+        Assertions.assertEquals(1, mainPage.getQuickViewLinks().size());\n+        Assertions.assertTrue(mainPage.getQuickViewLinkOnSecondPopularItem().isDisplayed());\n+        Assertions.assertEquals(\"Quick view\", mainPage.getQuickViewLinkOnSecondPopularItem().getText());\n+    }\n \n+    @Test\n+    public void shouldDisplayAddToCartForSecondItemOnPopularSectionWhenMouseOver() {\n+        mainPage.getPopularLink().click();\n+        mainPage.hoverMouseOverSecondPopularElement();\n+        Assertions.assertTrue(mainPage.getButtonAddToCartOnSecondPopularItem().isDisplayed());\n+        String buttonAddToCart = \"Add to cart\";\n+        Assertions.assertEquals(buttonAddToCart, mainPage.getButtonAddToCartOnSecondPopularItem().getText());\n     }\n \n     @Test\n-    public void shouldDisplayOtherViewAfterClickingArrowLeftOnViewSection() {\n+    public void shouldDisplayMoreForSecondItemOnPopularSectionWhenMouseOver() {\n+        mainPage.getPopularLink().click();\n+        mainPage.hoverMouseOverSecondPopularElement();\n+        Assertions.assertTrue(mainPage.getButtonMoreForSecondItemOnPopularSection().isDisplayed(), \"Button 'More' is not displayed\");\n+        String buttonMore = \"More\";\n+        Assertions.assertEquals(buttonMore, mainPage.getButtonMoreForSecondItemOnPopularSection().getText());\n+    }\n \n+    @Test\n+    public void shouldDisplayPriceForSecondItemOnPopularSectionWhenMouseOver() {\n+        mainPage.getPopularLink().click();\n+        String price = mainPage.getPriceForItemsOnPopularSection().get(1).findElement(By.className(\"price\")).getText();\n+        Assertions.assertEquals(\"$27.00\", price);\n     }\n \n     @Test\n-    public void shouldDisplayNameForItemOnViewSection() {\n+    public void shouldDisplayTitleForLastItemOnPopularSection() {\n+        mainPage.getPopularLink().click();\n+        String title = \"Printed Chiffon Dress\";","path":"src/test/java/com/automationpractice/MainPageFeatureSectionTests.java","position":136,"original_position":136,"commit_id":"6645a7bd604983c6ca180387003b40d060ca53b1","original_commit_id":"6645a7bd604983c6ca180387003b40d060ca53b1","user":{"login":"pgrabowska","id":34381621,"avatar_url":"https://avatars2.githubusercontent.com/u/34381621?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrabowska","html_url":"https://github.com/pgrabowska","followers_url":"https://api.github.com/users/pgrabowska/followers","following_url":"https://api.github.com/users/pgrabowska/following{/other_user}","gists_url":"https://api.github.com/users/pgrabowska/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrabowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrabowska/subscriptions","organizations_url":"https://api.github.com/users/pgrabowska/orgs","repos_url":"https://api.github.com/users/pgrabowska/repos","events_url":"https://api.github.com/users/pgrabowska/events{/privacy}","received_events_url":"https://api.github.com/users/pgrabowska/received_events","type":"User","site_admin":false},"body":"Changed.","created_at":"2018-03-02T21:02:08Z","updated_at":"2018-03-02T21:02:09Z","html_url":"https://github.com/pgrabowska/automationpractice/pull/1#discussion_r171961501","pull_request_url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/comments/171961501"},"html":{"href":"https://github.com/pgrabowska/automationpractice/pull/1#discussion_r171961501"},"pull_request":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1"}},"in_reply_to_id":171957927},"pull_request":{"url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1","id":172597212,"html_url":"https://github.com/pgrabowska/automationpractice/pull/1","diff_url":"https://github.com/pgrabowska/automationpractice/pull/1.diff","patch_url":"https://github.com/pgrabowska/automationpractice/pull/1.patch","issue_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues/1","number":1,"state":"open","locked":false,"title":"Main Page - Feature Section - update of test cases and adding new one…","user":{"login":"pgrabowska","id":34381621,"avatar_url":"https://avatars2.githubusercontent.com/u/34381621?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrabowska","html_url":"https://github.com/pgrabowska","followers_url":"https://api.github.com/users/pgrabowska/followers","following_url":"https://api.github.com/users/pgrabowska/following{/other_user}","gists_url":"https://api.github.com/users/pgrabowska/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrabowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrabowska/subscriptions","organizations_url":"https://api.github.com/users/pgrabowska/orgs","repos_url":"https://api.github.com/users/pgrabowska/repos","events_url":"https://api.github.com/users/pgrabowska/events{/privacy}","received_events_url":"https://api.github.com/users/pgrabowska/received_events","type":"User","site_admin":false},"body":"…s, adding new test class","created_at":"2018-03-02T20:29:45Z","updated_at":"2018-03-02T21:02:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a57bd15885506fd88494721f9eb8b38f4444995f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues/1/comments","statuses_url":"https://api.github.com/repos/pgrabowska/automationpractice/statuses/6645a7bd604983c6ca180387003b40d060ca53b1","head":{"label":"pgrabowska:feature/popular-section","ref":"feature/popular-section","sha":"6645a7bd604983c6ca180387003b40d060ca53b1","user":{"login":"pgrabowska","id":34381621,"avatar_url":"https://avatars2.githubusercontent.com/u/34381621?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrabowska","html_url":"https://github.com/pgrabowska","followers_url":"https://api.github.com/users/pgrabowska/followers","following_url":"https://api.github.com/users/pgrabowska/following{/other_user}","gists_url":"https://api.github.com/users/pgrabowska/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrabowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrabowska/subscriptions","organizations_url":"https://api.github.com/users/pgrabowska/orgs","repos_url":"https://api.github.com/users/pgrabowska/repos","events_url":"https://api.github.com/users/pgrabowska/events{/privacy}","received_events_url":"https://api.github.com/users/pgrabowska/received_events","type":"User","site_admin":false},"repo":{"id":120116828,"name":"automationpractice","full_name":"pgrabowska/automationpractice","owner":{"login":"pgrabowska","id":34381621,"avatar_url":"https://avatars2.githubusercontent.com/u/34381621?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrabowska","html_url":"https://github.com/pgrabowska","followers_url":"https://api.github.com/users/pgrabowska/followers","following_url":"https://api.github.com/users/pgrabowska/following{/other_user}","gists_url":"https://api.github.com/users/pgrabowska/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrabowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrabowska/subscriptions","organizations_url":"https://api.github.com/users/pgrabowska/orgs","repos_url":"https://api.github.com/users/pgrabowska/repos","events_url":"https://api.github.com/users/pgrabowska/events{/privacy}","received_events_url":"https://api.github.com/users/pgrabowska/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pgrabowska/automationpractice","description":null,"fork":false,"url":"https://api.github.com/repos/pgrabowska/automationpractice","forks_url":"https://api.github.com/repos/pgrabowska/automationpractice/forks","keys_url":"https://api.github.com/repos/pgrabowska/automationpractice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgrabowska/automationpractice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgrabowska/automationpractice/teams","hooks_url":"https://api.github.com/repos/pgrabowska/automationpractice/hooks","issue_events_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues/events{/number}","events_url":"https://api.github.com/repos/pgrabowska/automationpractice/events","assignees_url":"https://api.github.com/repos/pgrabowska/automationpractice/assignees{/user}","branches_url":"https://api.github.com/repos/pgrabowska/automationpractice/branches{/branch}","tags_url":"https://api.github.com/repos/pgrabowska/automationpractice/tags","blobs_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgrabowska/automationpractice/statuses/{sha}","languages_url":"https://api.github.com/repos/pgrabowska/automationpractice/languages","stargazers_url":"https://api.github.com/repos/pgrabowska/automationpractice/stargazers","contributors_url":"https://api.github.com/repos/pgrabowska/automationpractice/contributors","subscribers_url":"https://api.github.com/repos/pgrabowska/automationpractice/subscribers","subscription_url":"https://api.github.com/repos/pgrabowska/automationpractice/subscription","commits_url":"https://api.github.com/repos/pgrabowska/automationpractice/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgrabowska/automationpractice/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgrabowska/automationpractice/contents/{+path}","compare_url":"https://api.github.com/repos/pgrabowska/automationpractice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgrabowska/automationpractice/merges","archive_url":"https://api.github.com/repos/pgrabowska/automationpractice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgrabowska/automationpractice/downloads","issues_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues{/number}","pulls_url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls{/number}","milestones_url":"https://api.github.com/repos/pgrabowska/automationpractice/milestones{/number}","notifications_url":"https://api.github.com/repos/pgrabowska/automationpractice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgrabowska/automationpractice/labels{/name}","releases_url":"https://api.github.com/repos/pgrabowska/automationpractice/releases{/id}","deployments_url":"https://api.github.com/repos/pgrabowska/automationpractice/deployments","created_at":"2018-02-03T18:12:04Z","updated_at":"2018-02-03T21:28:23Z","pushed_at":"2018-03-02T20:29:45Z","git_url":"git://github.com/pgrabowska/automationpractice.git","ssh_url":"git@github.com:pgrabowska/automationpractice.git","clone_url":"https://github.com/pgrabowska/automationpractice.git","svn_url":"https://github.com/pgrabowska/automationpractice","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"pgrabowska:master","ref":"master","sha":"141ac042f6744d23180c4ec1110f16fa52818050","user":{"login":"pgrabowska","id":34381621,"avatar_url":"https://avatars2.githubusercontent.com/u/34381621?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrabowska","html_url":"https://github.com/pgrabowska","followers_url":"https://api.github.com/users/pgrabowska/followers","following_url":"https://api.github.com/users/pgrabowska/following{/other_user}","gists_url":"https://api.github.com/users/pgrabowska/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrabowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrabowska/subscriptions","organizations_url":"https://api.github.com/users/pgrabowska/orgs","repos_url":"https://api.github.com/users/pgrabowska/repos","events_url":"https://api.github.com/users/pgrabowska/events{/privacy}","received_events_url":"https://api.github.com/users/pgrabowska/received_events","type":"User","site_admin":false},"repo":{"id":120116828,"name":"automationpractice","full_name":"pgrabowska/automationpractice","owner":{"login":"pgrabowska","id":34381621,"avatar_url":"https://avatars2.githubusercontent.com/u/34381621?v=4","gravatar_id":"","url":"https://api.github.com/users/pgrabowska","html_url":"https://github.com/pgrabowska","followers_url":"https://api.github.com/users/pgrabowska/followers","following_url":"https://api.github.com/users/pgrabowska/following{/other_user}","gists_url":"https://api.github.com/users/pgrabowska/gists{/gist_id}","starred_url":"https://api.github.com/users/pgrabowska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgrabowska/subscriptions","organizations_url":"https://api.github.com/users/pgrabowska/orgs","repos_url":"https://api.github.com/users/pgrabowska/repos","events_url":"https://api.github.com/users/pgrabowska/events{/privacy}","received_events_url":"https://api.github.com/users/pgrabowska/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pgrabowska/automationpractice","description":null,"fork":false,"url":"https://api.github.com/repos/pgrabowska/automationpractice","forks_url":"https://api.github.com/repos/pgrabowska/automationpractice/forks","keys_url":"https://api.github.com/repos/pgrabowska/automationpractice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgrabowska/automationpractice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgrabowska/automationpractice/teams","hooks_url":"https://api.github.com/repos/pgrabowska/automationpractice/hooks","issue_events_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues/events{/number}","events_url":"https://api.github.com/repos/pgrabowska/automationpractice/events","assignees_url":"https://api.github.com/repos/pgrabowska/automationpractice/assignees{/user}","branches_url":"https://api.github.com/repos/pgrabowska/automationpractice/branches{/branch}","tags_url":"https://api.github.com/repos/pgrabowska/automationpractice/tags","blobs_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgrabowska/automationpractice/statuses/{sha}","languages_url":"https://api.github.com/repos/pgrabowska/automationpractice/languages","stargazers_url":"https://api.github.com/repos/pgrabowska/automationpractice/stargazers","contributors_url":"https://api.github.com/repos/pgrabowska/automationpractice/contributors","subscribers_url":"https://api.github.com/repos/pgrabowska/automationpractice/subscribers","subscription_url":"https://api.github.com/repos/pgrabowska/automationpractice/subscription","commits_url":"https://api.github.com/repos/pgrabowska/automationpractice/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgrabowska/automationpractice/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgrabowska/automationpractice/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgrabowska/automationpractice/contents/{+path}","compare_url":"https://api.github.com/repos/pgrabowska/automationpractice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgrabowska/automationpractice/merges","archive_url":"https://api.github.com/repos/pgrabowska/automationpractice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgrabowska/automationpractice/downloads","issues_url":"https://api.github.com/repos/pgrabowska/automationpractice/issues{/number}","pulls_url":"https://api.github.com/repos/pgrabowska/automationpractice/pulls{/number}","milestones_url":"https://api.github.com/repos/pgrabowska/automationpractice/milestones{/number}","notifications_url":"https://api.github.com/repos/pgrabowska/automationpractice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgrabowska/automationpractice/labels{/name}","releases_url":"https://api.github.com/repos/pgrabowska/automationpractice/releases{/id}","deployments_url":"https://api.github.com/repos/pgrabowska/automationpractice/deployments","created_at":"2018-02-03T18:12:04Z","updated_at":"2018-02-03T21:28:23Z","pushed_at":"2018-03-02T20:29:45Z","git_url":"git://github.com/pgrabowska/automationpractice.git","ssh_url":"git@github.com:pgrabowska/automationpractice.git","clone_url":"https://github.com/pgrabowska/automationpractice.git","svn_url":"https://github.com/pgrabowska/automationpractice","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1"},"html":{"href":"https://github.com/pgrabowska/automationpractice/pull/1"},"issue":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/issues/1"},"comments":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pgrabowska/automationpractice/statuses/6645a7bd604983c6ca180387003b40d060ca53b1"}},"author_association":"OWNER"}}
{"actor":{"display_login":"pgrabowska"}}