Commit 5ab90e02 authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

Speculative fix for NewTabPageTest#testArticleExpandableHeaderAppearance

Bug: 829377
Change-Id: Icf768d451f9967d954cf0ba40ff42a04c5dbe44d
Reviewed-on: https://chromium-review.googlesource.com/1011389Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550702}
parent d16476d6
......@@ -632,8 +632,9 @@ public class NewTabPageTest {
RecyclerView recyclerView = ntp.getNewTabPageView().getRecyclerView();
NewTabPageAdapter adapter = (NewTabPageAdapter) recyclerView.getAdapter();
RecyclerViewTestUtils.waitForStableRecyclerView(recyclerView);
View view = recyclerView.findViewHolderForAdapterPosition(
adapter.getFirstHeaderPosition()).itemView;
View view = ThreadUtils.runOnUiThreadBlocking(
() -> recyclerView.findViewHolderForAdapterPosition(
adapter.getFirstHeaderPosition()).itemView);
// Check header is expanded.
mRenderTestRule.render(view, "expandable_header_expanded");
......
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