Skip to content

Commit ce3dfc8

Browse files
committed
test fix
1 parent d44654b commit ce3dfc8

File tree

1 file changed

+10
-8
lines changed
  • automation/espresso/src/main/kotlin/com/instructure/canvas/espresso/common/pages/compose

1 file changed

+10
-8
lines changed

automation/espresso/src/main/kotlin/com/instructure/canvas/espresso/common/pages/compose/AssignmentListPage.kt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,16 @@ class AssignmentListPage(private val composeTestRule: ComposeTestRule) {
211211
}
212212
}
213213

214-
if(assignmentStatus != null) {
215-
composeTestRule.onNode(
216-
hasText(assignmentStatus).and(
217-
hasAnyAncestor(hasAnyChild(hasText(assignmentName)))
218-
),
219-
useUnmergedTree = true
220-
)
221-
.assertIsDisplayed()
214+
retryWithIncreasingDelay(times = 10, maxDelay = 4000, catchBlock = { refresh() }) {
215+
if(assignmentStatus != null) {
216+
composeTestRule.onNode(
217+
hasText(assignmentStatus).and(
218+
hasAnyAncestor(hasAnyChild(hasText(assignmentName)))
219+
),
220+
useUnmergedTree = true
221+
)
222+
.assertIsDisplayed()
223+
}
222224
}
223225
}
224226

0 commit comments

Comments
 (0)