Commit 00180fbf authored by Wei-Yin Chen (陳威尹)'s avatar Wei-Yin Chen (陳威尹) Committed by Commit Bot

Force portrait mode first in testTabSuggestionMessageCard_orientation

The device can be wrongly in landscape mode before the test starts,
which make the test flaky. Now we force portrait mode before
testTabSuggestionMessageCard_orientation starts.

Bug: 1063639
Change-Id: Ic532a252f9ccaebb70ed7fb4ca0bc1ab96bc8f8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2114391Reviewed-by: default avatarYue Zhang <yuezhanggg@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752560}
parent 15be8034
......@@ -986,6 +986,9 @@ public class StartSurfaceLayoutTest {
enterGTSWithThumbnailChecking();
CriteriaHelper.pollUiThread(TabSwitcherCoordinator::hasAppendedMessagesForTesting);
// Force portrait mode since the device can be wrongly in landscape. See crbug/1063639.
rotateDeviceToOrientation(cta, Configuration.ORIENTATION_PORTRAIT);
onView(withId(R.id.tab_list_view))
.check(MessageCardWidthAssertion.checkMessageItemSpanSize(3, 2));
......
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