Commit 0f0c7ff6 authored by sandromaggi's avatar sandromaggi Committed by Commit Bot

[Autofill Assistant] Enable LocationBar test

It appears that waiting for the URL is flaky. This check is not really
required for the test, as we only want to see the error appearing once
the URL is committed (we can assume that the URL being entered into the
location bar will eventually load).

Bug: 1105146
Change-Id: I68ac2f5c5591dbcf8f85665429720152df9889b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2306090Reviewed-by: default avatarClemens Arbesser <arbesser@google.com>
Commit-Queue: Sandro Maggi <sandromaggi@google.com>
Cr-Commit-Position: refs/heads/master@{#789894}
parent caf08029
......@@ -43,7 +43,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.DisabledTest;
import org.chromium.base.test.util.Restriction;
import org.chromium.chrome.autofill_assistant.R;
import org.chromium.chrome.browser.ChromeTabbedActivity;
......@@ -470,7 +469,6 @@ public class AutofillAssistantChromeTabIntegrationTest {
@Test
@MediumTest
@DisabledTest(message = "Flaky - https://crbug.com/1105146")
public void interactingWithLocationBarHidesAutofillAssistant() {
ArrayList<ActionProto> list = new ArrayList<>();
list.add((ActionProto) ActionProto.newBuilder()
......@@ -507,8 +505,5 @@ public class AutofillAssistantChromeTabIntegrationTest {
onView(withId(org.chromium.chrome.R.id.url_bar))
.perform(click(), typeText(getURL(TEST_PAGE_B)), pressImeActionButton());
waitUntilViewMatchesCondition(withText(containsString("Sorry")), isCompletelyDisplayed());
waitUntil(()
-> mTestRule.getActivity().getActivityTab().getUrl().getSpec().equals(
getURL(TEST_PAGE_B)));
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment