You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using debounce in the snapshot flow of the IssueViewmodel causes E2E and Viewmodel tests to fail but after replacing with a delay in the flatmap lamda .
@OptIn(ExperimentalCoroutinesApi::class, FlowPreview::class)
val issuesResults =
combine(
snapshotFlow {
searchQuery
}
// .debounce(debounceDuration) causes tests to fail
.map {
if (it.length < 3) null else it
},
issueSearchModelState,
selectedLabels,
selectedAssignees,
selectedIssueState,
) {
searchQuery,
issueSearchModel,
selectedLabels,
selectedAssignees,
selectedIssueState,
->
delay(debounceDuration)
//rest of code
}
The text was updated successfully, but these errors were encountered:
Using debounce in the snapshot flow of the IssueViewmodel causes E2E and Viewmodel tests to fail but after replacing with a delay in the flatmap lamda .
The text was updated successfully, but these errors were encountered: