Add ui test on AdvancedSettingsView.

This commit is contained in:
Benoit Marty 2024-05-21 10:51:37 +02:00
parent 4f03486675
commit 06d80ee497
2 changed files with 147 additions and 1 deletions

View file

@ -41,6 +41,7 @@ fun aAdvancedSettingsState(
currentPushDistributor: AsyncAction<String> = AsyncAction.Success("Firebase"),
availablePushDistributors: List<String> = listOf("Firebase", "ntfy"),
showChangePushProviderDialog: Boolean = false,
eventSink: (AdvancedSettingsEvents) -> Unit = {},
) = AdvancedSettingsState(
isDeveloperModeEnabled = isDeveloperModeEnabled,
isSharePresenceEnabled = isSendPublicReadReceiptsEnabled,
@ -49,5 +50,5 @@ fun aAdvancedSettingsState(
currentPushDistributor = currentPushDistributor,
availablePushDistributors = availablePushDistributors.toImmutableList(),
showChangePushProviderDialog = showChangePushProviderDialog,
eventSink = {}
eventSink = eventSink
)