From 9d91cd4fc03a29c3403f0741d182059e93e37288 Mon Sep 17 00:00:00 2001 From: Mauro <34335419+Velin92@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:33:31 +0200 Subject: [PATCH] Preview Tests (#1768) * preview testing * removed some views that are not really testabl in UnitTests and improved other tests --- .swiftlint.yml | 3 - ElementX.xcodeproj/project.pbxproj | 12 +- .../Mocks/AggregatedReactionMock.swift | 2 +- .../MapLibre/MapLibreStaticMapView.swift | 2 +- .../Sources/Other/Pills/MessageText.swift | 2 +- ElementX/Sources/Other/Pills/PillView.swift | 2 +- .../SwiftUI/Animation/ShimmerModifier.swift | 2 +- .../Form Styles/FormButtonStyles.swift | 2 +- .../Form Styles/FormRowLabelStyle.swift | 2 +- .../SwiftUI/Layout/FullscreenDialog.swift | 2 +- .../SwiftUI/Views/AvatarHeaderView.swift | 2 +- .../SwiftUI/Views/LocationMarkerView.swift | 2 +- .../SwiftUI/Views/MatrixUserShareLink.swift | 2 +- .../Views/PlaceholderAvatarImage.swift | 2 +- .../Other/SwiftUI/Views/UserProfileCell.swift | 2 +- ElementX/Sources/Other/TestablePreview.swift | 2 +- .../UserIndicatorModalView.swift | 2 +- .../UserIndicatorToastView.swift | 2 +- .../View/AnalyticsPromptScreen.swift | 2 +- .../View/RoundedLabelItem.swift | 2 +- .../AuthenticationIconImage.swift | 2 +- .../LoginScreen/View/LoginScreen.swift | 2 +- .../View/ServerConfirmationScreen.swift | 2 +- .../View/ServerSelectionScreen.swift | 2 +- .../View/SoftLogoutScreen.swift | 2 +- .../WaitlistScreen/View/WaitingDialog.swift | 2 +- .../WaitlistScreen/View/WaitlistScreen.swift | 2 +- .../View/BugReportScreen.swift | 2 +- .../View/ComposerToolbar.swift | 2 +- .../View/MessageComposer.swift | 2 +- .../View/RoomAttachmentPicker.swift | 2 +- .../View/CreatePollScreen.swift | 2 +- .../CreateRoom/View/CreateRoomScreen.swift | 2 +- .../View/EmojiPickerScreen.swift | 2 +- .../View/EmojiPickerScreenHeaderView.swift | 4 +- .../Screens/HomeScreen/View/HomeScreen.swift | 2 +- .../View/HomeScreenEmptyStateView.swift | 2 +- .../View/HomeScreenInvitesButton.swift | 2 +- .../HomeScreen/View/HomeScreenRoomCell.swift | 4 +- .../View/InviteUsersScreen.swift | 2 +- .../View/InviteUsersScreenSelectedItem.swift | 2 +- .../InvitesScreen/View/InvitesScreen.swift | 2 +- .../View/InvitesScreenCell.swift | 2 +- .../View/StaticLocationScreen.swift | 2 +- .../View/MediaUploadPreviewScreen.swift | 2 +- .../View/MessageForwardingScreen.swift | 2 +- .../View/MigrationScreen.swift | 2 +- .../View/OnboardingScreen.swift | 2 +- .../Other/PlaceholderScreenCoordinator.swift | 2 +- .../Other/SplashScreenCoordinator.swift | 2 +- .../View/ReportContentScreen.swift | 2 +- .../View/RoomDetailsEditScreen.swift | 6 +- .../View/RoomDetailsScreen.swift | 8 +- .../View/RoomMemberDetailsScreen.swift | 2 +- .../View/RoomMembersListScreen.swift | 2 +- .../RoomMembersListScreenMemberCell.swift | 2 +- ...otificationSettingsCustomSectionView.swift | 2 +- .../View/RoomNotificationSettingsScreen.swift | 2 +- ...otificationSettingsUserDefinedScreen.swift | 2 +- .../View/Replies/TimelineReplyView.swift | 2 +- .../RoomScreen/View/RoomHeaderView.swift | 2 +- .../Screens/RoomScreen/View/RoomScreen.swift | 2 +- .../View/Style/LongPressWithFeedback.swift | 2 +- .../View/Style/SwipeToReplyView.swift | 2 +- .../View/Style/ThreadDecorator.swift | 2 +- .../Style/TimelineItemBubbledStylerView.swift | 2 +- .../Style/TimelineItemPlainStylerView.swift | 2 +- .../View/Style/TimelineStyler.swift | 2 +- .../Supplementary/ReactionsSummaryView.swift | 2 +- .../TimelineDeliveryStatusView.swift | 2 +- .../Supplementary/TimelineReactionsView.swift | 2 +- .../TimelineReadReceiptsView.swift | 2 +- .../RoomScreen/View/SwipeRightAction.swift | 2 +- .../View/Timeline/AudioRoomTimelineView.swift | 2 +- .../CollapsibleRoomTimelineView.swift | 2 +- .../View/Timeline/EmoteRoomTimelineView.swift | 2 +- .../EncryptedHistoryRoomTimelineView.swift | 2 +- .../Timeline/EncryptedRoomTimelineView.swift | 2 +- .../View/Timeline/FileRoomTimelineView.swift | 2 +- .../View/Timeline/FormattedBodyText.swift | 2 +- .../View/Timeline/ImageRoomTimelineView.swift | 2 +- .../Timeline/LocationRoomTimelineView.swift | 2 +- .../Timeline/NoticeRoomTimelineView.swift | 2 +- .../PaginationIndicatorRoomTimelineView.swift | 2 +- .../View/Timeline/PollOptionView.swift | 2 +- .../View/Timeline/PollRoomTimelineView.swift | 2 +- .../Timeline/ReadMarkerRoomTimelineView.swift | 2 +- .../Timeline/RedactedRoomTimelineView.swift | 2 +- .../Timeline/SeparatorRoomTimelineView.swift | 2 +- .../View/Timeline/StateRoomTimelineView.swift | 2 +- .../Timeline/StickerRoomTimelineView.swift | 2 +- .../View/Timeline/TextRoomTimelineView.swift | 2 +- .../TimelineStartRoomTimelineView.swift | 2 +- .../View/Timeline/UITimelineView.swift | 2 +- .../UnsupportedRoomTimelineView.swift | 2 +- .../View/Timeline/VideoRoomTimelineView.swift | 2 +- .../View/TimelineItemDebugView.swift | 2 +- .../RoomScreen/View/TimelineItemMenu.swift | 2 +- .../RoomScreen/View/TimelineView.swift | 2 +- .../View/SessionVerificationScreen.swift | 2 +- .../View/AnalyticsSettingsScreen.swift | 2 +- .../View/AdvancedSettingsScreen.swift | 2 +- .../View/LegalInformationScreen.swift | 2 +- .../View/NotificationSettingsEditScreen.swift | 2 +- ...tificationSettingsEditScreenRoomCell.swift | 2 +- .../View/NotificationSettingsScreen.swift | 2 +- .../SettingsScreen/View/SettingsScreen.swift | 2 +- .../View/UserDetailsEditScreen.swift | 2 +- .../View/StartChatScreen.swift | 2 +- .../View/WelcomeScreen.swift | 2 +- NSE/SupportingFiles/target.yml | 2 + Tools/Prefire/PreviewTests.stencil | 5 +- .../ElementX/View/TemplateScreen.swift | 2 +- UnitTests/Sources/PreviewTests.swift | 639 ++++++++++++++++++ .../test_advancedSettingsScreen.1.png | 3 + .../test_analyticsPromptScreen.1.png | 3 + ...t_analyticsPromptScreenCheckmarkItem.1.png | 3 + .../test_analyticsSettingsScreen.1.png | 3 + .../test_audioRoomTimelineView.1.png | 3 + .../test_audioRoomTimelineView.2.png | 3 + .../test_authenticationIconImage.1.png | 3 + .../PreviewTests/test_bugReport.1.png | 3 + .../PreviewTests/test_bugReport.2.png | 3 + .../test_collapsibleRoomTimelineView.1.png | 3 + .../PreviewTests/test_composerToolbar.1.png | 3 + .../PreviewTests/test_createPollScreen.1.png | 3 + ...t_createRoom.Create-Room-without-users.png | 3 + .../test_createRoom.Create-Room.png | 3 + .../test_emojiPickerScreen.Screen.png | 3 + .../test_emojiPickerScreen.Sheet.png | 3 + .../test_emojiPickerScreenHeaderView.1.png | 3 + .../test_emoteRoomTimelineView.1.png | 3 + .../test_emoteRoomTimelineView.2.png | 3 + ...est_encryptedHistoryRoomTimelineView.1.png | 3 + .../test_encryptedRoomTimelineView.1.png | 3 + .../test_encryptedRoomTimelineView.2.png | 3 + .../test_fileRoomTimelineView.1.png | 3 + .../test_fileRoomTimelineView.2.png | 3 + .../PreviewTests/test_formButtonStyles.1.png | 3 + .../PreviewTests/test_formRowLabelStyle.1.png | 3 + .../PreviewTests/test_formattedBodyText.1.png | 3 + .../PreviewTests/test_formattedBodyText.2.png | 3 + .../PreviewTests/test_fullscreenDialog.1.png | 3 + .../PreviewTests/test_headerView.1.png | 3 + .../PreviewTests/test_homeScreen.Empty.png | 3 + .../PreviewTests/test_homeScreen.Loaded.png | 3 + .../PreviewTests/test_homeScreen.Loading.png | 3 + ...creenEmptyStateView.Constrained-layout.png | 3 + ...homeScreenEmptyStateView.Normal-Layout.png | 3 + .../test_homeScreenEmptyStateView.View.png | 3 + ...test_homeScreenInvitesButton.Badge-off.png | 3 + ...t_homeScreenInvitesButton.Badge-on-AX1.png | 3 + .../test_homeScreenInvitesButton.Badge-on.png | 3 + .../test_homeScreenRoomCell.1.png | 3 + .../test_imageRoomTimelineView.1.png | 3 + .../test_imageRoomTimelineView.2.png | 3 + .../PreviewTests/test_inviteUsersScreen.1.png | 3 + .../test_inviteUsersScreenSelectedItem.1.png | 3 + .../test_invitesScreen.No-Invites.png | 3 + .../test_invitesScreen.Some-Invite.png | 3 + .../PreviewTests/test_invitesScreenCell.1.png | 3 + .../test_legalInformationScreen.1.png | 3 + .../test_locationMarkerView.1.png | 3 + .../test_locationRoomTimelineView.Bubbles.png | 3 + .../test_locationRoomTimelineView.Plain.png | 3 + .../test_loginScreen.Credentials-Entered.png | 3 + .../test_loginScreen.OIDC-Fallback.png | 3 + .../test_loginScreen.Unsupported.png | 3 + .../test_loginScreen.matrix-org.png | 3 + .../test_longPressWithFeedback.1.png | 3 + .../test_mapLibreStaticMapView.1.png | 3 + .../test_matrixUserPermalink.1.png | 3 + .../test_mediaUploadPreviewScreen.1.png | 3 + .../PreviewTests/test_messageComposer.1.png | 3 + ...est_messageComposer.Replying-in-thread.png | 3 + .../test_messageComposer.Replying.png | 3 + .../test_messageForwardingScreen.1.png | 3 + .../test_messageText.Custom-Attachment.png | 3 + .../test_messageText.Custom-Text.png | 3 + .../test_messageText.SwiftUI-Default-Text.png | 3 + .../test_messageText.With-block-quote.png | 3 + .../test_messageText.With-list.png | 3 + .../PreviewTests/test_migrationScreen.1.png | 3 + .../test_noticeRoomTimelineView.1.png | 3 + .../test_noticeRoomTimelineView.2.png | 3 + ...tionSettingsEditScreen.Applying-change.png | 3 + ...icationSettingsEditScreen.Direct-Chats.png | 3 + ...ficationSettingsEditScreen.Group-Chats.png | 3 + ...tificationSettingsEditScreenRoomCell.1.png | 3 + .../test_notificationSettingsScreen.1.png | 3 + ...nSettingsScreen.Configuration-mismatch.png | 3 + .../PreviewTests/test_onboardingScreen.1.png | 3 + ..._paginationIndicatorRoomTimelineView.1.png | 3 + .../PreviewTests/test_pillView.1.png | 3 + .../test_placeholderAvatarImage.1.png | 3 + .../test_placeholderScreen.Screen.png | 3 + .../test_placeholderScreen.Split-View.png | 3 + .../PreviewTests/test_pollOptionView.1.png | 3 + ..._pollRoomTimelineView.Disclosed-Bubble.png | 3 + ...t_pollRoomTimelineView.Disclosed-Plain.png | 3 + ...oomTimelineView.Ended-Disclosed-Bubble.png | 3 + ...RoomTimelineView.Ended-Disclosed-Plain.png | 3 + ...mTimelineView.Ended-Undisclosed-Bubble.png | 3 + ...omTimelineView.Ended-Undisclosed-Plain.png | 3 + ...ollRoomTimelineView.Undisclosed-Bubble.png | 3 + ...pollRoomTimelineView.Undisclosed-Plain.png | 3 + .../test_reactionsSummaryView.1.png | 3 + .../test_readMarkerRoomTimelineView.1.png | 3 + .../test_redactedRoomTimelineView.1.png | 3 + .../test_reportContentScreen.1.png | 3 + .../test_roomAttachmentPicker.1.png | 3 + .../test_roomDetailsEditScreen.Normal.png | 3 + .../test_roomDetailsEditScreen.Read-only.png | 3 + .../test_roomDetailsScreen.DM-Room.png | 3 + .../test_roomDetailsScreen.Generic-Room.png | 3 + .../test_roomDetailsScreen.Simple-Room.png | 3 + .../PreviewTests/test_roomHeaderView.1.png | 3 + .../PreviewTests/test_roomHeaderView.2.png | 3 + ..._roomMemberDetailsScreen.Account-Owner.png | 3 + ...t_roomMemberDetailsScreen.Ignored-User.png | 3 + ...est_roomMemberDetailsScreen.Other-User.png | 3 + .../test_roomMembersListMemberCell.1.png | 3 + .../test_roomMembersListScreen.1.png | 3 + ...otificationSettingsCustomSectionView.1.png | 3 + ..._roomNotificationSettingsScreen.Custom.png | 3 + ...roomNotificationSettingsScreen.Default.png | 3 + ...otificationSettingsUserDefinedScreen.1.png | 3 + .../PreviewTests/test_roomScreen.1.png | 3 + .../test_separatorRoomTimelineView.1.png | 3 + .../test_serverConfirmationScreen.Login.png | 3 + ...test_serverConfirmationScreen.Register.png | 3 + .../PreviewTests/test_serverSelection.1.png | 3 + .../PreviewTests/test_serverSelection.2.png | 3 + .../PreviewTests/test_serverSelection.3.png | 3 + .../PreviewTests/test_serverSelection.4.png | 3 + .../test_sessionVerification.Cancelled.png | 3 + .../test_sessionVerification.Initial.png | 3 + ...t_sessionVerification.Request-Accepted.png | 3 + ...onVerification.Requesting-Verification.png | 3 + ..._sessionVerification.Showing-Challenge.png | 3 + .../test_sessionVerification.Verified.png | 3 + .../PreviewTests/test_settingsScreen.1.png | 3 + .../PreviewTests/test_shimmerOverlay.1.png | 3 + .../PreviewTests/test_softLogoutScreen.1.png | 3 + .../PreviewTests/test_softLogoutScreen.2.png | 3 + .../PreviewTests/test_softLogoutScreen.3.png | 3 + .../PreviewTests/test_softLogoutScreen.4.png | 3 + .../PreviewTests/test_softLogoutScreen.5.png | 3 + .../PreviewTests/test_splashScreen.1.png | 3 + .../PreviewTests/test_startChatScreen.1.png | 3 + .../test_stateRoomTimelineView.1.png | 3 + .../test_stateRoomTimelineView.2.png | 3 + ...test_staticLocationScreenViewer.Picker.png | 3 + ...creenViewer.View-Only-with-description.png | 3 + ...t_staticLocationScreenViewer.View-Only.png | 3 + .../test_stickerRoomTimelineView.1.png | 3 + .../test_stickerRoomTimelineView.2.png | 3 + .../PreviewTests/test_swipeRightAction.1.png | 3 + .../PreviewTests/test_swipeToReplyView.1.png | 3 + .../PreviewTests/test_swipeToReplyView.2.png | 3 + .../PreviewTests/test_templateScreen.1.png | 3 + .../test_textRoomTimelineView.1.png | 3 + .../test_textRoomTimelineView.2.png | 3 + .../PreviewTests/test_threadDecorator.1.png | 3 + .../test_timelineDeliveryStatusView.1.png | 3 + ...temBubbledStylerView.Mock-Timeline-RTL.png | 3 + ...rView.Mock-Timeline-with-read-receipts.png | 3 + ...ineItemBubbledStylerView.Mock-Timeline.png | 3 + ..._timelineItemBubbledStylerView.Replies.png | 3 + ...ItemBubbledStylerView.Thread-decorator.png | 3 + .../test_timelineItemDebugView.1.png | 3 + .../PreviewTests/test_timelineItemMenu.1.png | 3 + .../test_timelineItemPlainStylerView.1.png | 3 + ...st_timelineItemPlainStylerView.Threads.png | 3 + .../test_timelineReactionView.1.png | 3 + .../test_timelineReadReceiptsView.1.png | 3 + .../PreviewTests/test_timelineReplyView.1.png | 3 + .../test_timelineStartRoomTimelineView.1.png | 3 + .../PreviewTests/test_timelineView.1.png | 3 + .../PreviewTests/test_uITimelineView.1.png | 3 + .../test_unsupportedRoomTimelineView.1.png | 3 + .../test_unsupportedRoomTimelineView.2.png | 3 + .../test_userDetailsEditScreen.1.png | 3 + ...est_userIndicatorModalView.No-progress.png | 3 + ...st_userIndicatorModalView.Progress-Bar.png | 3 + .../test_userIndicatorModalView.Spinner.png | 3 + .../test_userIndicatorToastView.1.png | 3 + .../PreviewTests/test_userProfileCell.1.png | 3 + .../test_videoRoomTimelineView.1.png | 3 + .../test_videoRoomTimelineView.2.png | 3 + .../PreviewTests/test_waitingDialog.1.png | 3 + .../test_waitlistScreen.Success.png | 3 + .../test_waitlistScreen.Waiting.png | 3 + .../PreviewTests/test_welcomeScreen.1.png | 3 + 294 files changed, 1312 insertions(+), 121 deletions(-) create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_composerToolbar.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_createPollScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_formButtonStyles.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_headerView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loading.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_locationMarkerView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-list.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_migrationScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_onboardingScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pillView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollOptionView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_reportContentScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_roomScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.3.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.4.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_settingsScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_splashScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_startChatScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeRightAction.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_templateScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_threadDecorator.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReactionView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReplyView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_uITimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_userProfileCell.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_waitingDialog.1.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png create mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_welcomeScreen.1.png diff --git a/.swiftlint.yml b/.swiftlint.yml index 6c8d31186..b304435f3 100755 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -47,9 +47,6 @@ cyclomatic_complexity: nesting: type_level: warning: 5 - -type_name: - allowed_symbols: "_" custom_rules: print_deprecation: diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index 956b3ff03..3da7e618d 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -171,6 +171,7 @@ 36AC963F2F04069B7FF1AA0C /* UIConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E6D88E8AFFBF2C1D589C0FA /* UIConstants.swift */; }; 36AD4DD4C798E22584ED3200 /* Version in Frameworks */ = {isa = PBXBuildFile; productRef = A05AF81DDD14AD58CB0E1B9B /* Version */; }; 36CD6E11B37396E14F032CB6 /* Emojibase in Frameworks */ = {isa = PBXBuildFile; productRef = C05729B1684C331F5FFE9232 /* Emojibase */; }; + 377980ABF16525114E72DDE2 /* Prefire in Frameworks */ = {isa = PBXBuildFile; productRef = 9B68DE8678BF67D4612BCC16 /* Prefire */; }; 37D789F24199B32E3FD1AA7B /* FileRoomTimelineItemContent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 216F0DDC98F2A2C162D09C28 /* FileRoomTimelineItemContent.swift */; }; 383055C6ABE5BE058CEE1DDB /* WelcomeScreenScreenCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57FE5EF0AFFE360C66420AAE /* WelcomeScreenScreenCoordinator.swift */; }; 38546A6010A2CF240EC9AF73 /* BindableState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EA1D2CBAEA5D0BD00B90D1B /* BindableState.swift */; }; @@ -727,6 +728,7 @@ DFF7D6A6C26DDD40D00AE579 /* target.yml in Resources */ = {isa = PBXBuildFile; fileRef = F012CB5EE3F2B67359F6CC52 /* target.yml */; }; E0A4DCA633D174EB43AD599F /* BackgroundTaskProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CA028DCD4157F9A1F999827 /* BackgroundTaskProtocol.swift */; }; E0B6A569AC3E81D233B43D60 /* SettingsScreenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E625B0EB2F86B37C14EF7E6 /* SettingsScreenViewModel.swift */; }; + E0FB26262689F04D66A949D7 /* TestablePreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1E227F34BE43B08E098796E /* TestablePreview.swift */; }; E14E469CD97550D0FC58F3CA /* CancellableTask.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE52983FAFB4E0998C00EE8A /* CancellableTask.swift */; }; E1DF24D085572A55C9758A2D /* Bundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6E89E530A8E92EC44301CA1 /* Bundle.swift */; }; E1F446C6B78A3A0FEA15079C /* UnsupportedRoomTimelineView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A2AC3C656E960E15B5905E05 /* UnsupportedRoomTimelineView.swift */; }; @@ -1671,6 +1673,7 @@ 93A549135E6C027A0D823BFE /* DeviceKit in Frameworks */, 6F26CBC84AE87EB4068D398B /* DTCoreText in Frameworks */, 0E08BB72B2258652CF501A8B /* LRUCache in Frameworks */, + 377980ABF16525114E72DDE2 /* Prefire in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4109,6 +4112,7 @@ 385D4C28F9DC5CF53BD9ECDB /* DeviceKit */, 593FBBF394712F2963E98A0B /* DTCoreText */, 78B28D75FF7AF8E6146DEE2A /* LRUCache */, + 9B68DE8678BF67D4612BCC16 /* Prefire */, ); productName = NSE; productReference = 0D8F620C8B314840D8602E3F /* NSE.appex */; @@ -4400,6 +4404,7 @@ ECA636DAF071C611FDC2BB57 /* Strings+Untranslated.swift in Sources */, 6EC7A40A537CFB3D526A111C /* Strings.swift in Sources */, 719E7AAD1F8E68F68F30FECD /* Task.swift in Sources */, + E0FB26262689F04D66A949D7 /* TestablePreview.swift in Sources */, DDB47D29C6865669288BF87C /* UIFont+AttributedStringBuilder.m in Sources */, 281BED345D59A9A6A99E9D98 /* UNNotificationContent.swift in Sources */, 518C93DC6516D3D018DE065F /* UNNotificationRequest.swift in Sources */, @@ -5725,7 +5730,7 @@ repositoryURL = "https://github.com/nicklockwood/GZIP"; requirement = { kind = upToNextMinorVersion; - minimumVersion = 1.3.1; + minimumVersion = 1.3.0; }; }; 80B898A3AD2AC63F3ABFC218 /* XCRemoteSwiftPackageReference "matrix-rust-components-swift" */ = { @@ -6029,6 +6034,11 @@ package = 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */; productName = GZIP; }; + 9B68DE8678BF67D4612BCC16 /* Prefire */ = { + isa = XCSwiftPackageProductDependency; + package = 22E7BA2ED466B74739AB8567 /* XCRemoteSwiftPackageReference "Prefire" */; + productName = Prefire; + }; 9C73F37731C9FDED1BB24C1C /* Collections */ = { isa = XCSwiftPackageProductDependency; package = F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */; diff --git a/ElementX/Sources/Mocks/AggregatedReactionMock.swift b/ElementX/Sources/Mocks/AggregatedReactionMock.swift index 43e34a1f2..b7890bebe 100644 --- a/ElementX/Sources/Mocks/AggregatedReactionMock.swift +++ b/ElementX/Sources/Mocks/AggregatedReactionMock.swift @@ -26,7 +26,7 @@ extension AggregatedReaction { private static func mockReaction(key: String, senderIDs: [String]) -> AggregatedReaction { let senders = senderIDs .map { id in - ReactionSender(senderID: id, timestamp: Date()) + ReactionSender(senderID: id, timestamp: Date(timeIntervalSinceReferenceDate: 0)) } return AggregatedReaction(accountOwnerID: alice, key: key, senders: senders) } diff --git a/ElementX/Sources/Other/MapLibre/MapLibreStaticMapView.swift b/ElementX/Sources/Other/MapLibre/MapLibreStaticMapView.swift index f88260a86..c078a97b1 100644 --- a/ElementX/Sources/Other/MapLibre/MapLibreStaticMapView.swift +++ b/ElementX/Sources/Other/MapLibre/MapLibreStaticMapView.swift @@ -108,7 +108,7 @@ private extension ColorScheme { } } -struct MapLibreStaticMapView_Previews: PreviewProvider { +struct MapLibreStaticMapView_Previews: PreviewProvider, TestablePreview { static var previews: some View { MapLibreStaticMapView(coordinates: CLLocationCoordinate2D(), zoomLevel: 15, diff --git a/ElementX/Sources/Other/Pills/MessageText.swift b/ElementX/Sources/Other/Pills/MessageText.swift index 91f71472b..ec87c9738 100644 --- a/ElementX/Sources/Other/Pills/MessageText.swift +++ b/ElementX/Sources/Other/Pills/MessageText.swift @@ -88,7 +88,7 @@ struct MessageText: UIViewRepresentable { // MARK: - Previews -struct MessageText_Previews: PreviewProvider { +struct MessageText_Previews: PreviewProvider, TestablePreview { private static let defaultFontContainer: AttributeContainer = { var container = AttributeContainer() container.font = UIFont.preferredFont(forTextStyle: .body) diff --git a/ElementX/Sources/Other/Pills/PillView.swift b/ElementX/Sources/Other/Pills/PillView.swift index a23e86dd8..d4634bac8 100644 --- a/ElementX/Sources/Other/Pills/PillView.swift +++ b/ElementX/Sources/Other/Pills/PillView.swift @@ -30,7 +30,7 @@ struct PillView: View { } } -struct PillView_Previews: PreviewProvider { +struct PillView_Previews: PreviewProvider, TestablePreview { static var previews: some View { PillView() } diff --git a/ElementX/Sources/Other/SwiftUI/Animation/ShimmerModifier.swift b/ElementX/Sources/Other/SwiftUI/Animation/ShimmerModifier.swift index 8926c4889..c0465945a 100644 --- a/ElementX/Sources/Other/SwiftUI/Animation/ShimmerModifier.swift +++ b/ElementX/Sources/Other/SwiftUI/Animation/ShimmerModifier.swift @@ -72,7 +72,7 @@ extension View { } } -struct ShimmerOverlay_Previews: PreviewProvider { +struct ShimmerOverlay_Previews: PreviewProvider, TestablePreview { static let viewModel = HomeScreenViewModel(userSession: MockUserSession(clientProxy: MockClientProxy(userID: ""), mediaProvider: MockMediaProvider()), attributedStringBuilder: AttributedStringBuilder(permalinkBaseURL: ServiceLocator.shared.settings.permalinkBaseURL), diff --git a/ElementX/Sources/Other/SwiftUI/Form Styles/FormButtonStyles.swift b/ElementX/Sources/Other/SwiftUI/Form Styles/FormButtonStyles.swift index 22ac77a96..8403a5be7 100644 --- a/ElementX/Sources/Other/SwiftUI/Form Styles/FormButtonStyles.swift +++ b/ElementX/Sources/Other/SwiftUI/Form Styles/FormButtonStyles.swift @@ -145,7 +145,7 @@ struct FormActionButtonStyle: ButtonStyle { } } -struct FormButtonStyles_Previews: PreviewProvider { +struct FormButtonStyles_Previews: PreviewProvider, TestablePreview { static var previews: some View { Form { Section { diff --git a/ElementX/Sources/Other/SwiftUI/Form Styles/FormRowLabelStyle.swift b/ElementX/Sources/Other/SwiftUI/Form Styles/FormRowLabelStyle.swift index fbae8b1ea..2eeff32f5 100644 --- a/ElementX/Sources/Other/SwiftUI/Form Styles/FormRowLabelStyle.swift +++ b/ElementX/Sources/Other/SwiftUI/Form Styles/FormRowLabelStyle.swift @@ -61,7 +61,7 @@ struct FormRowLabelStyle: LabelStyle { } } -struct FormRowLabelStyle_Previews: PreviewProvider { +struct FormRowLabelStyle_Previews: PreviewProvider, TestablePreview { static var previews: some View { VStack(alignment: .leading) { Label("Person", systemImage: "person") diff --git a/ElementX/Sources/Other/SwiftUI/Layout/FullscreenDialog.swift b/ElementX/Sources/Other/SwiftUI/Layout/FullscreenDialog.swift index 80782469b..83c5014ea 100644 --- a/ElementX/Sources/Other/SwiftUI/Layout/FullscreenDialog.swift +++ b/ElementX/Sources/Other/SwiftUI/Layout/FullscreenDialog.swift @@ -107,7 +107,7 @@ struct FullscreenDialog: View { } } -struct FullscreenDialog_Previews: PreviewProvider { +struct FullscreenDialog_Previews: PreviewProvider, TestablePreview { static var previews: some View { FullscreenDialog(topPadding: UIConstants.iconTopPaddingToNavigationBar) { content diff --git a/ElementX/Sources/Other/SwiftUI/Views/AvatarHeaderView.swift b/ElementX/Sources/Other/SwiftUI/Views/AvatarHeaderView.swift index 13b0337f3..e388d1c0b 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/AvatarHeaderView.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/AvatarHeaderView.swift @@ -59,7 +59,7 @@ struct AvatarHeaderView: View { } } -struct HeaderView_Previews: PreviewProvider { +struct HeaderView_Previews: PreviewProvider, TestablePreview { static var previews: some View { Form { AvatarHeaderView(avatarUrl: URL.picturesDirectory, diff --git a/ElementX/Sources/Other/SwiftUI/Views/LocationMarkerView.swift b/ElementX/Sources/Other/SwiftUI/Views/LocationMarkerView.swift index ac093e740..7209d2d95 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/LocationMarkerView.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/LocationMarkerView.swift @@ -26,7 +26,7 @@ struct LocationMarkerView: View { } } -struct LocationMarkerView_Previews: PreviewProvider { +struct LocationMarkerView_Previews: PreviewProvider, TestablePreview { static var previews: some View { VStack(spacing: 30) { LocationMarkerView() diff --git a/ElementX/Sources/Other/SwiftUI/Views/MatrixUserShareLink.swift b/ElementX/Sources/Other/SwiftUI/Views/MatrixUserShareLink.swift index cb63d63e9..dc8eb9bed 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/MatrixUserShareLink.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/MatrixUserShareLink.swift @@ -35,7 +35,7 @@ struct MatrixUserShareLink: View { } } -struct MatrixUserPermalink_Previews: PreviewProvider { +struct MatrixUserPermalink_Previews: PreviewProvider, TestablePreview { static var previews: some View { MatrixUserShareLink(userID: "@someone:somewhere.org") { Label("Share", systemImage: "square.and.arrow.up") diff --git a/ElementX/Sources/Other/SwiftUI/Views/PlaceholderAvatarImage.swift b/ElementX/Sources/Other/SwiftUI/Views/PlaceholderAvatarImage.swift index 6433a56dd..8aed5699b 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/PlaceholderAvatarImage.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/PlaceholderAvatarImage.swift @@ -66,7 +66,7 @@ struct PlaceholderAvatarImage: View { } } -struct PlaceholderAvatarImage_Previews: PreviewProvider { +struct PlaceholderAvatarImage_Previews: PreviewProvider, TestablePreview { static var previews: some View { VStack(spacing: 75) { PlaceholderAvatarImage(name: "Xavier", contentID: "@userid1:matrix.org") diff --git a/ElementX/Sources/Other/SwiftUI/Views/UserProfileCell.swift b/ElementX/Sources/Other/SwiftUI/Views/UserProfileCell.swift index 2cf5c57b2..68d43cd8b 100644 --- a/ElementX/Sources/Other/SwiftUI/Views/UserProfileCell.swift +++ b/ElementX/Sources/Other/SwiftUI/Views/UserProfileCell.swift @@ -89,7 +89,7 @@ private extension MembershipState { } } -struct UserProfileCell_Previews: PreviewProvider { +struct UserProfileCell_Previews: PreviewProvider, TestablePreview { static let action: () -> Void = { } static var previews: some View { diff --git a/ElementX/Sources/Other/TestablePreview.swift b/ElementX/Sources/Other/TestablePreview.swift index 2b92315ee..e138b9cd3 100644 --- a/ElementX/Sources/Other/TestablePreview.swift +++ b/ElementX/Sources/Other/TestablePreview.swift @@ -18,4 +18,4 @@ import SwiftUI import Prefire -protocol TestablePreviewProvider: PreviewProvider, PrefireProvider { } +protocol TestablePreview: PrefireProvider { } diff --git a/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift b/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift index 969ef1386..f40a388c6 100644 --- a/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift +++ b/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift @@ -64,7 +64,7 @@ struct UserIndicatorModalView: View { } } -struct UserIndicatorModalView_Previews: PreviewProvider { +struct UserIndicatorModalView_Previews: PreviewProvider, TestablePreview { static var previews: some View { Group { UserIndicatorModalView(indicator: UserIndicator(type: .modal, diff --git a/ElementX/Sources/Other/UserIndicator/UserIndicatorToastView.swift b/ElementX/Sources/Other/UserIndicator/UserIndicatorToastView.swift index 164587a83..d1044d8db 100644 --- a/ElementX/Sources/Other/UserIndicator/UserIndicatorToastView.swift +++ b/ElementX/Sources/Other/UserIndicator/UserIndicatorToastView.swift @@ -52,7 +52,7 @@ struct UserIndicatorToastView: View { } } -struct UserIndicatorToastView_Previews: PreviewProvider { +struct UserIndicatorToastView_Previews: PreviewProvider, TestablePreview { static var previews: some View { VStack(spacing: 30) { UserIndicatorToastView(indicator: UserIndicator(title: "Successfully logged in", diff --git a/ElementX/Sources/Screens/AnalyticsPromptScreen/View/AnalyticsPromptScreen.swift b/ElementX/Sources/Screens/AnalyticsPromptScreen/View/AnalyticsPromptScreen.swift index f94db5d7f..0cd4f2b87 100644 --- a/ElementX/Sources/Screens/AnalyticsPromptScreen/View/AnalyticsPromptScreen.swift +++ b/ElementX/Sources/Screens/AnalyticsPromptScreen/View/AnalyticsPromptScreen.swift @@ -107,7 +107,7 @@ struct AnalyticsPromptScreen: View { // MARK: - Previews -struct AnalyticsPromptScreen_Previews: PreviewProvider { +struct AnalyticsPromptScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = AnalyticsPromptScreenViewModel(termsURL: ServiceLocator.shared.settings.analyticsConfiguration.termsURL) static var previews: some View { AnalyticsPromptScreen(context: viewModel.context) diff --git a/ElementX/Sources/Screens/AnalyticsPromptScreen/View/RoundedLabelItem.swift b/ElementX/Sources/Screens/AnalyticsPromptScreen/View/RoundedLabelItem.swift index a45c8123b..9aaf1ef81 100644 --- a/ElementX/Sources/Screens/AnalyticsPromptScreen/View/RoundedLabelItem.swift +++ b/ElementX/Sources/Screens/AnalyticsPromptScreen/View/RoundedLabelItem.swift @@ -64,7 +64,7 @@ private struct CheckmarkLabelStyle: LabelStyle { // MARK: - Previews -struct AnalyticsPromptScreenCheckmarkItem_Previews: PreviewProvider { +struct AnalyticsPromptScreenCheckmarkItem_Previews: PreviewProvider, TestablePreview { static let strings = AnalyticsPromptScreenStrings(termsURL: ServiceLocator.shared.settings.analyticsConfiguration.termsURL) @ViewBuilder diff --git a/ElementX/Sources/Screens/Authentication/AuthenticationIconImage.swift b/ElementX/Sources/Screens/Authentication/AuthenticationIconImage.swift index 2f95d6db0..727333e4f 100644 --- a/ElementX/Sources/Screens/Authentication/AuthenticationIconImage.swift +++ b/ElementX/Sources/Screens/Authentication/AuthenticationIconImage.swift @@ -41,7 +41,7 @@ struct AuthenticationIconImage: View { // MARK: - Previews -struct AuthenticationIconImage_Previews: PreviewProvider { +struct AuthenticationIconImage_Previews: PreviewProvider, TestablePreview { static var previews: some View { HStack(spacing: 20) { AuthenticationIconImage(image: Image(asset: Asset.Images.serverSelectionIcon), insets: 19) diff --git a/ElementX/Sources/Screens/Authentication/LoginScreen/View/LoginScreen.swift b/ElementX/Sources/Screens/Authentication/LoginScreen/View/LoginScreen.swift index fd8d332ee..c43ef9eb9 100644 --- a/ElementX/Sources/Screens/Authentication/LoginScreen/View/LoginScreen.swift +++ b/ElementX/Sources/Screens/Authentication/LoginScreen/View/LoginScreen.swift @@ -132,7 +132,7 @@ struct LoginScreen: View { // MARK: - Previews -struct LoginScreen_Previews: PreviewProvider { +struct LoginScreen_Previews: PreviewProvider, TestablePreview { static let credentialsViewModel: LoginScreenViewModel = { let viewModel = LoginScreenViewModel(homeserver: .mockMatrixDotOrg, slidingSyncLearnMoreURL: ServiceLocator.shared.settings.slidingSyncLearnMoreURL) viewModel.context.username = "alice" diff --git a/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift b/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift index 6ca3c27bd..64367bb70 100644 --- a/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift +++ b/ElementX/Sources/Screens/Authentication/ServerConfirmationScreen/View/ServerConfirmationScreen.swift @@ -73,7 +73,7 @@ struct ServerConfirmationScreen: View { // MARK: - Previews -struct ServerConfirmationScreen_Previews: PreviewProvider { +struct ServerConfirmationScreen_Previews: PreviewProvider, TestablePreview { static let loginViewModel = ServerConfirmationScreenViewModel(authenticationService: MockAuthenticationServiceProxy(), authenticationFlow: .login) static let registerViewModel = ServerConfirmationScreenViewModel(authenticationService: MockAuthenticationServiceProxy(), diff --git a/ElementX/Sources/Screens/Authentication/ServerSelectionScreen/View/ServerSelectionScreen.swift b/ElementX/Sources/Screens/Authentication/ServerSelectionScreen/View/ServerSelectionScreen.swift index bfc4a9c47..b5d2e1d90 100644 --- a/ElementX/Sources/Screens/Authentication/ServerSelectionScreen/View/ServerSelectionScreen.swift +++ b/ElementX/Sources/Screens/Authentication/ServerSelectionScreen/View/ServerSelectionScreen.swift @@ -101,7 +101,7 @@ struct ServerSelectionScreen: View { // MARK: - Previews -struct ServerSelection_Previews: PreviewProvider { +struct ServerSelection_Previews: PreviewProvider, TestablePreview { static var previews: some View { ForEach(MockServerSelectionScreenState.allCases, id: \.self) { state in NavigationStack { diff --git a/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift b/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift index 9731cf67c..22c00d358 100644 --- a/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift +++ b/ElementX/Sources/Screens/Authentication/SoftLogoutScreen/View/SoftLogoutScreen.swift @@ -174,7 +174,7 @@ struct SoftLogoutScreen: View { // MARK: - Previews -struct SoftLogoutScreen_Previews: PreviewProvider { +struct SoftLogoutScreen_Previews: PreviewProvider, TestablePreview { static var previews: some View { ForEach(MockSoftLogoutScreenState.allCases) { state in screen(for: state.viewModel) diff --git a/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitingDialog.swift b/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitingDialog.swift index 0501c6fda..9e8268f3d 100644 --- a/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitingDialog.swift +++ b/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitingDialog.swift @@ -82,7 +82,7 @@ struct WaitingDialog: View { } } -struct WaitingDialog_Previews: PreviewProvider { +struct WaitingDialog_Previews: PreviewProvider, TestablePreview { static let viewModel = WaitlistScreenViewModel(homeserver: .mockMatrixDotOrg) static var previews: some View { diff --git a/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitlistScreen.swift b/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitlistScreen.swift index 7f224dfc9..26231cc79 100644 --- a/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitlistScreen.swift +++ b/ElementX/Sources/Screens/Authentication/WaitlistScreen/View/WaitlistScreen.swift @@ -70,7 +70,7 @@ struct WaitlistScreen: View { // MARK: - Previews -struct WaitlistScreen_Previews: PreviewProvider { +struct WaitlistScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = WaitlistScreenViewModel(homeserver: .mockMatrixDotOrg) static let successViewModel = { let viewModel = WaitlistScreenViewModel(homeserver: .mockMatrixDotOrg) diff --git a/ElementX/Sources/Screens/BugReportScreen/View/BugReportScreen.swift b/ElementX/Sources/Screens/BugReportScreen/View/BugReportScreen.swift index cd6690f59..1b75cf0b2 100644 --- a/ElementX/Sources/Screens/BugReportScreen/View/BugReportScreen.swift +++ b/ElementX/Sources/Screens/BugReportScreen/View/BugReportScreen.swift @@ -139,7 +139,7 @@ struct BugReportScreen: View { // MARK: - Previews -struct BugReport_Previews: PreviewProvider { +struct BugReport_Previews: PreviewProvider, TestablePreview { static let viewModel = BugReportScreenViewModel(bugReportService: BugReportServiceMock(), userID: "@mock.client.com", deviceID: nil, diff --git a/ElementX/Sources/Screens/ComposerToolbar/View/ComposerToolbar.swift b/ElementX/Sources/Screens/ComposerToolbar/View/ComposerToolbar.swift index 6a7dc30ed..aa40f2767 100644 --- a/ElementX/Sources/Screens/ComposerToolbar/View/ComposerToolbar.swift +++ b/ElementX/Sources/Screens/ComposerToolbar/View/ComposerToolbar.swift @@ -174,7 +174,7 @@ struct ComposerToolbar: View { } } -struct ComposerToolbar_Previews: PreviewProvider { +struct ComposerToolbar_Previews: PreviewProvider, TestablePreview { static var previews: some View { ComposerToolbar.mock() } diff --git a/ElementX/Sources/Screens/ComposerToolbar/View/MessageComposer.swift b/ElementX/Sources/Screens/ComposerToolbar/View/MessageComposer.swift index 75a720dcd..a41f0039c 100644 --- a/ElementX/Sources/Screens/ComposerToolbar/View/MessageComposer.swift +++ b/ElementX/Sources/Screens/ComposerToolbar/View/MessageComposer.swift @@ -173,7 +173,7 @@ private struct MessageComposerHeaderLabelStyle: LabelStyle { } } -struct MessageComposer_Previews: PreviewProvider { +struct MessageComposer_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static let replyTypes: [TimelineItemReplyDetails] = [ diff --git a/ElementX/Sources/Screens/ComposerToolbar/View/RoomAttachmentPicker.swift b/ElementX/Sources/Screens/ComposerToolbar/View/RoomAttachmentPicker.swift index a86032a7c..32af2facf 100644 --- a/ElementX/Sources/Screens/ComposerToolbar/View/RoomAttachmentPicker.swift +++ b/ElementX/Sources/Screens/ComposerToolbar/View/RoomAttachmentPicker.swift @@ -130,7 +130,7 @@ struct RoomAttachmentPicker: View { } } -struct RoomAttachmentPicker_Previews: PreviewProvider { +struct RoomAttachmentPicker_Previews: PreviewProvider, TestablePreview { static let viewModel = ComposerToolbarViewModel(wysiwygViewModel: WysiwygComposerViewModel()) static var previews: some View { diff --git a/ElementX/Sources/Screens/CreatePollScreen/View/CreatePollScreen.swift b/ElementX/Sources/Screens/CreatePollScreen/View/CreatePollScreen.swift index af96d606b..101e8f7ba 100644 --- a/ElementX/Sources/Screens/CreatePollScreen/View/CreatePollScreen.swift +++ b/ElementX/Sources/Screens/CreatePollScreen/View/CreatePollScreen.swift @@ -161,7 +161,7 @@ private struct CreatePollOptionView: View { // MARK: - Previews -struct CreatePollScreen_Previews: PreviewProvider { +struct CreatePollScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = CreatePollScreenViewModel() static var previews: some View { NavigationStack { diff --git a/ElementX/Sources/Screens/CreateRoom/View/CreateRoomScreen.swift b/ElementX/Sources/Screens/CreateRoom/View/CreateRoomScreen.swift index 6ddc1e0d9..fdab88140 100644 --- a/ElementX/Sources/Screens/CreateRoom/View/CreateRoomScreen.swift +++ b/ElementX/Sources/Screens/CreateRoom/View/CreateRoomScreen.swift @@ -204,7 +204,7 @@ struct CreateRoomScreen: View { // MARK: - Previews -struct CreateRoom_Previews: PreviewProvider { +struct CreateRoom_Previews: PreviewProvider, TestablePreview { static let viewModel = { let userSession = MockUserSession(clientProxy: MockClientProxy(userID: "@userid:example.com"), mediaProvider: MockMediaProvider()) diff --git a/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreen.swift b/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreen.swift index f1404cf5a..36f2526fb 100644 --- a/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreen.swift +++ b/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreen.swift @@ -100,7 +100,7 @@ private struct IsSearching: ViewModifier { // MARK: - Previews -struct EmojiPickerScreen_Previews: PreviewProvider { +struct EmojiPickerScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = EmojiPickerScreenViewModel(emojiProvider: EmojiProvider()) static var previews: some View { diff --git a/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreenHeaderView.swift b/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreenHeaderView.swift index 546f8c1fd..4e1bd239f 100644 --- a/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreenHeaderView.swift +++ b/ElementX/Sources/Screens/EmojiPickerScreen/View/EmojiPickerScreenHeaderView.swift @@ -29,10 +29,10 @@ struct EmojiPickerScreenHeaderView: View { } } -struct EmojiPickerScreenHeaderView_Previews: PreviewProvider { +struct EmojiPickerScreenHeaderView_Previews: PreviewProvider, TestablePreview { static var previews: some View { Group { - EmojiPickerScreenHeaderView(title: "") + EmojiPickerScreenHeaderView(title: "Title") } } } diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift index c2d5055b2..f3be00267 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift @@ -309,7 +309,7 @@ struct HomeScreen: View { // MARK: - Previews -struct HomeScreen_Previews: PreviewProvider { +struct HomeScreen_Previews: PreviewProvider, TestablePreview { static let loadingViewModel = viewModel(.loading) static let loadedViewModel = viewModel(.loaded(.mockRooms)) static let emptyViewModel = viewModel(.loaded([])) diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenEmptyStateView.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenEmptyStateView.swift index 9fe9d0e4d..9616a06aa 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenEmptyStateView.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenEmptyStateView.swift @@ -101,7 +101,7 @@ struct HomeScreenEmptyStateLayout: Layout { // MARK: - Previews -struct HomeScreenEmptyStateView_Previews: PreviewProvider { +struct HomeScreenEmptyStateView_Previews: PreviewProvider, TestablePreview { static var previews: some View { HomeScreenEmptyStateView(context: viewModel.context) .previewDisplayName("View") diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenInvitesButton.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenInvitesButton.swift index 7bf8be3c4..716186a59 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenInvitesButton.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenInvitesButton.swift @@ -49,7 +49,7 @@ struct HomeScreenInvitesButton: View { } } -struct HomeScreenInvitesButton_Previews: PreviewProvider { +struct HomeScreenInvitesButton_Previews: PreviewProvider, TestablePreview { static var previews: some View { HomeScreenInvitesButton(title: "Invites", hasBadge: true, action: { }) .previewDisplayName("Badge on") diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift index 45a874e27..9b1cad969 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreenRoomCell.swift @@ -182,7 +182,7 @@ private extension View { } } -struct HomeScreenRoomCell_Previews: PreviewProvider { +struct HomeScreenRoomCell_Previews: PreviewProvider, TestablePreview { static var previews: some View { let summaryProvider = MockRoomSummaryProvider(state: .loaded(.mockRooms)) @@ -205,7 +205,7 @@ struct HomeScreenRoomCell_Previews: PreviewProvider { roomId: details.id, name: details.name, hasUnreads: details.unreadNotificationCount > 0, - timestamp: Date.now.formattedMinimal(), + timestamp: Date(timeIntervalSinceReferenceDate: 0).formattedMinimal(), lastMessage: details.lastMessage, notificationMode: details.notificationMode) } diff --git a/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreen.swift b/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreen.swift index 59fb2a99a..c20991091 100644 --- a/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreen.swift +++ b/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreen.swift @@ -142,7 +142,7 @@ struct InviteUsersScreen: View { // MARK: - Previews -struct InviteUsersScreen_Previews: PreviewProvider { +struct InviteUsersScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = { let userDiscoveryService = UserDiscoveryServiceMock() userDiscoveryService.fetchSuggestionsReturnValue = .success([.mockAlice]) diff --git a/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreenSelectedItem.swift b/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreenSelectedItem.swift index f05b4d0ff..14654cb66 100644 --- a/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreenSelectedItem.swift +++ b/ElementX/Sources/Screens/InviteUsersScreen/View/InviteUsersScreenSelectedItem.swift @@ -54,7 +54,7 @@ struct InviteUsersScreenSelectedItem: View { } } -struct InviteUsersScreenSelectedItem_Previews: PreviewProvider { +struct InviteUsersScreenSelectedItem_Previews: PreviewProvider, TestablePreview { static let people: [UserProfileProxy] = [.mockAlice, .mockVerbose] static var previews: some View { diff --git a/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreen.swift b/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreen.swift index 17f8c90c0..95208bd8d 100644 --- a/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreen.swift +++ b/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreen.swift @@ -63,7 +63,7 @@ struct InvitesScreen: View { // MARK: - Previews -struct InvitesScreen_Previews: PreviewProvider { +struct InvitesScreen_Previews: PreviewProvider, TestablePreview { static var previews: some View { NavigationView { InvitesScreen(context: InvitesScreenViewModel.noInvites.context) diff --git a/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreenCell.swift b/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreenCell.swift index ebbd9538f..e8ec356f4 100644 --- a/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreenCell.swift +++ b/ElementX/Sources/Screens/InvitesScreen/View/InvitesScreenCell.swift @@ -155,7 +155,7 @@ struct InvitesScreenCell: View { } } -struct InvitesScreenCell_Previews: PreviewProvider { +struct InvitesScreenCell_Previews: PreviewProvider, TestablePreview { static var previews: some View { ScrollView { VStack(spacing: 0) { diff --git a/ElementX/Sources/Screens/LocationSharing/View/StaticLocationScreen.swift b/ElementX/Sources/Screens/LocationSharing/View/StaticLocationScreen.swift index 1734c2fa9..2c392e204 100644 --- a/ElementX/Sources/Screens/LocationSharing/View/StaticLocationScreen.swift +++ b/ElementX/Sources/Screens/LocationSharing/View/StaticLocationScreen.swift @@ -156,7 +156,7 @@ struct StaticLocationScreen: View { // MARK: - Previews -struct StaticLocationScreenViewer_Previews: PreviewProvider { +struct StaticLocationScreenViewer_Previews: PreviewProvider, TestablePreview { static var previews: some View { NavigationStack { StaticLocationScreen(context: StaticLocationScreenViewModel(interactionMode: .picker).context) diff --git a/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift b/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift index 34187ac47..382019286 100644 --- a/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift +++ b/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift @@ -113,7 +113,7 @@ private class PreviewItem: NSObject, QLPreviewItem { // MARK: - Previews -struct MediaUploadPreviewScreen_Previews: PreviewProvider { +struct MediaUploadPreviewScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = MediaUploadPreviewScreenViewModel(userIndicatorController: UserIndicatorControllerMock.default, roomProxy: RoomProxyMock(), mediaUploadingPreprocessor: MediaUploadingPreprocessor(), diff --git a/ElementX/Sources/Screens/MessageForwardingScreen/View/MessageForwardingScreen.swift b/ElementX/Sources/Screens/MessageForwardingScreen/View/MessageForwardingScreen.swift index 33891be13..838ad90b7 100644 --- a/ElementX/Sources/Screens/MessageForwardingScreen/View/MessageForwardingScreen.swift +++ b/ElementX/Sources/Screens/MessageForwardingScreen/View/MessageForwardingScreen.swift @@ -96,7 +96,7 @@ private struct MessageForwardingRoomCell: View { // MARK: - Previews -struct MessageForwardingScreen_Previews: PreviewProvider { +struct MessageForwardingScreen_Previews: PreviewProvider, TestablePreview { static var previews: some View { let summaryProvider = MockRoomSummaryProvider(state: .loaded(.mockRooms)) let viewModel = MessageForwardingScreenViewModel(roomSummaryProvider: summaryProvider, sourceRoomID: "") diff --git a/ElementX/Sources/Screens/MigrationScreen/View/MigrationScreen.swift b/ElementX/Sources/Screens/MigrationScreen/View/MigrationScreen.swift index 7c0eff3ae..0c450f149 100644 --- a/ElementX/Sources/Screens/MigrationScreen/View/MigrationScreen.swift +++ b/ElementX/Sources/Screens/MigrationScreen/View/MigrationScreen.swift @@ -50,7 +50,7 @@ struct MigrationScreen: View { // MARK: - Previews -struct MigrationScreen_Previews: PreviewProvider { +struct MigrationScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = MigrationScreenViewModel() static var previews: some View { MigrationScreen(context: viewModel.context) diff --git a/ElementX/Sources/Screens/OnboardingScreen/View/OnboardingScreen.swift b/ElementX/Sources/Screens/OnboardingScreen/View/OnboardingScreen.swift index 55195a2ff..fff096328 100644 --- a/ElementX/Sources/Screens/OnboardingScreen/View/OnboardingScreen.swift +++ b/ElementX/Sources/Screens/OnboardingScreen/View/OnboardingScreen.swift @@ -97,7 +97,7 @@ struct OnboardingScreen: View { // MARK: - Previews -struct OnboardingScreen_Previews: PreviewProvider { +struct OnboardingScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = OnboardingScreenViewModel() static var previews: some View { diff --git a/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift b/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift index e04b0a115..0778f200d 100644 --- a/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift +++ b/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift @@ -33,7 +33,7 @@ struct PlaceholderScreen: View { } } -struct PlaceholderScreen_Previews: PreviewProvider { +struct PlaceholderScreen_Previews: PreviewProvider, TestablePreview { static var previews: some View { PlaceholderScreen() .previewDisplayName("Screen") diff --git a/ElementX/Sources/Screens/Other/SplashScreenCoordinator.swift b/ElementX/Sources/Screens/Other/SplashScreenCoordinator.swift index 743e36690..b881d2c2e 100644 --- a/ElementX/Sources/Screens/Other/SplashScreenCoordinator.swift +++ b/ElementX/Sources/Screens/Other/SplashScreenCoordinator.swift @@ -31,7 +31,7 @@ struct SplashScreen: View { } } -struct SplashScreen_Previews: PreviewProvider { +struct SplashScreen_Previews: PreviewProvider, TestablePreview { static var previews: some View { SplashScreen() } diff --git a/ElementX/Sources/Screens/ReportContentScreen/View/ReportContentScreen.swift b/ElementX/Sources/Screens/ReportContentScreen/View/ReportContentScreen.swift index 580211ae2..8c4909e9c 100644 --- a/ElementX/Sources/Screens/ReportContentScreen/View/ReportContentScreen.swift +++ b/ElementX/Sources/Screens/ReportContentScreen/View/ReportContentScreen.swift @@ -80,7 +80,7 @@ struct ReportContentScreen: View { // MARK: - Previews -struct ReportContentScreen_Previews: PreviewProvider { +struct ReportContentScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = ReportContentScreenViewModel(eventID: "", senderID: "", roomProxy: RoomProxyMock(with: .init(displayName: nil))) diff --git a/ElementX/Sources/Screens/RoomDetailsEditScreen/View/RoomDetailsEditScreen.swift b/ElementX/Sources/Screens/RoomDetailsEditScreen/View/RoomDetailsEditScreen.swift index 816e47df2..2df2183ed 100644 --- a/ElementX/Sources/Screens/RoomDetailsEditScreen/View/RoomDetailsEditScreen.swift +++ b/ElementX/Sources/Screens/RoomDetailsEditScreen/View/RoomDetailsEditScreen.swift @@ -158,17 +158,17 @@ struct RoomDetailsEditScreen: View { // MARK: - Previews -struct RoomDetailsEditScreen_Previews: PreviewProvider { +struct RoomDetailsEditScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomDetailsEditScreenViewModel(accountOwner: RoomMemberProxyMock.mockAlice, mediaProvider: MockMediaProvider(), - roomProxy: RoomProxyMock(with: .init(name: "Room", displayName: "Room")), + roomProxy: RoomProxyMock(with: .init(id: "test_id", name: "Room", displayName: "Room")), userIndicatorController: UserIndicatorControllerMock.default) static let readOnlyViewModel = { let accountOwner = RoomMemberProxyMock.mockOwner(allowedStateEvents: []) return RoomDetailsEditScreenViewModel(accountOwner: accountOwner, mediaProvider: MockMediaProvider(), - roomProxy: RoomProxyMock(with: .init(name: "Room", displayName: "Room")), + roomProxy: RoomProxyMock(with: .init(id: "test_id", name: "Room", displayName: "Room")), userIndicatorController: UserIndicatorControllerMock.default) }() diff --git a/ElementX/Sources/Screens/RoomDetailsScreen/View/RoomDetailsScreen.swift b/ElementX/Sources/Screens/RoomDetailsScreen/View/RoomDetailsScreen.swift index 2f8f0ec47..68a487f32 100644 --- a/ElementX/Sources/Screens/RoomDetailsScreen/View/RoomDetailsScreen.swift +++ b/ElementX/Sources/Screens/RoomDetailsScreen/View/RoomDetailsScreen.swift @@ -257,14 +257,14 @@ struct RoomDetailsScreen: View { // MARK: - Previews -struct RoomDetailsScreen_Previews: PreviewProvider { +struct RoomDetailsScreen_Previews: PreviewProvider, TestablePreview { static let genericRoomViewModel = { let members: [RoomMemberProxyMock] = [ .mockAlice, .mockBob, .mockCharlie ] - let roomProxy = RoomProxyMock(with: .init(displayName: "Room A", + let roomProxy = RoomProxyMock(with: .init(id: "room_a_id", displayName: "Room A", topic: "Bacon ipsum dolor amet short ribs buffalo pork loin cupim frankfurter. Burgdoggen pig shankle biltong flank ham jowl sirloin bacon cow. T-bone alcatra boudin beef spare ribs pig fatback jerky swine short ribs shankle chislic frankfurter pork loin. Chicken tri-tip bresaola t-bone pastrami brisket.", // swiftlint:disable:this line_length isDirect: false, isEncrypted: true, @@ -289,7 +289,7 @@ struct RoomDetailsScreen_Previews: PreviewProvider { .mockDan ] - let roomProxy = RoomProxyMock(with: .init(displayName: "DM Room", + let roomProxy = RoomProxyMock(with: .init(id: "dm_room_id", displayName: "DM Room", topic: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", isDirect: true, isEncrypted: true, @@ -312,7 +312,7 @@ struct RoomDetailsScreen_Previews: PreviewProvider { .mockBob, .mockCharlie ] - let roomProxy = RoomProxyMock(with: .init(displayName: "Room A", + let roomProxy = RoomProxyMock(with: .init(id: "simple_room_id", displayName: "Room A", isDirect: false, isEncrypted: false, members: members)) diff --git a/ElementX/Sources/Screens/RoomMemberDetailsScreen/View/RoomMemberDetailsScreen.swift b/ElementX/Sources/Screens/RoomMemberDetailsScreen/View/RoomMemberDetailsScreen.swift index fb1563a74..e17da6335 100644 --- a/ElementX/Sources/Screens/RoomMemberDetailsScreen/View/RoomMemberDetailsScreen.swift +++ b/ElementX/Sources/Screens/RoomMemberDetailsScreen/View/RoomMemberDetailsScreen.swift @@ -100,7 +100,7 @@ struct RoomMemberDetailsScreen: View { // MARK: - Previews -struct RoomMemberDetailsScreen_Previews: PreviewProvider { +struct RoomMemberDetailsScreen_Previews: PreviewProvider, TestablePreview { static let roomProxyMock = RoomProxyMock(with: .init(displayName: "")) static let otherUserViewModel = { let member = RoomMemberProxyMock.mockDan diff --git a/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreen.swift b/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreen.swift index 1b5c3cfc7..151dfce70 100644 --- a/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreen.swift +++ b/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreen.swift @@ -74,7 +74,7 @@ struct RoomMembersListScreen: View { // MARK: - Previews -struct RoomMembersListScreen_Previews: PreviewProvider { +struct RoomMembersListScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = { let members: [RoomMemberProxyMock] = [ .mockAlice, diff --git a/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreenMemberCell.swift b/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreenMemberCell.swift index 4accb5c0f..bf49b76bd 100644 --- a/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreenMemberCell.swift +++ b/ElementX/Sources/Screens/RoomMemberListScreen/View/RoomMembersListScreenMemberCell.swift @@ -46,7 +46,7 @@ struct RoomMembersListScreenMemberCell: View { } } -struct RoomMembersListMemberCell_Previews: PreviewProvider { +struct RoomMembersListMemberCell_Previews: PreviewProvider, TestablePreview { static var previews: some View { let members: [RoomMemberProxyMock] = [ .mockAlice, diff --git a/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsCustomSectionView.swift b/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsCustomSectionView.swift index d0d6f9bb2..21c6e5910 100644 --- a/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsCustomSectionView.swift +++ b/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsCustomSectionView.swift @@ -37,7 +37,7 @@ struct RoomNotificationSettingsCustomSectionView: View { } } -struct RoomNotificationSettingsCustomSectionView_Previews: PreviewProvider { +struct RoomNotificationSettingsCustomSectionView_Previews: PreviewProvider, TestablePreview { static let viewModel = { let notificationSettingsProxy = NotificationSettingsProxyMock(with: .init(defaultRoomMode: .allMessages, roomMode: .mentionsAndKeywordsOnly)) diff --git a/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsScreen.swift b/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsScreen.swift index f70bbe296..4b493345d 100644 --- a/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsScreen.swift +++ b/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsScreen.swift @@ -79,7 +79,7 @@ struct RoomNotificationSettingsScreen: View { // MARK: - Previews -struct RoomNotificationSettingsScreen_Previews: PreviewProvider { +struct RoomNotificationSettingsScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = { let notificationSettingsProxy = NotificationSettingsProxyMock(with: .init(defaultRoomMode: .mentionsAndKeywordsOnly, roomMode: .mentionsAndKeywordsOnly)) diff --git a/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsUserDefinedScreen.swift b/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsUserDefinedScreen.swift index b0e36dc62..f359d2519 100644 --- a/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsUserDefinedScreen.swift +++ b/ElementX/Sources/Screens/RoomNotificationSettingsScreen/View/RoomNotificationSettingsUserDefinedScreen.swift @@ -48,7 +48,7 @@ struct RoomNotificationSettingsUserDefinedScreen: View { // MARK: - Previews -struct RoomNotificationSettingsUserDefinedScreen_Previews: PreviewProvider { +struct RoomNotificationSettingsUserDefinedScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = { let notificationSettingsProxy = NotificationSettingsProxyMock(with: .init(defaultRoomMode: .mentionsAndKeywordsOnly, roomMode: .mentionsAndKeywordsOnly)) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Replies/TimelineReplyView.swift b/ElementX/Sources/Screens/RoomScreen/View/Replies/TimelineReplyView.swift index 1591e22ac..1cc616e99 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Replies/TimelineReplyView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Replies/TimelineReplyView.swift @@ -179,7 +179,7 @@ struct TimelineReplyView: View { } } -struct TimelineReplyView_Previews: PreviewProvider { +struct TimelineReplyView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift b/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift index 01e6d6f60..093533419 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/RoomHeaderView.swift @@ -47,7 +47,7 @@ struct RoomHeaderView: View { } } -struct RoomHeaderView_Previews: PreviewProvider { +struct RoomHeaderView_Previews: PreviewProvider, TestablePreview { static var previews: some View { bodyPlain bodyEncrypted diff --git a/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift b/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift index 09f75a0c6..12885f5ea 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/RoomScreen.swift @@ -163,7 +163,7 @@ struct RoomScreen: View { // MARK: - Previews -struct RoomScreen_Previews: PreviewProvider { +struct RoomScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel(timelineController: MockRoomTimelineController(), mediaProvider: MockMediaProvider(), roomProxy: RoomProxyMock(with: .init(displayName: "Preview room")), diff --git a/ElementX/Sources/Screens/RoomScreen/View/Style/LongPressWithFeedback.swift b/ElementX/Sources/Screens/RoomScreen/View/Style/LongPressWithFeedback.swift index 87f28fa78..ec6fc2fb7 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Style/LongPressWithFeedback.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Style/LongPressWithFeedback.swift @@ -62,7 +62,7 @@ extension View { } } -struct LongPressWithFeedback_Previews: PreviewProvider { +struct LongPressWithFeedback_Previews: PreviewProvider, TestablePreview { static var previews: some View { Preview() } struct Preview: View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Style/SwipeToReplyView.swift b/ElementX/Sources/Screens/RoomScreen/View/Style/SwipeToReplyView.swift index f839ec083..e06840826 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Style/SwipeToReplyView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Style/SwipeToReplyView.swift @@ -34,7 +34,7 @@ struct SwipeToReplyView: View { } } -struct SwipeToReplyView_Previews: PreviewProvider { +struct SwipeToReplyView_Previews: PreviewProvider, TestablePreview { static let timelineItem = TextRoomTimelineItem(id: .init(timelineID: ""), timestamp: "", isOutgoing: true, diff --git a/ElementX/Sources/Screens/RoomScreen/View/Style/ThreadDecorator.swift b/ElementX/Sources/Screens/RoomScreen/View/Style/ThreadDecorator.swift index 916ef8865..db7e5cd85 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Style/ThreadDecorator.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Style/ThreadDecorator.swift @@ -33,7 +33,7 @@ struct ThreadDecorator: View { } } -struct ThreadDecorator_Previews: PreviewProvider { +struct ThreadDecorator_Previews: PreviewProvider, TestablePreview { static var previews: some View { ThreadDecorator() } diff --git a/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemBubbledStylerView.swift b/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemBubbledStylerView.swift index 23b5589c3..9929cd0e9 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemBubbledStylerView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemBubbledStylerView.swift @@ -396,7 +396,7 @@ private extension EventBasedTimelineItemProtocol { } } -struct TimelineItemBubbledStylerView_Previews: PreviewProvider { +struct TimelineItemBubbledStylerView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemPlainStylerView.swift b/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemPlainStylerView.swift index a9d0d481c..8fcda3ae6 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemPlainStylerView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineItemPlainStylerView.swift @@ -140,7 +140,7 @@ struct TimelineItemPlainStylerView: View { } } -struct TimelineItemPlainStylerView_Previews: PreviewProvider { +struct TimelineItemPlainStylerView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock // These akwats include a reply diff --git a/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineStyler.swift b/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineStyler.swift index 06e754e42..218d1c5f1 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineStyler.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Style/TimelineStyler.swift @@ -35,7 +35,7 @@ struct TimelineStyler: View { } } -struct TimelineItemStyler_Previews: TestablePreviewProvider { +struct TimelineItemStyler_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static let base = TextRoomTimelineItem(id: .random, timestamp: "Now", isOutgoing: true, isEditable: false, isThreaded: false, sender: .test, content: .init(body: "Test")) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/ReactionsSummaryView.swift b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/ReactionsSummaryView.swift index 1ecfbb3eb..5dd32586b 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/ReactionsSummaryView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/ReactionsSummaryView.swift @@ -148,7 +148,7 @@ private struct ReactionSummarySenderView: View { } } -struct ReactionsSummaryView_Previews: PreviewProvider { +struct ReactionsSummaryView_Previews: PreviewProvider, TestablePreview { static var previews: some View { ReactionsSummaryView(reactions: AggregatedReaction.mockReactions, members: [:], diff --git a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineDeliveryStatusView.swift b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineDeliveryStatusView.swift index f3312370d..ecd8dc139 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineDeliveryStatusView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineDeliveryStatusView.swift @@ -40,7 +40,7 @@ struct TimelineDeliveryStatusView: View { } } -struct TimelineDeliveryStatusView_Previews: PreviewProvider { +struct TimelineDeliveryStatusView_Previews: PreviewProvider, TestablePreview { static var previews: some View { VStack { TimelineDeliveryStatusView(deliveryStatus: .sending) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift index 5802ea38f..cd9d4776b 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReactionsView.swift @@ -190,7 +190,7 @@ struct TimelineReactionViewPreviewsContainer: View { } } -struct TimelineReactionView_Previews: PreviewProvider { +struct TimelineReactionView_Previews: PreviewProvider, TestablePreview { static var previews: some View { TimelineReactionViewPreviewsContainer() } diff --git a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReadReceiptsView.swift b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReadReceiptsView.swift index f96f088f6..eda73de83 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReadReceiptsView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Supplementary/TimelineReadReceiptsView.swift @@ -49,7 +49,7 @@ struct TimelineReadReceiptsView: View { } } -struct TimelineReadReceiptsView_Previews: PreviewProvider { +struct TimelineReadReceiptsView_Previews: PreviewProvider, TestablePreview { static let members: [RoomMemberProxyMock] = [ .mockAlice, .mockBob, diff --git a/ElementX/Sources/Screens/RoomScreen/View/SwipeRightAction.swift b/ElementX/Sources/Screens/RoomScreen/View/SwipeRightAction.swift index 561b58e60..8afc65a3b 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/SwipeRightAction.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/SwipeRightAction.swift @@ -111,7 +111,7 @@ extension View { } } -struct SwipeRightAction_Previews: PreviewProvider { +struct SwipeRightAction_Previews: PreviewProvider, TestablePreview { static var previews: some View { Preview() } struct Preview: View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/AudioRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/AudioRoomTimelineView.swift index 24d0fea41..f84ec8b23 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/AudioRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/AudioRoomTimelineView.swift @@ -35,7 +35,7 @@ struct AudioRoomTimelineView: View { } } -struct AudioRoomTimelineView_Previews: PreviewProvider { +struct AudioRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/CollapsibleRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/CollapsibleRoomTimelineView.swift index 3f817ebad..9dc48e939 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/CollapsibleRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/CollapsibleRoomTimelineView.swift @@ -59,7 +59,7 @@ struct CollapsibleRoomTimelineView: View { } } -struct CollapsibleRoomTimelineView_Previews: PreviewProvider { +struct CollapsibleRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let item = CollapsibleTimelineItem(items: [ SeparatorRoomTimelineItem(id: .init(timelineID: "First separator"), text: "This is a separator"), SeparatorRoomTimelineItem(id: .init(timelineID: "Second separator"), text: "This is another separator") diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/EmoteRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/EmoteRoomTimelineView.swift index a6d294e7f..4261124a8 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/EmoteRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/EmoteRoomTimelineView.swift @@ -32,7 +32,7 @@ struct EmoteRoomTimelineView: View, TextBasedRoomTimelineViewProtocol { } } -struct EmoteRoomTimelineView_Previews: PreviewProvider { +struct EmoteRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedHistoryRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedHistoryRoomTimelineView.swift index 970d5f82f..601ed7663 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedHistoryRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedHistoryRoomTimelineView.swift @@ -53,7 +53,7 @@ private struct EncryptedHistoryLabelStyle: LabelStyle { } } -struct EncryptedHistoryRoomTimelineView_Previews: PreviewProvider { +struct EncryptedHistoryRoomTimelineView_Previews: PreviewProvider, TestablePreview { static var previews: some View { let item = EncryptedHistoryRoomTimelineItem(id: .random) EncryptedHistoryRoomTimelineView(timelineItem: item) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedRoomTimelineView.swift index 7234e24fb..13fbae40d 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/EncryptedRoomTimelineView.swift @@ -42,7 +42,7 @@ struct RoomTimelineViewLabelStyle: LabelStyle { } } -struct EncryptedRoomTimelineView_Previews: PreviewProvider { +struct EncryptedRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/FileRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/FileRoomTimelineView.swift index 793aae092..a651838c8 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/FileRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/FileRoomTimelineView.swift @@ -35,7 +35,7 @@ struct FileRoomTimelineView: View { } } -struct FileRoomTimelineView_Previews: PreviewProvider { +struct FileRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/FormattedBodyText.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/FormattedBodyText.swift index 49a25f6d5..7c692f488 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/FormattedBodyText.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/FormattedBodyText.swift @@ -164,7 +164,7 @@ struct FormattedBodyText: View { // MARK: - Previews -struct FormattedBodyText_Previews: PreviewProvider { +struct FormattedBodyText_Previews: PreviewProvider, TestablePreview { static var previews: some View { body body diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/ImageRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/ImageRoomTimelineView.swift index d1f089cbf..543810e1d 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/ImageRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/ImageRoomTimelineView.swift @@ -55,7 +55,7 @@ struct ImageRoomTimelineView: View { } } -struct ImageRoomTimelineView_Previews: PreviewProvider { +struct ImageRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/LocationRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/LocationRoomTimelineView.swift index 3c773d3f8..ca9a10f27 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/LocationRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/LocationRoomTimelineView.swift @@ -82,7 +82,7 @@ private extension MapLibreStaticMapView { } } -struct LocationRoomTimelineView_Previews: PreviewProvider { +struct LocationRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/NoticeRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/NoticeRoomTimelineView.swift index 8b152b4a7..cf23b01d2 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/NoticeRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/NoticeRoomTimelineView.swift @@ -43,7 +43,7 @@ struct NoticeRoomTimelineView: View, TextBasedRoomTimelineViewProtocol { } } -struct NoticeRoomTimelineView_Previews: PreviewProvider { +struct NoticeRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/PaginationIndicatorRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/PaginationIndicatorRoomTimelineView.swift index ba19060db..44a879579 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/PaginationIndicatorRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/PaginationIndicatorRoomTimelineView.swift @@ -26,7 +26,7 @@ struct PaginationIndicatorRoomTimelineView: View { } } -struct PaginationIndicatorRoomTimelineView_Previews: PreviewProvider { +struct PaginationIndicatorRoomTimelineView_Previews: PreviewProvider, TestablePreview { static var previews: some View { let item = PaginationIndicatorRoomTimelineItem() PaginationIndicatorRoomTimelineView(timelineItem: item) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollOptionView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollOptionView.swift index 096fba371..4dbd0637b 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollOptionView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollOptionView.swift @@ -80,7 +80,7 @@ private struct PollProgressView: View { } } -struct PollOptionView_Previews: PreviewProvider { +struct PollOptionView_Previews: PreviewProvider, TestablePreview { static var previews: some View { VStack { Group { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollRoomTimelineView.swift index 7628e7f9c..611852278 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/PollRoomTimelineView.swift @@ -117,7 +117,7 @@ private extension Poll { } } -struct PollRoomTimelineView_Previews: PreviewProvider { +struct PollRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/ReadMarkerRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/ReadMarkerRoomTimelineView.swift index 60f92e992..409d7ca83 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/ReadMarkerRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/ReadMarkerRoomTimelineView.swift @@ -35,7 +35,7 @@ struct ReadMarkerRoomTimelineView: View { } } -struct ReadMarkerRoomTimelineView_Previews: PreviewProvider { +struct ReadMarkerRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static let item = ReadMarkerRoomTimelineItem(id: .init(timelineID: .init(UUID().uuidString))) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/RedactedRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/RedactedRoomTimelineView.swift index 9fd6facae..f35220f4c 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/RedactedRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/RedactedRoomTimelineView.swift @@ -29,7 +29,7 @@ struct RedactedRoomTimelineView: View { } } -struct RedactedRoomTimelineView_Previews: PreviewProvider { +struct RedactedRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/SeparatorRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/SeparatorRoomTimelineView.swift index e17a81895..10194f9cd 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/SeparatorRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/SeparatorRoomTimelineView.swift @@ -29,7 +29,7 @@ struct SeparatorRoomTimelineView: View { } } -struct SeparatorRoomTimelineView_Previews: PreviewProvider { +struct SeparatorRoomTimelineView_Previews: PreviewProvider, TestablePreview { static var previews: some View { let item = SeparatorRoomTimelineItem(id: .init(timelineID: "Separator"), text: "This is a separator") SeparatorRoomTimelineView(timelineItem: item) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/StateRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/StateRoomTimelineView.swift index c661bf29d..b211aac6e 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/StateRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/StateRoomTimelineView.swift @@ -30,7 +30,7 @@ struct StateRoomTimelineView: View { } } -struct StateRoomTimelineView_Previews: PreviewProvider { +struct StateRoomTimelineView_Previews: PreviewProvider, TestablePreview { static var previews: some View { body body diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/StickerRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/StickerRoomTimelineView.swift index 6e8d89a4e..807bdd59c 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/StickerRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/StickerRoomTimelineView.swift @@ -47,7 +47,7 @@ struct StickerRoomTimelineView: View { } } -struct StickerRoomTimelineView_Previews: PreviewProvider { +struct StickerRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TextRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TextRoomTimelineView.swift index 04d60e407..076414568 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TextRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TextRoomTimelineView.swift @@ -36,7 +36,7 @@ struct TextRoomTimelineView: View, TextBasedRoomTimelineViewProtocol { } } -struct TextRoomTimelineView_Previews: PreviewProvider { +struct TextRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineStartRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineStartRoomTimelineView.swift index 2222fb5ed..51eeed176 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineStartRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/TimelineStartRoomTimelineView.swift @@ -36,7 +36,7 @@ struct TimelineStartRoomTimelineView: View { } } -struct TimelineStartRoomTimelineView_Previews: PreviewProvider { +struct TimelineStartRoomTimelineView_Previews: PreviewProvider, TestablePreview { static var previews: some View { let item = TimelineStartRoomTimelineItem(name: "Alice and Bob") TimelineStartRoomTimelineView(timelineItem: item) diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/UITimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/UITimelineView.swift index 5906f0a39..67790a9e7 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/UITimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/UITimelineView.swift @@ -79,7 +79,7 @@ struct UITimelineView: UIViewControllerRepresentable { // MARK: - Previews -struct UITimelineView_Previews: PreviewProvider { +struct UITimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel(timelineController: MockRoomTimelineController(), mediaProvider: MockMediaProvider(), roomProxy: RoomProxyMock(with: .init(displayName: "Preview room")), diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/UnsupportedRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/UnsupportedRoomTimelineView.swift index b15f45b80..8a375b179 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/UnsupportedRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/UnsupportedRoomTimelineView.swift @@ -38,7 +38,7 @@ struct UnsupportedRoomTimelineView: View { } } -struct UnsupportedRoomTimelineView_Previews: PreviewProvider { +struct UnsupportedRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/Timeline/VideoRoomTimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/Timeline/VideoRoomTimelineView.swift index 19371c747..b211bf8c4 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/Timeline/VideoRoomTimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/Timeline/VideoRoomTimelineView.swift @@ -67,7 +67,7 @@ struct VideoRoomTimelineView: View { } } -struct VideoRoomTimelineView_Previews: PreviewProvider { +struct VideoRoomTimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/TimelineItemDebugView.swift b/ElementX/Sources/Screens/RoomScreen/View/TimelineItemDebugView.swift index f3296b42e..bc2ccd889 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/TimelineItemDebugView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/TimelineItemDebugView.swift @@ -97,7 +97,7 @@ struct TimelineItemDebugView: View { } } -struct TimelineItemDebugView_Previews: PreviewProvider { +struct TimelineItemDebugView_Previews: PreviewProvider, TestablePreview { static let smallContent = """ { SomeItem( diff --git a/ElementX/Sources/Screens/RoomScreen/View/TimelineItemMenu.swift b/ElementX/Sources/Screens/RoomScreen/View/TimelineItemMenu.swift index 19de95698..bbc5f21fa 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/TimelineItemMenu.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/TimelineItemMenu.swift @@ -286,7 +286,7 @@ public struct TimelineItemMenu: View { } } -struct TimelineItemMenu_Previews: PreviewProvider { +struct TimelineItemMenu_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel.mock static var previews: some View { diff --git a/ElementX/Sources/Screens/RoomScreen/View/TimelineView.swift b/ElementX/Sources/Screens/RoomScreen/View/TimelineView.swift index 5f97fcdda..64073434e 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/TimelineView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/TimelineView.swift @@ -167,7 +167,7 @@ struct TimelineView: View { // MARK: - Previews -struct TimelineView_Previews: PreviewProvider { +struct TimelineView_Previews: PreviewProvider, TestablePreview { static let viewModel = RoomScreenViewModel(timelineController: MockRoomTimelineController(), mediaProvider: MockMediaProvider(), roomProxy: RoomProxyMock(with: .init(displayName: "Preview room")), diff --git a/ElementX/Sources/Screens/SessionVerificationScreen/View/SessionVerificationScreen.swift b/ElementX/Sources/Screens/SessionVerificationScreen/View/SessionVerificationScreen.swift index 60d7c7565..ea5283ac5 100644 --- a/ElementX/Sources/Screens/SessionVerificationScreen/View/SessionVerificationScreen.swift +++ b/ElementX/Sources/Screens/SessionVerificationScreen/View/SessionVerificationScreen.swift @@ -228,7 +228,7 @@ struct SessionVerificationScreen: View { // MARK: - Previews -struct SessionVerification_Previews: PreviewProvider { +struct SessionVerification_Previews: PreviewProvider, TestablePreview { static var previews: some View { sessionVerificationScreen(state: .initial) .previewDisplayName("Initial") diff --git a/ElementX/Sources/Screens/Settings/AnalyticsSettingsScreen/View/AnalyticsSettingsScreen.swift b/ElementX/Sources/Screens/Settings/AnalyticsSettingsScreen/View/AnalyticsSettingsScreen.swift index 62466056b..5a17c4815 100644 --- a/ElementX/Sources/Screens/Settings/AnalyticsSettingsScreen/View/AnalyticsSettingsScreen.swift +++ b/ElementX/Sources/Screens/Settings/AnalyticsSettingsScreen/View/AnalyticsSettingsScreen.swift @@ -46,7 +46,7 @@ struct AnalyticsSettingsScreen: View { // MARK: - Previews -struct AnalyticsSettingsScreen_Previews: PreviewProvider { +struct AnalyticsSettingsScreen_Previews: PreviewProvider, TestablePreview { static var previews: some View { let appSettings = AppSettings() let viewModel = AnalyticsSettingsScreenViewModel(appSettings: appSettings, diff --git a/ElementX/Sources/Screens/Settings/AvancedOptionsScreen/View/AdvancedSettingsScreen.swift b/ElementX/Sources/Screens/Settings/AvancedOptionsScreen/View/AdvancedSettingsScreen.swift index 91f1f4dbb..b67a15a32 100644 --- a/ElementX/Sources/Screens/Settings/AvancedOptionsScreen/View/AdvancedSettingsScreen.swift +++ b/ElementX/Sources/Screens/Settings/AvancedOptionsScreen/View/AdvancedSettingsScreen.swift @@ -54,7 +54,7 @@ private extension TimelineStyle { // MARK: - Previews -struct AdvancedSettingsScreen_Previews: PreviewProvider { +struct AdvancedSettingsScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = AdvancedSettingsScreenViewModel(advancedSettings: ServiceLocator.shared.settings) static var previews: some View { NavigationStack { diff --git a/ElementX/Sources/Screens/Settings/LegalInformationScreen/View/LegalInformationScreen.swift b/ElementX/Sources/Screens/Settings/LegalInformationScreen/View/LegalInformationScreen.swift index bc4565b5e..d4d0361fc 100644 --- a/ElementX/Sources/Screens/Settings/LegalInformationScreen/View/LegalInformationScreen.swift +++ b/ElementX/Sources/Screens/Settings/LegalInformationScreen/View/LegalInformationScreen.swift @@ -40,7 +40,7 @@ struct LegalInformationScreen: View { // MARK: - Previews -struct LegalInformationScreen_Previews: PreviewProvider { +struct LegalInformationScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = LegalInformationScreenViewModel(appSettings: AppSettings()) static var previews: some View { LegalInformationScreen(context: viewModel.context) diff --git a/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreen.swift b/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreen.swift index 81151199f..6fd757cbf 100644 --- a/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreen.swift +++ b/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreen.swift @@ -68,7 +68,7 @@ struct NotificationSettingsEditScreen: View { // MARK: - Previews -struct NotificationSettingsEditScreen_Previews: PreviewProvider { +struct NotificationSettingsEditScreen_Previews: PreviewProvider, TestablePreview { static let viewModelGroupChats: NotificationSettingsEditScreenViewModel = { let notificationSettingsProxy = NotificationSettingsProxyMock(with: .init()) notificationSettingsProxy.getDefaultRoomNotificationModeIsEncryptedIsOneToOneReturnValue = .allMessages diff --git a/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreenRoomCell.swift b/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreenRoomCell.swift index 34818ff1c..67d8c83f0 100644 --- a/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreenRoomCell.swift +++ b/ElementX/Sources/Screens/Settings/NotificationSettingsEditScreen/View/NotificationSettingsEditScreenRoomCell.swift @@ -57,7 +57,7 @@ struct NotificationSettingsEditScreenRoomCell: View { } } -struct NotificationSettingsEditScreenRoomCell_Previews: PreviewProvider { +struct NotificationSettingsEditScreenRoomCell_Previews: PreviewProvider, TestablePreview { static var previews: some View { let summaryProvider = MockRoomSummaryProvider(state: .loaded(.mockRooms)) diff --git a/ElementX/Sources/Screens/Settings/NotificationSettingsScreen/View/NotificationSettingsScreen.swift b/ElementX/Sources/Screens/Settings/NotificationSettingsScreen/View/NotificationSettingsScreen.swift index ed7921dbb..f89a4713b 100644 --- a/ElementX/Sources/Screens/Settings/NotificationSettingsScreen/View/NotificationSettingsScreen.swift +++ b/ElementX/Sources/Screens/Settings/NotificationSettingsScreen/View/NotificationSettingsScreen.swift @@ -182,7 +182,7 @@ struct NotificationSettingsScreen: View { // MARK: - Previews -struct NotificationSettingsScreen_Previews: PreviewProvider { +struct NotificationSettingsScreen_Previews: PreviewProvider, TestablePreview { static let viewModel: NotificationSettingsScreenViewModel = { let appSettings = AppSettings() let notificationCenter = UserNotificationCenterMock() diff --git a/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift b/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift index 1ee8293d6..9244ddd04 100644 --- a/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift +++ b/ElementX/Sources/Screens/Settings/SettingsScreen/View/SettingsScreen.swift @@ -229,7 +229,7 @@ private extension TimelineStyle { // MARK: - Previews -struct SettingsScreen_Previews: PreviewProvider { +struct SettingsScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = { let verificationController = SessionVerificationControllerProxyMock() verificationController.isVerified = false diff --git a/ElementX/Sources/Screens/Settings/UserDetailsEditScreen/View/UserDetailsEditScreen.swift b/ElementX/Sources/Screens/Settings/UserDetailsEditScreen/View/UserDetailsEditScreen.swift index 5754dee90..a6ccec8a5 100644 --- a/ElementX/Sources/Screens/Settings/UserDetailsEditScreen/View/UserDetailsEditScreen.swift +++ b/ElementX/Sources/Screens/Settings/UserDetailsEditScreen/View/UserDetailsEditScreen.swift @@ -126,7 +126,7 @@ struct UserDetailsEditScreen: View { // MARK: - Previews -struct UserDetailsEditScreen_Previews: PreviewProvider { +struct UserDetailsEditScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = UserDetailsEditScreenViewModel(clientProxy: MockClientProxy(userID: "@stefan:matrix.org"), mediaProvider: MockMediaProvider(), userIndicatorController: UserIndicatorControllerMock.default) diff --git a/ElementX/Sources/Screens/StartChatScreen/View/StartChatScreen.swift b/ElementX/Sources/Screens/StartChatScreen/View/StartChatScreen.swift index 3aa43853c..174885e40 100644 --- a/ElementX/Sources/Screens/StartChatScreen/View/StartChatScreen.swift +++ b/ElementX/Sources/Screens/StartChatScreen/View/StartChatScreen.swift @@ -134,7 +134,7 @@ struct StartChatScreen: View { // MARK: - Previews -struct StartChatScreen_Previews: PreviewProvider { +struct StartChatScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = { let userSession = MockUserSession(clientProxy: MockClientProxy(userID: "@userid:example.com"), mediaProvider: MockMediaProvider()) diff --git a/ElementX/Sources/Screens/WelcomeScreenScreen/View/WelcomeScreen.swift b/ElementX/Sources/Screens/WelcomeScreenScreen/View/WelcomeScreen.swift index 1873b9a8a..dc4892f05 100644 --- a/ElementX/Sources/Screens/WelcomeScreenScreen/View/WelcomeScreen.swift +++ b/ElementX/Sources/Screens/WelcomeScreenScreen/View/WelcomeScreen.swift @@ -99,7 +99,7 @@ struct WelcomeScreen: View { // MARK: - Previews -struct WelcomeScreen_Previews: PreviewProvider { +struct WelcomeScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = WelcomeScreenScreenViewModel() static var previews: some View { diff --git a/NSE/SupportingFiles/target.yml b/NSE/SupportingFiles/target.yml index 9750c54c7..edb46f79b 100644 --- a/NSE/SupportingFiles/target.yml +++ b/NSE/SupportingFiles/target.yml @@ -41,6 +41,7 @@ targets: - package: DeviceKit - package: DTCoreText - package: LRUCache + - package: Prefire info: path: ../SupportingFiles/Info.plist @@ -94,6 +95,7 @@ targets: - path: ../../ElementX/Sources/Other/SwiftUI/Views/PlaceholderAvatarImage.swift - path: ../../ElementX/Sources/Other/UserAgentBuilder.swift - path: ../../ElementX/Sources/Other/UserPreference.swift + - path: ../../ElementX/Sources/Other/TestablePreview.swift - path: ../../ElementX/Sources/Services/Background/BackgroundTaskProtocol.swift - path: ../../ElementX/Sources/Services/Background/BackgroundTaskServiceProtocol.swift - path: ../../ElementX/Sources/Services/Keychain/KeychainController.swift diff --git a/Tools/Prefire/PreviewTests.stencil b/Tools/Prefire/PreviewTests.stencil index 3f5395041..88b62c3b9 100644 --- a/Tools/Prefire/PreviewTests.stencil +++ b/Tools/Prefire/PreviewTests.stencil @@ -29,7 +29,7 @@ class PreviewTests: XCTestCase { UIView.setAnimationsEnabled(false) } - {% for type in types.types where (type.implements.PrefireProvider or type.based.PrefireProvider or type|annotated:"PrefireProvider") and type.name != "TestablePreviewProvider" %} + {% for type in types.types where (type.implements.PrefireProvider or type.based.PrefireProvider or type|annotated:"PrefireProvider") and type.name != "TestablePreview" %} func test_{{ type.name|lowerFirstLetter|replace:"_Previews", "" }}() { for preview in {{ type.name }}._allPreviews { assertSnapshots(matching: preview) @@ -179,3 +179,6 @@ private extension Diffing where Value == UIImage { ) } } + +// swiftlint:enable all +// swiftformat:enable all diff --git a/Tools/Scripts/Templates/SimpleScreenExample/ElementX/View/TemplateScreen.swift b/Tools/Scripts/Templates/SimpleScreenExample/ElementX/View/TemplateScreen.swift index 4baaadc70..5c9aeaf29 100644 --- a/Tools/Scripts/Templates/SimpleScreenExample/ElementX/View/TemplateScreen.swift +++ b/Tools/Scripts/Templates/SimpleScreenExample/ElementX/View/TemplateScreen.swift @@ -41,7 +41,7 @@ struct TemplateScreen: View { // MARK: - Previews -struct TemplateScreen_Previews: PreviewProvider { +struct TemplateScreen_Previews: PreviewProvider, TestablePreview { static let viewModel = TemplateScreenViewModel() static var previews: some View { NavigationStack { diff --git a/UnitTests/Sources/PreviewTests.swift b/UnitTests/Sources/PreviewTests.swift index 72368c792..91aef35a0 100644 --- a/UnitTests/Sources/PreviewTests.swift +++ b/UnitTests/Sources/PreviewTests.swift @@ -26,12 +26,648 @@ class PreviewTests: XCTestCase { UIView.setAnimationsEnabled(false) } + func test_advancedSettingsScreen() { + for preview in AdvancedSettingsScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_analyticsPromptScreenCheckmarkItem() { + for preview in AnalyticsPromptScreenCheckmarkItem_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_analyticsPromptScreen() { + for preview in AnalyticsPromptScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_analyticsSettingsScreen() { + for preview in AnalyticsSettingsScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_audioRoomTimelineView() { + for preview in AudioRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_authenticationIconImage() { + for preview in AuthenticationIconImage_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_bugReport() { + for preview in BugReport_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_collapsibleRoomTimelineView() { + for preview in CollapsibleRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_composerToolbar() { + for preview in ComposerToolbar_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_createPollScreen() { + for preview in CreatePollScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_createRoom() { + for preview in CreateRoom_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_emojiPickerScreenHeaderView() { + for preview in EmojiPickerScreenHeaderView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_emojiPickerScreen() { + for preview in EmojiPickerScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_emoteRoomTimelineView() { + for preview in EmoteRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_encryptedHistoryRoomTimelineView() { + for preview in EncryptedHistoryRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_encryptedRoomTimelineView() { + for preview in EncryptedRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_fileRoomTimelineView() { + for preview in FileRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_formButtonStyles() { + for preview in FormButtonStyles_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_formRowLabelStyle() { + for preview in FormRowLabelStyle_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_formattedBodyText() { + for preview in FormattedBodyText_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_fullscreenDialog() { + for preview in FullscreenDialog_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_headerView() { + for preview in HeaderView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_homeScreenEmptyStateView() { + for preview in HomeScreenEmptyStateView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_homeScreenInvitesButton() { + for preview in HomeScreenInvitesButton_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_homeScreenRoomCell() { + for preview in HomeScreenRoomCell_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_homeScreen() { + for preview in HomeScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_imageRoomTimelineView() { + for preview in ImageRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_inviteUsersScreenSelectedItem() { + for preview in InviteUsersScreenSelectedItem_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_inviteUsersScreen() { + for preview in InviteUsersScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_invitesScreenCell() { + for preview in InvitesScreenCell_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_invitesScreen() { + for preview in InvitesScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_legalInformationScreen() { + for preview in LegalInformationScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_locationMarkerView() { + for preview in LocationMarkerView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_locationRoomTimelineView() { + for preview in LocationRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_loginScreen() { + for preview in LoginScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_longPressWithFeedback() { + for preview in LongPressWithFeedback_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_mapLibreStaticMapView() { + for preview in MapLibreStaticMapView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_matrixUserPermalink() { + for preview in MatrixUserPermalink_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_mediaUploadPreviewScreen() { + for preview in MediaUploadPreviewScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_messageComposer() { + for preview in MessageComposer_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_messageForwardingScreen() { + for preview in MessageForwardingScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_messageText() { + for preview in MessageText_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_migrationScreen() { + for preview in MigrationScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_noticeRoomTimelineView() { + for preview in NoticeRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_notificationSettingsEditScreenRoomCell() { + for preview in NotificationSettingsEditScreenRoomCell_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_notificationSettingsEditScreen() { + for preview in NotificationSettingsEditScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_notificationSettingsScreen() { + for preview in NotificationSettingsScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_onboardingScreen() { + for preview in OnboardingScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_paginationIndicatorRoomTimelineView() { + for preview in PaginationIndicatorRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_pillView() { + for preview in PillView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_placeholderAvatarImage() { + for preview in PlaceholderAvatarImage_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_placeholderScreen() { + for preview in PlaceholderScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_pollOptionView() { + for preview in PollOptionView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_pollRoomTimelineView() { + for preview in PollRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_reactionsSummaryView() { + for preview in ReactionsSummaryView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_readMarkerRoomTimelineView() { + for preview in ReadMarkerRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_redactedRoomTimelineView() { + for preview in RedactedRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_reportContentScreen() { + for preview in ReportContentScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomAttachmentPicker() { + for preview in RoomAttachmentPicker_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomDetailsEditScreen() { + for preview in RoomDetailsEditScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomDetailsScreen() { + for preview in RoomDetailsScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomHeaderView() { + for preview in RoomHeaderView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomMemberDetailsScreen() { + for preview in RoomMemberDetailsScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomMembersListMemberCell() { + for preview in RoomMembersListMemberCell_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomMembersListScreen() { + for preview in RoomMembersListScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomNotificationSettingsCustomSectionView() { + for preview in RoomNotificationSettingsCustomSectionView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomNotificationSettingsScreen() { + for preview in RoomNotificationSettingsScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomNotificationSettingsUserDefinedScreen() { + for preview in RoomNotificationSettingsUserDefinedScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_roomScreen() { + for preview in RoomScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_separatorRoomTimelineView() { + for preview in SeparatorRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_serverConfirmationScreen() { + for preview in ServerConfirmationScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_serverSelection() { + for preview in ServerSelection_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_sessionVerification() { + for preview in SessionVerification_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_settingsScreen() { + for preview in SettingsScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_shimmerOverlay() { + for preview in ShimmerOverlay_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_softLogoutScreen() { + for preview in SoftLogoutScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_splashScreen() { + for preview in SplashScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_startChatScreen() { + for preview in StartChatScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_stateRoomTimelineView() { + for preview in StateRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_staticLocationScreenViewer() { + for preview in StaticLocationScreenViewer_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_stickerRoomTimelineView() { + for preview in StickerRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_swipeRightAction() { + for preview in SwipeRightAction_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_swipeToReplyView() { + for preview in SwipeToReplyView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_templateScreen() { + for preview in TemplateScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_textRoomTimelineView() { + for preview in TextRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_threadDecorator() { + for preview in ThreadDecorator_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineDeliveryStatusView() { + for preview in TimelineDeliveryStatusView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineItemBubbledStylerView() { + for preview in TimelineItemBubbledStylerView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineItemDebugView() { + for preview in TimelineItemDebugView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineItemMenu() { + for preview in TimelineItemMenu_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineItemPlainStylerView() { + for preview in TimelineItemPlainStylerView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + func test_timelineItemStyler() { for preview in TimelineItemStyler_Previews._allPreviews { assertSnapshots(matching: preview) } } + func test_timelineReactionView() { + for preview in TimelineReactionView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineReadReceiptsView() { + for preview in TimelineReadReceiptsView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineReplyView() { + for preview in TimelineReplyView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineStartRoomTimelineView() { + for preview in TimelineStartRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_timelineView() { + for preview in TimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_uITimelineView() { + for preview in UITimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_unsupportedRoomTimelineView() { + for preview in UnsupportedRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_userDetailsEditScreen() { + for preview in UserDetailsEditScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_userIndicatorModalView() { + for preview in UserIndicatorModalView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_userIndicatorToastView() { + for preview in UserIndicatorToastView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_userProfileCell() { + for preview in UserProfileCell_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_videoRoomTimelineView() { + for preview in VideoRoomTimelineView_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_waitingDialog() { + for preview in WaitingDialog_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_waitlistScreen() { + for preview in WaitlistScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + + func test_welcomeScreen() { + for preview in WelcomeScreen_Previews._allPreviews { + assertSnapshots(matching: preview) + } + } + // MARK: Private private func assertSnapshots(matching preview: _Preview, testName: String = #function) { @@ -171,3 +807,6 @@ private extension Diffing where Value == UIImage { ) } } + +// swiftlint:enable all +// swiftformat:enable all diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png new file mode 100644 index 000000000..7346cfc38 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:931a0c343482e9dd06e924b4ee76c0d88637e31432186a9bddd46e480f7a10ad +size 110737 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png new file mode 100644 index 000000000..7a8028b39 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6fe3c48622054172efe63c405dfb2ce7c7770c9ed59966fd2e48787bdbe65f06 +size 141808 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png new file mode 100644 index 000000000..e9d008b7f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ff828f5d649ccf1a46d0b7a126eea8d4754f997e8e30bffc6163c9d90aab62c +size 127416 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png new file mode 100644 index 000000000..99feab3d9 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b585309091ede3935172515db5eaef38cf77f6dd49d5f5bbace57be30b9d73ca +size 95563 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png new file mode 100644 index 000000000..049ab8c5e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d79fc74c53d0b9001c3c469ddfaaaae67bac83146c29bb7933bcdcdc6d7a546 +size 67422 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png new file mode 100644 index 000000000..91393ee8f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e3f82ed34294f70855c13967e9881481b8e700aa5695b8b9b65896e49f0a10c +size 66577 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png new file mode 100644 index 000000000..d0a2afba2 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16702841f53adf7c64d05fdfb9488fd6954ca2b221ce0710edd2d41aadcb4364 +size 64974 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.1.png new file mode 100644 index 000000000..d79b3e282 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37508f1d958949c54767d69aa2aee5745f5c5928252048cf82e7a412ec95e93f +size 177875 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.2.png new file mode 100644 index 000000000..1060fb4f4 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:597a26b088fb0b4a84501a9d6894784f4d43d3ecd48de9058b61488a4474a518 +size 269425 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png new file mode 100644 index 000000000..3d2183edb --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61f0b360ce3dd290efd8c50163a3c1827ec31f31e60db78c4711c38435dcc871 +size 60190 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_composerToolbar.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_composerToolbar.1.png new file mode 100644 index 000000000..da0ce43d5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_composerToolbar.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71f8bcbb6f9069b2a7f1706ded45b03afe1713091cc556980fa01436a873f7c2 +size 66908 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_createPollScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_createPollScreen.1.png new file mode 100644 index 000000000..938eab059 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_createPollScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3d9ade7c89cd250b94a8538212569c322bb86d607c6c41837c0f6520f2db222 +size 123004 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png new file mode 100644 index 000000000..346e3511b --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96729828d82bb8f5b40173554aabdd649b8e87fb15a288686eca1574b4b96641 +size 168107 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png new file mode 100644 index 000000000..1307bea34 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f14072e377d9015d23c45b8d810976587f66a96c563cd581d188cdb7908f54df +size 169132 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png new file mode 100644 index 000000000..6c0e99972 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d3a9dfb08385590204b50b0a062c50457f5e08af400ed6bd826402ed469c621 +size 70857 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png new file mode 100644 index 000000000..1d3a22dde --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8755daa828cc8a643a6d77d8efd2442530ab151f7a5a3702c0d54a82cab43766 +size 59705 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png new file mode 100644 index 000000000..9e80df591 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5c7bc27b4f62d803e4a370824686bb89575980134dc08c31dce9e42abdc0a29 +size 56462 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png new file mode 100644 index 000000000..716d67c8f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6229e15b42cbdd0b484b71bf36bcb7381934e08fe43a3b8ff20f15557cabebda +size 121431 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png new file mode 100644 index 000000000..0bf9ada9b --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e94fc68ce720f78e5b805e0b9cd6fd5a9b0e3752d6b4a5cc90ea42973dd049e6 +size 110513 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png new file mode 100644 index 000000000..e033c14b1 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e21b01a61106638b1d3d385b0688d1b38b6c8cfbf0d63c4daa4bd085c44f7751 +size 73005 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png new file mode 100644 index 000000000..a815b679a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:623e4f83cd441473b9f95f5ece4d417a7e0763783a6127321fa8305e841f5cea +size 77210 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png new file mode 100644 index 000000000..d37a6e94d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4d9b4f713f4753aff5d0a5bf2c69ae0117c2b64d9f3480f731aba9506c55ad3 +size 77228 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png new file mode 100644 index 000000000..c3dc36bfd --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e49434ff72e4fe94999f623a60992bd0c35f7ec67968a5105b7d42ce8d74e442 +size 106187 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png new file mode 100644 index 000000000..a671cabbc --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baacc230fa282161dcec13955c39ac3fb5ec2ea362b5a7cbf958786d2db5334b +size 93074 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formButtonStyles.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formButtonStyles.1.png new file mode 100644 index 000000000..c90db9ee0 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formButtonStyles.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9f72356a0e0952300e2980d47e2eab2097267f732427efaf13fe034ff2b9bf5 +size 176733 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png new file mode 100644 index 000000000..73fe8f1d9 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c5aec76f55285117147d626dcb2c0ed7ab25b93af7429d836b9d8f29374761c +size 83856 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.1.png new file mode 100644 index 000000000..5d893510d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abd682ff45a39c88296804ac67c29c6425b3231a03002c8d0cb5b59df4464707 +size 212642 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.2.png new file mode 100644 index 000000000..5849de855 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62be6e4e83d8797e26070862c8812366346594fec8e1fad8daddb0002611a879 +size 185793 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png new file mode 100644 index 000000000..3ca074c6e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3cccc8d5928139de2f6c3b6a253485ebbe89af4ac395356b6b07853c3894654 +size 125092 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_headerView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_headerView.1.png new file mode 100644 index 000000000..89cb8a50e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_headerView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6076a608bc77dcd2cdba417db29fecca1529ea06364dcb6c6cd2020dd9b4347e +size 130039 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png new file mode 100644 index 000000000..8f812d445 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5205d9c2f294edda93408c9da0beb18c451f1c51511132e7f92a694900f77531 +size 97489 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png new file mode 100644 index 000000000..8f812d445 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5205d9c2f294edda93408c9da0beb18c451f1c51511132e7f92a694900f77531 +size 97489 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loading.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loading.png new file mode 100644 index 000000000..8f812d445 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loading.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5205d9c2f294edda93408c9da0beb18c451f1c51511132e7f92a694900f77531 +size 97489 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png new file mode 100644 index 000000000..970bf57db --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfd4464ea1367d1ebf00e8ea714490c023160a36155820f08a629a3925b78cb2 +size 151481 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png new file mode 100644 index 000000000..f35663bc6 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b8c8c5b7c36230850585efc57e238f440c2e90b32ba3d817ba4794c3a416b82 +size 104318 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png new file mode 100644 index 000000000..069599415 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1f6513643393e69efdb08b73ec733e631948760fbf33e08b94794fa86946903 +size 79159 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png new file mode 100644 index 000000000..310654f24 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec8efc7b06329af76db7ef578630cbe7a32865445e2abaf07b8049d4bfaed5c9 +size 58013 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png new file mode 100644 index 000000000..354ed82a8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:414729c071cceaf1cda2cd31039375e5a554775523b0c02a486e57622f212c78 +size 61032 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png new file mode 100644 index 000000000..d009b094c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b64c80b9e40e83c6d74bdd8479378fdbe69c275415b4db79b2029731a8a31f0d +size 58750 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png new file mode 100644 index 000000000..cbd3cf4c5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c8d4cd85c146072f2541356426acf0e24ea2171c115c30311da7ff9d424d00a +size 125182 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png new file mode 100644 index 000000000..6d9a26329 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0459fa1b4e3e1c4338db91dbf51e69f054a12f79997887e0b0a8ad718aeba689 +size 720197 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png new file mode 100644 index 000000000..4c17bc3f6 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f604a232cb622b23876ff8c3109b89ff6951e01f65cf9dac7b633cba98396d72 +size 601777 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png new file mode 100644 index 000000000..4fb56b1b0 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:630f7168d3ed6a7e1a9d8084af15ab794ba79ece4c63e7147e127a36fb853ce2 +size 78972 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png new file mode 100644 index 000000000..2951d4a36 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcdf8ea3f1caebafa69abd6b8aadc0a5eb4c499c27b2d1a3ff6892a73b717447 +size 76839 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png new file mode 100644 index 000000000..a56988b18 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:364f4889867c740580d1be460d3b9a76a3d656836adba76776376a7c0fd9d835 +size 65455 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png new file mode 100644 index 000000000..ddbdd3189 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:478425daaba1e0639ca549cd1a9866658223f739c270926b783eb88719dd558e +size 150779 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png new file mode 100644 index 000000000..a402377e6 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25f3b0c91666d5d6bc9dae8e1501908f95fe01db630b5884ac1a862093c6615e +size 283065 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png new file mode 100644 index 000000000..5480ae8d5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42636280ad82c0e245cbbf87d4dcfe1ddfbd421fb9b3a48a74bcd5208dd0e48e +size 84894 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationMarkerView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationMarkerView.1.png new file mode 100644 index 000000000..39640345e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationMarkerView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:778dee202271ff61012b657bbb2813c28ee48943ceb99285856fe2bbcc86a23d +size 91157 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png new file mode 100644 index 000000000..a096bfdd3 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce0ef064b9695b8caefa8441b00bc1b624ee5b57ce7d9db99ce8431ee3c0c218 +size 1081079 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png new file mode 100644 index 000000000..67ffa530a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3821e4ead79c8459ae6e5f130cc9596106536fb1e15127161875250a5b2a8bb1 +size 1285900 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png new file mode 100644 index 000000000..cc59b282a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dda276cd65cc15a2dfd5612d96ed6cd01911a9695a44f0d783164c8a0a4a935 +size 94039 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png new file mode 100644 index 000000000..feb35660e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73ec305889896c23ecea7e1676afebe659be139555b96bca4ebb942cf6454762 +size 96850 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png new file mode 100644 index 000000000..feb35660e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73ec305889896c23ecea7e1676afebe659be139555b96bca4ebb942cf6454762 +size 96850 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png new file mode 100644 index 000000000..feb35660e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73ec305889896c23ecea7e1676afebe659be139555b96bca4ebb942cf6454762 +size 96850 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png new file mode 100644 index 000000000..e81995b9d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de7ace85ad4d6b3998afa8815ffd15b739fe786d41f7a0b4fe44a7fb926a3b2e +size 117215 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png new file mode 100644 index 000000000..3daf9c5b8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7222dc0d925f4d5ed5ba4d74a389a284e15f2d50fec5efbec55f3c7eb917982b +size 1132151 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png new file mode 100644 index 000000000..6af3d6db3 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:881092928b43f2fe26ecd46ed1503caae2646234e51112496f3753941738c06b +size 59377 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png new file mode 100644 index 000000000..802ed7692 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b4a59bfa03e0dcc4eda36bc0158f262d47c026cec3e79a05d7047406b6b1fb1 +size 62574 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.1.png new file mode 100644 index 000000000..d5c5baeb7 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffe739f015b766ce89dfff0cf6c303756943e8c3f2ed670c5a8cbb77a55894a9 +size 91231 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png new file mode 100644 index 000000000..057d2d57c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23a5ab51e0d2289976238c8ed10933fe2d8e8cfc69daace005e1412b1441c380 +size 229201 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying.png new file mode 100644 index 000000000..057d2d57c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23a5ab51e0d2289976238c8ed10933fe2d8e8cfc69daace005e1412b1441c380 +size 229201 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png new file mode 100644 index 000000000..9d32b19b8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:345aefea5a04ab6ba25c84a84cde9780a5061fdf4dee59e7cf7d3a61e821ea4b +size 103346 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png new file mode 100644 index 000000000..6895f5abd --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7e5576967557d1cea6f5b50383c9db6e7749a0ba3a625c3bac987ccd97e0c81 +size 60539 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png new file mode 100644 index 000000000..58edadbbe --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc27a24481a21b2da6146972679ae6211a876fcd3a63779c34a8f7cd1d06db98 +size 80412 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png new file mode 100644 index 000000000..58edadbbe --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc27a24481a21b2da6146972679ae6211a876fcd3a63779c34a8f7cd1d06db98 +size 80412 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png new file mode 100644 index 000000000..e0bb034ed --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8f07d6150865cb0f7c4bec8743f552440d2e610fbba850675b0e28143fd83d4 +size 98236 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-list.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-list.png new file mode 100644 index 000000000..5aa380df7 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-list.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86663f46166d096cc67fd32973e99dae7f72aa0d9c3b914dd600a57db54410de +size 74887 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_migrationScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_migrationScreen.1.png new file mode 100644 index 000000000..e282ee004 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_migrationScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f649975887f30bff1bb3e4749546a41d4f52798e9a9ed00adeb10373d5973bdb +size 972754 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png new file mode 100644 index 000000000..16ca8b1c5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3208a7c3c00ab22881a0167236cfe47649d3700e7d5111164becada194b4d554 +size 124975 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png new file mode 100644 index 000000000..78e706688 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36f9b0c00c7d3d0355bffc18b185e9b8711bdf92f5e63aee05157a5152a37339 +size 114753 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png new file mode 100644 index 000000000..ba78f23dc --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:079404f4f75675434fae3f30eb0ed9c1e518ffd54d906377c0c5b0f3a674c9a8 +size 86893 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png new file mode 100644 index 000000000..e1d95c55f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22d50be6a710056db52d44a3ccb36b70892a2858efa79e7d48033cd082ba610c +size 86704 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png new file mode 100644 index 000000000..efefbf6a1 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea1a397f5b093408427d418fed45cb52ce9f2660bfcc5b0ddb165dbd04e9b393 +size 87137 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png new file mode 100644 index 000000000..539787585 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cc9343f623fb09fd83319baf1e0f8e2297a515528784345a69d152e4d524fb8 +size 74486 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png new file mode 100644 index 000000000..79723fbd5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d858bdd5b55a445ce924c4bba25a8ca420086c033ca5e17b4a73cf571d90c15 +size 97653 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png new file mode 100644 index 000000000..79723fbd5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d858bdd5b55a445ce924c4bba25a8ca420086c033ca5e17b4a73cf571d90c15 +size 97653 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_onboardingScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_onboardingScreen.1.png new file mode 100644 index 000000000..d1978b5b6 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_onboardingScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62943be9f4713c99206f3a046dc6d1356033d66fe0619b67445801a382d9e8ed +size 827274 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png new file mode 100644 index 000000000..4533ce58e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:750b804dd96f4d3cd96998f17dec9e298ffa05dfbebd758ff06103c818d35b0a +size 56314 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pillView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pillView.1.png new file mode 100644 index 000000000..0dd33a5b4 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pillView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71240349d0bfff7c43c230b5e13165c20b18bd20d9df92df7c7df7acf2aa9c61 +size 575946 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png new file mode 100644 index 000000000..4693fe97f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be9436c63c915f9d66c6338a93d26c8381b88c44b3e8d4b60876874ed7ea3c69 +size 102510 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png new file mode 100644 index 000000000..c230a922f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:357263b75670a1ec33a6dafd5dad643cc77cbc1d189d2f394ad9131f2ffb63b8 +size 248934 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png new file mode 100644 index 000000000..bb2294d1d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b1737c6b4542f68ce2c5e85d6600cdc8edf8e78d85aef82f1f77a75de8a0fc6 +size 75719 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollOptionView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollOptionView.1.png new file mode 100644 index 000000000..92d8caa1a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollOptionView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c94ec7c541b13538b84309b08a5db4b3cca8a4c7b061b1d24a86d61521b7bf8f +size 90157 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png new file mode 100644 index 000000000..1b684814e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b549469c3781eb51da06fb646dfeb37bc8ed993be78237dd31d9024372e8919 +size 120204 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png new file mode 100644 index 000000000..abb615385 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:145966b5d25ee4cb2d6c7f42e6e0a39d921f4f3bca1cc3804cfff32eef087519 +size 114239 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png new file mode 100644 index 000000000..d869af45c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc1d469a9ecc2f4fbe50492a23b987426122fcb38a9518dda04e8b84b0d995e5 +size 120362 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png new file mode 100644 index 000000000..d60714658 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:309ba81c7b2d0e6022abf8a7e5ba70374162feabd0a05f14e92889086eb8f8de +size 114309 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png new file mode 100644 index 000000000..d869af45c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc1d469a9ecc2f4fbe50492a23b987426122fcb38a9518dda04e8b84b0d995e5 +size 120362 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png new file mode 100644 index 000000000..d60714658 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:309ba81c7b2d0e6022abf8a7e5ba70374162feabd0a05f14e92889086eb8f8de +size 114309 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png new file mode 100644 index 000000000..cad53fd45 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73a49c9e978534a24c88a76756b252527b1bad4765ddabfdc866cf6ecaf831eb +size 115040 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png new file mode 100644 index 000000000..fd4937dc6 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69e1bcb069e2791f7e2723c09704c8602a2ad3b23ce339be09fc84de7eead896 +size 109370 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png new file mode 100644 index 000000000..10799b850 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08e9cf98e8e63d204b3bd0909707d614acb5388886e8b5b1c62626adc1df25f8 +size 129323 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png new file mode 100644 index 000000000..73b54fd61 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8b9cc5f7c38d3c97c2848d053c9822b39ee47c2ec30f87929c784c982239438 +size 82994 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png new file mode 100644 index 000000000..994e7ec8e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28c6c0aab2ec1def171892ee011a87bdbca60f24f61dc1f57d5360156e139a73 +size 71540 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_reportContentScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_reportContentScreen.1.png new file mode 100644 index 000000000..2545174d9 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_reportContentScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa2ef6254a555d432f742e81ddaf25fcc89b25be5341c21825ef5ac7154c62b +size 133399 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png new file mode 100644 index 000000000..67e6c2e8f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03173340c4f219c8b9344d70535c14a7e102abdb50700a6bb64eb0902e6000ae +size 57064 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png new file mode 100644 index 000000000..93afc077a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcc4b3875152e9b3108524d632f740b090ce896bd09f742e181b2003baeec649 +size 103581 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png new file mode 100644 index 000000000..1eafe10df --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:402468509fcb0ece7bc9dd41b9956c3f62e5b6565e8c0702e5b164083c613854 +size 89210 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png new file mode 100644 index 000000000..403c5a3d8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:129d810b162ed47cee6b8e3290d42856978dee372ec4ab9f30bfa86f741dc634 +size 172303 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png new file mode 100644 index 000000000..21e1f5b25 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff01af3ff469adc7af06dc12854460ccf852b8cf0bdbf31182963955154f8b1f +size 175557 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png new file mode 100644 index 000000000..c2646c512 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d378850d9107beb3f9a7983a04767b06e413fca00897363d02b892b69a46adfd +size 106925 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.1.png new file mode 100644 index 000000000..93855a34f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4cf4a5f930694da8311658bf653adf478f5fa5a4e536924e5e294670e0fd624 +size 22614 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.2.png new file mode 100644 index 000000000..fd9472b3c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32dc63e9ff568b949a32d3bf5d8a3b4f7f03f5e13b827ade6750f062e1b2b15e +size 13101 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png new file mode 100644 index 000000000..ebfc5ec79 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1dc00cb9ba0e7b711372fe608e292cbbdab23f459dfb764afdad87faf567faf +size 127925 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png new file mode 100644 index 000000000..7a80887e4 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a1e779faa6eda3ec330acbb10da4f65ec026d10721b4417a661249f8b5c3da3 +size 100378 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png new file mode 100644 index 000000000..248206a5b --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6001967eca419537b4e09c682a2f1842390507494d72eb80e54f500373afaa4 +size 139838 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png new file mode 100644 index 000000000..1f73d0427 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:783b5a2ffcb1192cf9e92362c6b882cdc2c87dfc3e81bb5c343268589958eb12 +size 71396 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png new file mode 100644 index 000000000..430d5a4fc --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd2bc1db544ad1ddfd4f7e8895c2335479993782305f309a0746abaf5909ca18 +size 67891 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png new file mode 100644 index 000000000..e2d668e17 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ed0ca5f41ff96941ae11ab56d0df3b89e55a92b8e601520021a264d0a3ed5c0 +size 89433 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png new file mode 100644 index 000000000..8c3f9c8f9 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e928017c21d7226ca2770d00cf2d7a02b7d0de3a0cf8d96d88c1ca6583fc7de +size 102999 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png new file mode 100644 index 000000000..8c3f9c8f9 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e928017c21d7226ca2770d00cf2d7a02b7d0de3a0cf8d96d88c1ca6583fc7de +size 102999 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png new file mode 100644 index 000000000..9bed34cfc --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a54e7727b1cb45d7bd3e7b6bde700507d0e27f4ba33b4e97595d23ff785c89f +size 98086 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomScreen.1.png new file mode 100644 index 000000000..f40cf0b5a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd7f4e4bac3e8ef79d6d6886c7df085045a39e23e3be10e3a9c450c071e0fcaf +size 313818 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png new file mode 100644 index 000000000..d3d93943c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e1627337bdb45fef3f3c3bfd07ff7198919c3d48c09123bd7956536efc43354 +size 59468 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png new file mode 100644 index 000000000..1827540f7 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26504c75ead0a0d9fe59a56eae78a12da4886e75124d26fbd3c49803be71088d +size 109519 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png new file mode 100644 index 000000000..15c390eaa --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cdf6da0f23816c09e9eda1c18bb7df4fa586a1ed15f4bd7c325d8fe8ea891724 +size 118019 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.1.png new file mode 100644 index 000000000..f9007e287 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cbf2e502cdb3f9f297e3f753677acaa97702ea60e0c97f8f374c8b97fefa27d +size 124162 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.2.png new file mode 100644 index 000000000..8ef17d4b7 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5cd81d9d11ecd3877eb64e1af288eb6a5058e500267cb287354897493bba1f8 +size 118908 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.3.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.3.png new file mode 100644 index 000000000..aa878bcb4 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4144356d079e8526748fbc7db00528d848b26b12741d58a1b598dfce8213301d +size 104176 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.4.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.4.png new file mode 100644 index 000000000..74ee3bac2 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9b2b5046d1241cd3c4920fe0e5bd8b927092ec9bad4368d27e224e1d620370b +size 120096 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png new file mode 100644 index 000000000..d91c8f2dd --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f43f990e068eda0b66d8b9acb8f2f3418b6ebd8039fd54d44873c3c99e67761 +size 96767 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png new file mode 100644 index 000000000..ee8d3d740 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c8c3862a520cc7e8a7e82ebaa8cc93211380a556fbe92d7643d0091bc5e2e6d +size 97820 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png new file mode 100644 index 000000000..383b07cd9 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac861ab88ea57e82e9852a24fe3ab9091fc5cc7470806177cccd53724ac55817 +size 94616 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png new file mode 100644 index 000000000..6df2a3463 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13916ea92ec6ac2eb10e3478476e2175d456f0a6f2d523da0265f95e7ff4e5f2 +size 96154 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png new file mode 100644 index 000000000..bb6941d12 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9f519c7e8dff90ec7f96f09ed81699dbbd3b5d505b89feaafce29743287d6b8 +size 217991 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png new file mode 100644 index 000000000..e0cd0ebfa --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90736cccfc66e012fff90dc2201e3856e7ed48edf41e1df9155e7420648d3d54 +size 96095 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_settingsScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_settingsScreen.1.png new file mode 100644 index 000000000..bc8867a7b --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_settingsScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c35b52beaa7f44389704efcd1ede447185767e3d1b03cde6aa54688bb7cc988 +size 171137 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png new file mode 100644 index 000000000..9938f6f38 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4eac89ed17c4e09dc7d03dcd59f770bd9dbe2e198db2b1d43981e7f8ad2c1207 +size 88113 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png new file mode 100644 index 000000000..d7810eec9 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9a52b60299bd3eeb4031e35baec18720c950e424f400db9d205a39b4572c2a8 +size 168665 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png new file mode 100644 index 000000000..1140372c2 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6254e617e3d0f62f50c101f45f175f7a49f1c2b547fb7a5ad5cccffb61196ffd +size 166012 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png new file mode 100644 index 000000000..14a036cc8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f897c947473966955b3a6512af183d3edeac0afed71a7905f0a72652d10d61b0 +size 157209 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png new file mode 100644 index 000000000..114f516cd --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5de934d4a60d3f5dcad141dbf2878c6a2aa7f5995f8ff633950bbdebe862a0b +size 162085 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png new file mode 100644 index 000000000..af6e99604 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb9b86220b2e7dda7e8354deb8a5ddbd38984b97429133555f7caf83191fbd20 +size 199745 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_splashScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_splashScreen.1.png new file mode 100644 index 000000000..961c8aa1c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_splashScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a5b325028976cc6c111089d447d728304a93b24b0125f6e5ca727d5c2f4b5c3 +size 53333 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_startChatScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_startChatScreen.1.png new file mode 100644 index 000000000..5c1d0529c --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_startChatScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd8f0163953c133e423450a7fb0ae2fa6259a97d6ab0813df9de146d096e2e8f +size 98834 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png new file mode 100644 index 000000000..5a50d25b8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd64e80515283dba83fa8cef2fe073d7282355e5f57b0c5fe4f49043cb4d3b35 +size 58836 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png new file mode 100644 index 000000000..5a50d25b8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd64e80515283dba83fa8cef2fe073d7282355e5f57b0c5fe4f49043cb4d3b35 +size 58836 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png new file mode 100644 index 000000000..b1550f573 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed14174b64ec4da738406fdf1afb741b966cc7d822c8c873e84fa85bafe51ba4 +size 107537 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png new file mode 100644 index 000000000..99269cc34 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af67b5d93490d3c8859a8ccd81f480f30a4216cf9e7d88bd0c04d3a3a2c389a8 +size 103247 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png new file mode 100644 index 000000000..3d8324b2e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9344bdb60dfb65fa9f7b752e71306a41123e3f2cdf9d07b68eb153b2dae8fa62 +size 101306 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png new file mode 100644 index 000000000..65ea87d3a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d080efe428a7b0f13518fc29db64120f816b26f35fe049561cbb345434635563 +size 880235 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png new file mode 100644 index 000000000..a8e77f85a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5630ed474a8cb83fc0da1dbf2cb297aa2a4362c2eb1efc6ecfa6f8281b7bb963 +size 751272 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeRightAction.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeRightAction.1.png new file mode 100644 index 000000000..e0f9cb3d8 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeRightAction.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a2da19db31abdc4375487c496b9d210a62d69507ed1d7da635b859b4c036d3d +size 80525 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png new file mode 100644 index 000000000..2ac7bc197 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1680eb64a85e7bf9c7c157e08c6d28a3ad56f9d285f689d45940d85d249de27 +size 56895 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png new file mode 100644 index 000000000..02e4d6ca6 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a516bfff3913d6945921fb390af3f256e2bf15982f3a8ac60c7fcabbd0b37749 +size 61345 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_templateScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_templateScreen.1.png new file mode 100644 index 000000000..2980edd6d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_templateScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:857f429b2a73b1c154e624afd9458440d82793abf7a79227614331179130fd71 +size 84175 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png new file mode 100644 index 000000000..a41b127f7 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28393ef0e427739046c74311af565ecfc3d1e74696ccaec67a99135f590d58d3 +size 179423 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png new file mode 100644 index 000000000..8851b65eb --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16f110dd908398601d5fd7548c44c3b9cb526b8ff88b0a790484398be2dbc7a9 +size 167600 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_threadDecorator.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_threadDecorator.1.png new file mode 100644 index 000000000..6fc415275 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_threadDecorator.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd5ffdd57e955c533fefd7d49c33878a57796f028dfed48ecdcc34756b3a611c +size 58216 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png new file mode 100644 index 000000000..a05809b45 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86685b6b11130797e0a051849822ee226528f93c56b2b8cfeaa4dfb3107b6283 +size 59339 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png new file mode 100644 index 000000000..11c6e6304 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d88281315456e1a96c273e3a830a690951d498818475655b1eecd90ec7276c0f +size 341107 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png new file mode 100644 index 000000000..73cb44968 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b335991fb42254371dde89b76e5d058aa16374a4b7952dff8650f02d7e426433 +size 337092 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png new file mode 100644 index 000000000..77ecdf6c6 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e15eb8da5188a00ea5d2f74a25c0cb42ec2ff37d3fae25634c9ae83b532748a +size 339419 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png new file mode 100644 index 000000000..4bcff8602 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4ae2240ef88fd6ed3fc0d563bb9643ba2813d8aa30561841cf0ea3d977b368e +size 114131 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png new file mode 100644 index 000000000..48eab6885 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1b7fc46d4743fb67ae898079ea75c20d0b9679ea02c123241c0719c038e0b1c +size 593704 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png new file mode 100644 index 000000000..61955b299 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ffed2486877fd5cae6beebc1313f1c2333e9e58ee4f222874fd1f1e9677305f +size 112035 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png new file mode 100644 index 000000000..102bd9da5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9ad501f7c1b9a6a39c8f9968f2daf81389039e2b6556bf6085011826a9e8566 +size 151871 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png new file mode 100644 index 000000000..bd1075c5e --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1fe0273367371e632920b9ee24da35ac8265f2655b04228fd4c9fa32e105be1 +size 378613 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png new file mode 100644 index 000000000..cf5220b4d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c30542abc51cdb33fad246156be408cd49cad6ec754c928c3955ed7c73c6efb6 +size 241346 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReactionView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReactionView.1.png new file mode 100644 index 000000000..6f3c26438 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReactionView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dea259e7e2a033f839ed4556d4f4cb3fdfd964272c5bc132be424bdb22f3fadf +size 288448 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png new file mode 100644 index 000000000..9af29f501 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:499defedee74cf7513d151514a1378a767aac471f288480a86ffaa3be4257f4c +size 66169 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReplyView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReplyView.1.png new file mode 100644 index 000000000..31cb3b323 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReplyView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a74ff8483162c39fe5b127174b9d1bb5bc81bb7c63385148ac59ef45b3a33c80 +size 123268 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png new file mode 100644 index 000000000..f2dab03d0 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d2376a813d2cc64bfce5013f52befbcf1893fb28cd3dc8d79fced21014a1025 +size 62795 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineView.1.png new file mode 100644 index 000000000..f40cf0b5a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd7f4e4bac3e8ef79d6d6886c7df085045a39e23e3be10e3a9c450c071e0fcaf +size 313818 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_uITimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_uITimelineView.1.png new file mode 100644 index 000000000..f40cf0b5a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_uITimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd7f4e4bac3e8ef79d6d6886c7df085045a39e23e3be10e3a9c450c071e0fcaf +size 313818 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png new file mode 100644 index 000000000..7931e1aad --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c133c0daabbd3a7f1e4c74541d4fcc4febbb608fa789f0f62e221808ff4a5cad +size 99625 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png new file mode 100644 index 000000000..ebe431b3d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:838000baca7c0875590688dc7b0f7cd164de8487f2ced0fce40cc994bf6ebd90 +size 96085 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png new file mode 100644 index 000000000..3399b204f --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3b7151f59fa0848903069f41a415db65b59fd9f40105a8ec4ad0ba83b6c38a1 +size 102442 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png new file mode 100644 index 000000000..57689601a --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf044718ce31770cc35199f64954d232ccf36164720166af6ed893778d38e055 +size 83921 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png new file mode 100644 index 000000000..0a5eb5762 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:604e1d688577f1bbdb17d7944acbafcdda4cff65a84f61d1864ed1d86b12d4fc +size 84725 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png new file mode 100644 index 000000000..9f12a4d9b --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15cccc404b1c6967c51ec9223088ac804edb3b12b642f9c7c628f24eb4ef1b5e +size 85795 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png new file mode 100644 index 000000000..a77019c0d --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae5bba3aa09db8bcd1e8fbf262ec3f17c81afdc53e334fe649fcade43904b5b7 +size 101862 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userProfileCell.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userProfileCell.1.png new file mode 100644 index 000000000..609acd301 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_userProfileCell.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebfdc3655581cbc21f18873ee644c506ccecd2de4d89856b24aa85f329da9e33 +size 151588 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png new file mode 100644 index 000000000..48b98ba63 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75cb1a102958d7b034d171f216fc83a42d0bd1112c9e08e6e4c9c0476552196f +size 76152 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png new file mode 100644 index 000000000..14b7003f2 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a92933f61a4c3b0a8143cee7216b8be4dd1aa29c7c47833a90003297d3d805a +size 74572 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitingDialog.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitingDialog.1.png new file mode 100644 index 000000000..1863ea632 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitingDialog.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa5ead42fdbb9e22d2e9c8a9606c2291592131c33bbe8f8dd60e0a8379ee1a0e +size 553847 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png new file mode 100644 index 000000000..b5322bcf5 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04bbb0e08ca720e623511340f8e22972ef64c79fbf931766a07d93290f4df8a0 +size 520204 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png new file mode 100644 index 000000000..1863ea632 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa5ead42fdbb9e22d2e9c8a9606c2291592131c33bbe8f8dd60e0a8379ee1a0e +size 553847 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_welcomeScreen.1.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_welcomeScreen.1.png new file mode 100644 index 000000000..e1a705160 --- /dev/null +++ b/UnitTests/Sources/__Snapshots__/PreviewTests/test_welcomeScreen.1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56441b160222e3b233cf3bd53eb59d9f3169852ba46060dfd980dbb0c27f459a +size 814992