{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/comments/173073676","pull_request_review_id":102199173,"id":173073676,"diff_hunk":"@@ -0,0 +1,107 @@\n+/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-\n+ * This Source Code Form is subject to the terms of the Mozilla Public\n+ * License, v. 2.0. If a copy of the MPL was not distributed with this\n+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n+\n+package org.mozilla.focus.activity;\n+\n+import android.content.Context;\n+import android.preference.PreferenceManager;\n+import android.support.test.InstrumentationRegistry;\n+import android.support.test.espresso.web.webdriver.Locator;\n+import android.support.test.rule.ActivityTestRule;\n+import android.support.test.runner.AndroidJUnit4;\n+import android.support.test.uiautomator.UiObjectNotFoundException;\n+\n+import org.junit.After;\n+import org.junit.Assert;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.mozilla.focus.R;\n+import org.mozilla.focus.helpers.TestHelper;\n+\n+import static android.support.test.espresso.Espresso.onView;\n+import static android.support.test.espresso.action.ViewActions.click;\n+import static android.support.test.espresso.action.ViewActions.pressImeActionButton;\n+import static android.support.test.espresso.action.ViewActions.replaceText;\n+import static android.support.test.espresso.assertion.ViewAssertions.matches;\n+import static android.support.test.espresso.matcher.ViewMatchers.hasFocus;\n+import static android.support.test.espresso.matcher.ViewMatchers.isClickable;\n+import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;\n+import static android.support.test.espresso.matcher.ViewMatchers.withId;\n+import static android.support.test.espresso.matcher.ViewMatchers.withText;\n+import static android.support.test.espresso.web.assertion.WebViewAssertions.webMatches;\n+import static android.support.test.espresso.web.sugar.Web.onWebView;\n+import static android.support.test.espresso.web.webdriver.DriverAtoms.findElement;\n+import static android.support.test.espresso.web.webdriver.DriverAtoms.getText;","path":"app/src/androidTestGecko/java/org/mozilla/focus/activity/URLMismatchTest.java","position":37,"original_position":37,"commit_id":"869fd19f2a2a4cbc39ae15762f07f0a14ce4c190","original_commit_id":"869fd19f2a2a4cbc39ae15762f07f0a14ce4c190","user":{"login":"sputnikci","id":15047461,"avatar_url":"https://avatars2.githubusercontent.com/u/15047461?v=4","gravatar_id":"","url":"https://api.github.com/users/sputnikci","html_url":"https://github.com/sputnikci","followers_url":"https://api.github.com/users/sputnikci/followers","following_url":"https://api.github.com/users/sputnikci/following{/other_user}","gists_url":"https://api.github.com/users/sputnikci/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnikci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnikci/subscriptions","organizations_url":"https://api.github.com/users/sputnikci/orgs","repos_url":"https://api.github.com/users/sputnikci/repos","events_url":"https://api.github.com/users/sputnikci/events{/privacy}","received_events_url":"https://api.github.com/users/sputnikci/received_events","type":"User","site_admin":false},"body":"\\[Checkstyle\\] ERROR: Unused import \\- android\\.support\\.test\\.espresso\\.web\\.webdriver\\.DriverAtoms\\.getText\\.","created_at":"2018-03-08T06:27:59Z","updated_at":"2018-03-08T06:27:59Z","html_url":"https://github.com/mozilla-mobile/focus-android/pull/2160#discussion_r173073676","pull_request_url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/comments/173073676"},"html":{"href":"https://github.com/mozilla-mobile/focus-android/pull/2160#discussion_r173073676"},"pull_request":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160","id":171131007,"html_url":"https://github.com/mozilla-mobile/focus-android/pull/2160","diff_url":"https://github.com/mozilla-mobile/focus-android/pull/2160.diff","patch_url":"https://github.com/mozilla-mobile/focus-android/pull/2160.patch","issue_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/2160","number":2160,"state":"open","locked":false,"title":"Separate Focus Webview UI Tests from Gecko ones","user":{"login":"npark-mozilla","id":6930774,"avatar_url":"https://avatars1.githubusercontent.com/u/6930774?v=4","gravatar_id":"","url":"https://api.github.com/users/npark-mozilla","html_url":"https://github.com/npark-mozilla","followers_url":"https://api.github.com/users/npark-mozilla/followers","following_url":"https://api.github.com/users/npark-mozilla/following{/other_user}","gists_url":"https://api.github.com/users/npark-mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/npark-mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npark-mozilla/subscriptions","organizations_url":"https://api.github.com/users/npark-mozilla/orgs","repos_url":"https://api.github.com/users/npark-mozilla/repos","events_url":"https://api.github.com/users/npark-mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/npark-mozilla/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-23T22:25:29Z","updated_at":"2018-03-08T06:27:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"183f6b85b601a060cbf6d187b82f2ee9e061df92","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160/commits","review_comments_url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160/comments","review_comment_url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/2160/comments","statuses_url":"https://api.github.com/repos/mozilla-mobile/focus-android/statuses/869fd19f2a2a4cbc39ae15762f07f0a14ce4c190","head":{"label":"mozilla-mobile:npark-mozilla/reorderTests","ref":"npark-mozilla/reorderTests","sha":"869fd19f2a2a4cbc39ae15762f07f0a14ce4c190","user":{"login":"mozilla-mobile","id":22351667,"avatar_url":"https://avatars3.githubusercontent.com/u/22351667?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla-mobile","html_url":"https://github.com/mozilla-mobile","followers_url":"https://api.github.com/users/mozilla-mobile/followers","following_url":"https://api.github.com/users/mozilla-mobile/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-mobile/subscriptions","organizations_url":"https://api.github.com/users/mozilla-mobile/orgs","repos_url":"https://api.github.com/users/mozilla-mobile/repos","events_url":"https://api.github.com/users/mozilla-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":75990052,"name":"focus-android","full_name":"mozilla-mobile/focus-android","owner":{"login":"mozilla-mobile","id":22351667,"avatar_url":"https://avatars3.githubusercontent.com/u/22351667?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla-mobile","html_url":"https://github.com/mozilla-mobile","followers_url":"https://api.github.com/users/mozilla-mobile/followers","following_url":"https://api.github.com/users/mozilla-mobile/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-mobile/subscriptions","organizations_url":"https://api.github.com/users/mozilla-mobile/orgs","repos_url":"https://api.github.com/users/mozilla-mobile/repos","events_url":"https://api.github.com/users/mozilla-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-mobile/focus-android","description":"Firefox Focus: The privacy browser - Browse like no one’s watching.","fork":false,"url":"https://api.github.com/repos/mozilla-mobile/focus-android","forks_url":"https://api.github.com/repos/mozilla-mobile/focus-android/forks","keys_url":"https://api.github.com/repos/mozilla-mobile/focus-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-mobile/focus-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-mobile/focus-android/teams","hooks_url":"https://api.github.com/repos/mozilla-mobile/focus-android/hooks","issue_events_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-mobile/focus-android/events","assignees_url":"https://api.github.com/repos/mozilla-mobile/focus-android/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-mobile/focus-android/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-mobile/focus-android/tags","blobs_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-mobile/focus-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-mobile/focus-android/languages","stargazers_url":"https://api.github.com/repos/mozilla-mobile/focus-android/stargazers","contributors_url":"https://api.github.com/repos/mozilla-mobile/focus-android/contributors","subscribers_url":"https://api.github.com/repos/mozilla-mobile/focus-android/subscribers","subscription_url":"https://api.github.com/repos/mozilla-mobile/focus-android/subscription","commits_url":"https://api.github.com/repos/mozilla-mobile/focus-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-mobile/focus-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-mobile/focus-android/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-mobile/focus-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-mobile/focus-android/merges","archive_url":"https://api.github.com/repos/mozilla-mobile/focus-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-mobile/focus-android/downloads","issues_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-mobile/focus-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-mobile/focus-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-mobile/focus-android/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-mobile/focus-android/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-mobile/focus-android/deployments","created_at":"2016-12-09T01:31:11Z","updated_at":"2018-03-05T19:41:48Z","pushed_at":"2018-03-08T06:23:26Z","git_url":"git://github.com/mozilla-mobile/focus-android.git","ssh_url":"git@github.com:mozilla-mobile/focus-android.git","clone_url":"https://github.com/mozilla-mobile/focus-android.git","svn_url":"https://github.com/mozilla-mobile/focus-android","homepage":"","size":159305,"stargazers_count":642,"watchers_count":642,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":233,"mirror_url":null,"archived":false,"open_issues_count":423,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":233,"open_issues":423,"watchers":642,"default_branch":"master"}},"base":{"label":"mozilla-mobile:master","ref":"master","sha":"8ed26d723f44b500b230b5cfb73d9bafb46bd9c4","user":{"login":"mozilla-mobile","id":22351667,"avatar_url":"https://avatars3.githubusercontent.com/u/22351667?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla-mobile","html_url":"https://github.com/mozilla-mobile","followers_url":"https://api.github.com/users/mozilla-mobile/followers","following_url":"https://api.github.com/users/mozilla-mobile/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-mobile/subscriptions","organizations_url":"https://api.github.com/users/mozilla-mobile/orgs","repos_url":"https://api.github.com/users/mozilla-mobile/repos","events_url":"https://api.github.com/users/mozilla-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":75990052,"name":"focus-android","full_name":"mozilla-mobile/focus-android","owner":{"login":"mozilla-mobile","id":22351667,"avatar_url":"https://avatars3.githubusercontent.com/u/22351667?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla-mobile","html_url":"https://github.com/mozilla-mobile","followers_url":"https://api.github.com/users/mozilla-mobile/followers","following_url":"https://api.github.com/users/mozilla-mobile/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-mobile/subscriptions","organizations_url":"https://api.github.com/users/mozilla-mobile/orgs","repos_url":"https://api.github.com/users/mozilla-mobile/repos","events_url":"https://api.github.com/users/mozilla-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-mobile/focus-android","description":"Firefox Focus: The privacy browser - Browse like no one’s watching.","fork":false,"url":"https://api.github.com/repos/mozilla-mobile/focus-android","forks_url":"https://api.github.com/repos/mozilla-mobile/focus-android/forks","keys_url":"https://api.github.com/repos/mozilla-mobile/focus-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-mobile/focus-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-mobile/focus-android/teams","hooks_url":"https://api.github.com/repos/mozilla-mobile/focus-android/hooks","issue_events_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-mobile/focus-android/events","assignees_url":"https://api.github.com/repos/mozilla-mobile/focus-android/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-mobile/focus-android/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-mobile/focus-android/tags","blobs_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-mobile/focus-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-mobile/focus-android/languages","stargazers_url":"https://api.github.com/repos/mozilla-mobile/focus-android/stargazers","contributors_url":"https://api.github.com/repos/mozilla-mobile/focus-android/contributors","subscribers_url":"https://api.github.com/repos/mozilla-mobile/focus-android/subscribers","subscription_url":"https://api.github.com/repos/mozilla-mobile/focus-android/subscription","commits_url":"https://api.github.com/repos/mozilla-mobile/focus-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-mobile/focus-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-mobile/focus-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-mobile/focus-android/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-mobile/focus-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-mobile/focus-android/merges","archive_url":"https://api.github.com/repos/mozilla-mobile/focus-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-mobile/focus-android/downloads","issues_url":"https://api.github.com/repos/mozilla-mobile/focus-android/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-mobile/focus-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-mobile/focus-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-mobile/focus-android/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-mobile/focus-android/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-mobile/focus-android/deployments","created_at":"2016-12-09T01:31:11Z","updated_at":"2018-03-05T19:41:48Z","pushed_at":"2018-03-08T06:23:26Z","git_url":"git://github.com/mozilla-mobile/focus-android.git","ssh_url":"git@github.com:mozilla-mobile/focus-android.git","clone_url":"https://github.com/mozilla-mobile/focus-android.git","svn_url":"https://github.com/mozilla-mobile/focus-android","homepage":"","size":159305,"stargazers_count":642,"watchers_count":642,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":233,"mirror_url":null,"archived":false,"open_issues_count":423,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":233,"open_issues":423,"watchers":642,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160"},"html":{"href":"https://github.com/mozilla-mobile/focus-android/pull/2160"},"issue":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/2160"},"comments":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/issues/2160/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/pulls/2160/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-mobile/focus-android/statuses/869fd19f2a2a4cbc39ae15762f07f0a14ce4c190"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sputnikci"}}