RecentBookmarksViewHolderTest.kt |
@get:Rule
val composeTestRule = ComposeTestRule()
@Test
fun `WHEN a group is removed via long press menu THEN interactor is called`() {
val historyGroup = RecentVisitsItems(
title = "mozilla",
historyMetadata = listOf(
HistoryMetadata(
key = historyMetadataKey,
title = "mozilla",
createdAt = System.currentTimeMillis(),
updatedAt = System.currentTimeMillis(),
totalViewTime = 10,
documentType = DocumentType.Regular,
previewImageUrl = null
)
)
)
composeView.menuItems.performClick()
verify { interactor.onRemoveGroups(setOf(group)) }
}
|
1279 |