{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/30782165","id":30782165,"diff_hunk":"@@ -0,0 +1,105 @@\n+package com.wikia.webdriver.pageobjectsfactory.pageobject.adsbase.helpers;\n+\n+import com.wikia.webdriver.common.contentpatterns.AdsContent;\n+import com.wikia.webdriver.common.core.imageutilities.ImageComparison;\n+import com.wikia.webdriver.common.core.imageutilities.ImageEditor;\n+import com.wikia.webdriver.common.core.imageutilities.Shooter;\n+import com.wikia.webdriver.common.logging.PageObjectLogging;\n+\n+import org.openqa.selenium.By;\n+import org.openqa.selenium.Dimension;\n+import org.openqa.selenium.Point;\n+import org.openqa.selenium.WebDriver;\n+import org.openqa.selenium.WebElement;\n+\n+import java.awt.image.BufferedImage;\n+import java.io.File;\n+\n+/**\n+ * @author drets\n+ * @ownership AdEng\n+ */\n+public class AdSkinHelper {\n+\n+  public static final String WIKIA_MESSAGE_BUBLE = \"#WikiaNotifications div[id*='msg']\";\n+  public static final int IMAGES_THRESHOLD_PERCENT = 12;","path":"src/test/java/com/wikia/webdriver/pageobjectsfactory/pageobject/adsbase/helpers/AdSkinHelper.java","position":25,"original_position":25,"commit_id":"c0bf9d45df1751b06a4d9c7997ad717d3338abd8","original_commit_id":"c0bf9d45df1751b06a4d9c7997ad717d3338abd8","user":{"login":"ludwikkazmierczak","id":7136408,"avatar_url":"https://avatars.githubusercontent.com/u/7136408?v=3","gravatar_id":"","url":"https://api.github.com/users/ludwikkazmierczak","html_url":"https://github.com/ludwikkazmierczak","followers_url":"https://api.github.com/users/ludwikkazmierczak/followers","following_url":"https://api.github.com/users/ludwikkazmierczak/following{/other_user}","gists_url":"https://api.github.com/users/ludwikkazmierczak/gists{/gist_id}","starred_url":"https://api.github.com/users/ludwikkazmierczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludwikkazmierczak/subscriptions","organizations_url":"https://api.github.com/users/ludwikkazmierczak/orgs","repos_url":"https://api.github.com/users/ludwikkazmierczak/repos","events_url":"https://api.github.com/users/ludwikkazmierczak/events{/privacy}","received_events_url":"https://api.github.com/users/ludwikkazmierczak/received_events","type":"User","site_admin":false},"body":"both can be private","created_at":"2015-05-21T08:31:22Z","updated_at":"2015-05-21T08:31:22Z","html_url":"https://github.com/Wikia/selenium-tests/pull/646#discussion_r30782165","pull_request_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646","_links":{"self":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/30782165"},"html":{"href":"https://github.com/Wikia/selenium-tests/pull/646#discussion_r30782165"},"pull_request":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646","id":35348400,"html_url":"https://github.com/Wikia/selenium-tests/pull/646","diff_url":"https://github.com/Wikia/selenium-tests/pull/646.diff","patch_url":"https://github.com/Wikia/selenium-tests/pull/646.patch","issue_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/646","number":646,"state":"open","locked":false,"title":"ADEN-1879 Oasis breakpoints","user":{"login":"drets","id":6199462,"avatar_url":"https://avatars.githubusercontent.com/u/6199462?v=3","gravatar_id":"","url":"https://api.github.com/users/drets","html_url":"https://github.com/drets","followers_url":"https://api.github.com/users/drets/followers","following_url":"https://api.github.com/users/drets/following{/other_user}","gists_url":"https://api.github.com/users/drets/gists{/gist_id}","starred_url":"https://api.github.com/users/drets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drets/subscriptions","organizations_url":"https://api.github.com/users/drets/orgs","repos_url":"https://api.github.com/users/drets/repos","events_url":"https://api.github.com/users/drets/events{/privacy}","received_events_url":"https://api.github.com/users/drets/received_events","type":"User","site_admin":false},"body":"Ad skin behaves differently on `oasis` VS `oasisbreakpoints`.\r\nI extended tests to `oasisbreakpoints`.\r\nTest takes a screenshot of a rectangle:\r\n```\r\n              global navigation\r\n                _____\r\narticle side or|     | viewport side or\r\nviewport side  |_____| article side\r\n              wikia bar\r\n```\r\nand compare it with template image.\r\nI changed the test:\r\n* removed few unused vars\r\n* added the logging of images (in order to make easier a process of analyzing test results)\r\n* updated the template images\r\n* changed the way of compare images (made the same as in the monitoring tests)","created_at":"2015-05-13T17:02:31Z","updated_at":"2015-05-21T08:31:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee95b760daa655023bb020f76ea6199e20bc4867","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646/commits","review_comments_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646/comments","review_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/646/comments","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/c0bf9d45df1751b06a4d9c7997ad717d3338abd8","head":{"label":"Wikia:aden-1879-oasis-breakpoints","ref":"aden-1879-oasis-breakpoints","sha":"c0bf9d45df1751b06a4d9c7997ad717d3338abd8","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":6275065,"name":"selenium-tests","full_name":"Wikia/selenium-tests","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/selenium-tests","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/selenium-tests","forks_url":"https://api.github.com/repos/Wikia/selenium-tests/forks","keys_url":"https://api.github.com/repos/Wikia/selenium-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/selenium-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/selenium-tests/teams","hooks_url":"https://api.github.com/repos/Wikia/selenium-tests/hooks","issue_events_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/selenium-tests/events","assignees_url":"https://api.github.com/repos/Wikia/selenium-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/selenium-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/selenium-tests/tags","blobs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/selenium-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/selenium-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/selenium-tests/languages","stargazers_url":"https://api.github.com/repos/Wikia/selenium-tests/stargazers","contributors_url":"https://api.github.com/repos/Wikia/selenium-tests/contributors","subscribers_url":"https://api.github.com/repos/Wikia/selenium-tests/subscribers","subscription_url":"https://api.github.com/repos/Wikia/selenium-tests/subscription","commits_url":"https://api.github.com/repos/Wikia/selenium-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/selenium-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/selenium-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/selenium-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/selenium-tests/merges","archive_url":"https://api.github.com/repos/Wikia/selenium-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/selenium-tests/downloads","issues_url":"https://api.github.com/repos/Wikia/selenium-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/selenium-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/selenium-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/selenium-tests/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/selenium-tests/releases{/id}","created_at":"2012-10-18T08:06:11Z","updated_at":"2015-05-07T15:54:21Z","pushed_at":"2015-05-20T14:51:32Z","git_url":"git://github.com/Wikia/selenium-tests.git","ssh_url":"git@github.com:Wikia/selenium-tests.git","clone_url":"https://github.com/Wikia/selenium-tests.git","svn_url":"https://github.com/Wikia/selenium-tests","homepage":null,"size":206176,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"Wikia:master","ref":"master","sha":"672da95d012013341e1136e099d15d76bb708499","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":6275065,"name":"selenium-tests","full_name":"Wikia/selenium-tests","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/selenium-tests","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/selenium-tests","forks_url":"https://api.github.com/repos/Wikia/selenium-tests/forks","keys_url":"https://api.github.com/repos/Wikia/selenium-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/selenium-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/selenium-tests/teams","hooks_url":"https://api.github.com/repos/Wikia/selenium-tests/hooks","issue_events_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/selenium-tests/events","assignees_url":"https://api.github.com/repos/Wikia/selenium-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/selenium-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/selenium-tests/tags","blobs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/selenium-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/selenium-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/selenium-tests/languages","stargazers_url":"https://api.github.com/repos/Wikia/selenium-tests/stargazers","contributors_url":"https://api.github.com/repos/Wikia/selenium-tests/contributors","subscribers_url":"https://api.github.com/repos/Wikia/selenium-tests/subscribers","subscription_url":"https://api.github.com/repos/Wikia/selenium-tests/subscription","commits_url":"https://api.github.com/repos/Wikia/selenium-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/selenium-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/selenium-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/selenium-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/selenium-tests/merges","archive_url":"https://api.github.com/repos/Wikia/selenium-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/selenium-tests/downloads","issues_url":"https://api.github.com/repos/Wikia/selenium-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/selenium-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/selenium-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/selenium-tests/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/selenium-tests/releases{/id}","created_at":"2012-10-18T08:06:11Z","updated_at":"2015-05-07T15:54:21Z","pushed_at":"2015-05-20T14:51:32Z","git_url":"git://github.com/Wikia/selenium-tests.git","ssh_url":"git@github.com:Wikia/selenium-tests.git","clone_url":"https://github.com/Wikia/selenium-tests.git","svn_url":"https://github.com/Wikia/selenium-tests","homepage":null,"size":206176,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646"},"html":{"href":"https://github.com/Wikia/selenium-tests/pull/646"},"issue":{"href":"https://api.github.com/repos/Wikia/selenium-tests/issues/646"},"comments":{"href":"https://api.github.com/repos/Wikia/selenium-tests/issues/646/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/646/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/selenium-tests/statuses/c0bf9d45df1751b06a4d9c7997ad717d3338abd8"}}}}