Skip to content

Commit

Permalink
Fix flakey RoomMemberDetailsScreen preview test.
Browse files Browse the repository at this point in the history
- was missing sometimes missing the call button because we weren't waiting for the `dmRoomID` resolution
  • Loading branch information
stefanceriu committed Jan 20, 2025
1 parent 1af5a4a commit 126f2b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ struct RoomMemberDetailsScreen_Previews: PreviewProvider, TestablePreview {

RoomMemberDetailsScreen(context: ignoredUserViewModel.context)
.snapshotPreferences(expect: ignoredUserViewModel.context.$viewState.map { state in
state.memberDetails?.isIgnored ?? false
state.memberDetails?.isIgnored ?? false && state.dmRoomID != nil
})
.previewDisplayName("Ignored User")
}
Expand Down

0 comments on commit 126f2b4

Please sign in to comment.