From 8b69308e0568688ce4ad6e1930881f06832bac68 Mon Sep 17 00:00:00 2001 From: Mauro <34335419+Velin92@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:50:34 +0200 Subject: [PATCH] Prefire compatibility with Xcode 15 (#1773) * xcode ready solution * now the previews won't fail but get generated * delay in some screens that require a waiting state (the bloom does not work in previews) * better code * longer delay removed and redone lfs readded as lfs --- .gitattributes | 2 +- .prefire.yml | 1 - ElementX.xcodeproj/project.pbxproj | 22 +- .../xcshareddata/swiftpm/Package.resolved | 4 +- .../Screens/HomeScreen/View/HomeScreen.swift | 2 + Tools/Prefire/PreviewTests.stencil | 28 +- UnitTests/Sources/PreviewTests.swift | 812 ------------------ .../PreviewTests/test_homeScreen.Empty.png | 3 - .../PreviewTests/test_homeScreen.Loaded.png | 3 - UnitTests/SupportingFiles/target.yml | 2 - .../test_advancedSettingsScreen.1.png | 0 .../test_analyticsPromptScreen.1.png | 0 ...t_analyticsPromptScreenCheckmarkItem.1.png | 0 .../test_analyticsSettingsScreen.1.png | 0 .../test_audioRoomTimelineView.1.png | 0 .../test_audioRoomTimelineView.2.png | 0 .../test_authenticationIconImage.1.png | 0 .../PreviewTests/test_bugReport.1.png | 0 .../PreviewTests/test_bugReport.2.png | 0 .../test_collapsibleRoomTimelineView.1.png | 0 .../PreviewTests/test_composerToolbar.1.png | 0 .../PreviewTests/test_createPollScreen.1.png | 0 ...t_createRoom.Create-Room-without-users.png | 0 .../test_createRoom.Create-Room.png | 0 .../test_emojiPickerScreen.Screen.png | 0 .../test_emojiPickerScreen.Sheet.png | 0 .../test_emojiPickerScreenHeaderView.1.png | 0 .../test_emoteRoomTimelineView.1.png | 0 .../test_emoteRoomTimelineView.2.png | 0 ...est_encryptedHistoryRoomTimelineView.1.png | 0 .../test_encryptedRoomTimelineView.1.png | 0 .../test_encryptedRoomTimelineView.2.png | 0 .../test_fileRoomTimelineView.1.png | 0 .../test_fileRoomTimelineView.2.png | 0 .../PreviewTests/test_formButtonStyles.1.png | 0 .../PreviewTests/test_formRowLabelStyle.1.png | 0 .../PreviewTests/test_formattedBodyText.1.png | 0 .../PreviewTests/test_formattedBodyText.2.png | 0 .../PreviewTests/test_fullscreenDialog.1.png | 0 .../PreviewTests/test_headerView.1.png | 0 .../PreviewTests/test_homeScreen.Empty.png | 3 + .../PreviewTests/test_homeScreen.Loaded.png | 3 + .../PreviewTests/test_homeScreen.Loading.png | 0 ...creenEmptyStateView.Constrained-layout.png | 0 ...homeScreenEmptyStateView.Normal-Layout.png | 0 .../test_homeScreenEmptyStateView.View.png | 0 ...test_homeScreenInvitesButton.Badge-off.png | 0 ...t_homeScreenInvitesButton.Badge-on-AX1.png | 0 .../test_homeScreenInvitesButton.Badge-on.png | 0 .../test_homeScreenRoomCell.1.png | 0 .../test_imageRoomTimelineView.1.png | 0 .../test_imageRoomTimelineView.2.png | 0 .../PreviewTests/test_inviteUsersScreen.1.png | 0 .../test_inviteUsersScreenSelectedItem.1.png | 0 .../test_invitesScreen.No-Invites.png | 0 .../test_invitesScreen.Some-Invite.png | 0 .../PreviewTests/test_invitesScreenCell.1.png | 0 .../test_legalInformationScreen.1.png | 0 .../test_locationMarkerView.1.png | 0 .../test_locationRoomTimelineView.Bubbles.png | 0 .../test_locationRoomTimelineView.Plain.png | 0 .../test_loginScreen.Credentials-Entered.png | 0 .../test_loginScreen.OIDC-Fallback.png | 0 .../test_loginScreen.Unsupported.png | 0 .../test_loginScreen.matrix-org.png | 0 .../test_longPressWithFeedback.1.png | 0 .../test_mapLibreStaticMapView.1.png | 0 .../test_matrixUserPermalink.1.png | 0 .../test_mediaUploadPreviewScreen.1.png | 0 .../PreviewTests/test_messageComposer.1.png | 0 ...est_messageComposer.Replying-in-thread.png | 0 .../test_messageComposer.Replying.png | 0 .../test_messageForwardingScreen.1.png | 0 .../test_messageText.Custom-Attachment.png | 0 .../test_messageText.Custom-Text.png | 0 .../test_messageText.SwiftUI-Default-Text.png | 0 .../test_messageText.With-block-quote.png | 0 .../test_messageText.With-list.png | 0 .../PreviewTests/test_migrationScreen.1.png | 0 .../test_noticeRoomTimelineView.1.png | 0 .../test_noticeRoomTimelineView.2.png | 0 ...tionSettingsEditScreen.Applying-change.png | 0 ...icationSettingsEditScreen.Direct-Chats.png | 0 ...ficationSettingsEditScreen.Group-Chats.png | 0 ...tificationSettingsEditScreenRoomCell.1.png | 0 .../test_notificationSettingsScreen.1.png | 0 ...nSettingsScreen.Configuration-mismatch.png | 0 .../PreviewTests/test_onboardingScreen.1.png | 0 ..._paginationIndicatorRoomTimelineView.1.png | 0 .../PreviewTests/test_pillView.1.png | 0 .../test_placeholderAvatarImage.1.png | 0 .../test_placeholderScreen.Screen.png | 0 .../test_placeholderScreen.Split-View.png | 0 .../PreviewTests/test_pollOptionView.1.png | 0 ..._pollRoomTimelineView.Disclosed-Bubble.png | 0 ...t_pollRoomTimelineView.Disclosed-Plain.png | 0 ...oomTimelineView.Ended-Disclosed-Bubble.png | 0 ...RoomTimelineView.Ended-Disclosed-Plain.png | 0 ...mTimelineView.Ended-Undisclosed-Bubble.png | 0 ...omTimelineView.Ended-Undisclosed-Plain.png | 0 ...ollRoomTimelineView.Undisclosed-Bubble.png | 0 ...pollRoomTimelineView.Undisclosed-Plain.png | 0 .../test_reactionsSummaryView.1.png | 0 .../test_readMarkerRoomTimelineView.1.png | 0 .../test_redactedRoomTimelineView.1.png | 0 .../test_reportContentScreen.1.png | 0 .../test_roomAttachmentPicker.1.png | 0 .../test_roomDetailsEditScreen.Normal.png | 0 .../test_roomDetailsEditScreen.Read-only.png | 0 .../test_roomDetailsScreen.DM-Room.png | 0 .../test_roomDetailsScreen.Generic-Room.png | 0 .../test_roomDetailsScreen.Simple-Room.png | 0 .../PreviewTests/test_roomHeaderView.1.png | 0 .../PreviewTests/test_roomHeaderView.2.png | 0 ..._roomMemberDetailsScreen.Account-Owner.png | 0 ...t_roomMemberDetailsScreen.Ignored-User.png | 0 ...est_roomMemberDetailsScreen.Other-User.png | 0 .../test_roomMembersListMemberCell.1.png | 0 .../test_roomMembersListScreen.1.png | 0 ...otificationSettingsCustomSectionView.1.png | 0 ..._roomNotificationSettingsScreen.Custom.png | 0 ...roomNotificationSettingsScreen.Default.png | 0 ...otificationSettingsUserDefinedScreen.1.png | 0 .../PreviewTests/test_roomScreen.1.png | 0 .../test_separatorRoomTimelineView.1.png | 0 .../test_serverConfirmationScreen.Login.png | 0 ...test_serverConfirmationScreen.Register.png | 0 .../PreviewTests/test_serverSelection.1.png | 0 .../PreviewTests/test_serverSelection.2.png | 0 .../PreviewTests/test_serverSelection.3.png | 0 .../PreviewTests/test_serverSelection.4.png | 0 .../test_sessionVerification.Cancelled.png | 0 .../test_sessionVerification.Initial.png | 0 ...t_sessionVerification.Request-Accepted.png | 0 ...onVerification.Requesting-Verification.png | 0 ..._sessionVerification.Showing-Challenge.png | 0 .../test_sessionVerification.Verified.png | 0 .../PreviewTests/test_settingsScreen.1.png | 0 .../PreviewTests/test_shimmerOverlay.1.png | 0 .../PreviewTests/test_softLogoutScreen.1.png | 0 .../PreviewTests/test_softLogoutScreen.2.png | 0 .../PreviewTests/test_softLogoutScreen.3.png | 0 .../PreviewTests/test_softLogoutScreen.4.png | 0 .../PreviewTests/test_softLogoutScreen.5.png | 0 .../PreviewTests/test_splashScreen.1.png | 0 .../PreviewTests/test_startChatScreen.1.png | 0 .../test_stateRoomTimelineView.1.png | 0 .../test_stateRoomTimelineView.2.png | 0 ...test_staticLocationScreenViewer.Picker.png | 0 ...creenViewer.View-Only-with-description.png | 0 ...t_staticLocationScreenViewer.View-Only.png | 0 .../test_stickerRoomTimelineView.1.png | 0 .../test_stickerRoomTimelineView.2.png | 0 .../PreviewTests/test_swipeRightAction.1.png | 0 .../PreviewTests/test_swipeToReplyView.1.png | 0 .../PreviewTests/test_swipeToReplyView.2.png | 0 .../PreviewTests/test_templateScreen.1.png | 0 .../test_textRoomTimelineView.1.png | 0 .../test_textRoomTimelineView.2.png | 0 .../PreviewTests/test_threadDecorator.1.png | 0 .../test_timelineDeliveryStatusView.1.png | 0 ...temBubbledStylerView.Mock-Timeline-RTL.png | 0 ...rView.Mock-Timeline-with-read-receipts.png | 0 ...ineItemBubbledStylerView.Mock-Timeline.png | 0 ..._timelineItemBubbledStylerView.Replies.png | 0 ...ItemBubbledStylerView.Thread-decorator.png | 0 .../test_timelineItemDebugView.1.png | 0 .../PreviewTests/test_timelineItemMenu.1.png | 0 .../test_timelineItemPlainStylerView.1.png | 0 ...st_timelineItemPlainStylerView.Threads.png | 0 ...es-LTR-with-different-layout-languages.png | 0 ...es-RTL-with-different-layout-languages.png | 0 .../test_timelineItemStyler.Bubbles.png | 0 .../test_timelineItemStyler.Plain.png | 0 .../test_timelineReactionView.1.png | 0 .../test_timelineReadReceiptsView.1.png | 0 .../PreviewTests/test_timelineReplyView.1.png | 0 .../test_timelineStartRoomTimelineView.1.png | 0 .../PreviewTests/test_timelineView.1.png | 0 .../PreviewTests/test_uITimelineView.1.png | 0 .../test_unsupportedRoomTimelineView.1.png | 0 .../test_unsupportedRoomTimelineView.2.png | 0 .../test_userDetailsEditScreen.1.png | 0 ...est_userIndicatorModalView.No-progress.png | 0 ...st_userIndicatorModalView.Progress-Bar.png | 0 .../test_userIndicatorModalView.Spinner.png | 0 .../test_userIndicatorToastView.1.png | 0 .../PreviewTests/test_userProfileCell.1.png | 0 .../test_videoRoomTimelineView.1.png | 0 .../test_videoRoomTimelineView.2.png | 0 .../PreviewTests/test_waitingDialog.1.png | 0 .../test_waitlistScreen.Success.png | 0 .../test_waitlistScreen.Waiting.png | 0 .../PreviewTests/test_welcomeScreen.1.png | 0 project.yml | 2 +- 195 files changed, 39 insertions(+), 848 deletions(-) delete mode 100644 UnitTests/Sources/PreviewTests.swift delete mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png delete mode 100644 UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_bugReport.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_bugReport.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_composerToolbar.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_createPollScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_formButtonStyles.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_formattedBodyText.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_formattedBodyText.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_headerView.1.png (100%) create mode 100644 UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Empty.png create mode 100644 UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreen.Loading.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_locationMarkerView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageComposer.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageComposer.Replying.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_messageText.With-list.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_migrationScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_onboardingScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pillView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollOptionView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_reportContentScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomHeaderView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomHeaderView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_roomScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_serverSelection.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_serverSelection.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_serverSelection.3.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_serverSelection.4.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_settingsScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_splashScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_startChatScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_swipeRightAction.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_templateScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_threadDecorator.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-LTR-with-different-layout-languages.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-RTL-with-different-layout-languages.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineItemStyler.Plain.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineReactionView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineReplyView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_timelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_uITimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_userProfileCell.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_waitingDialog.1.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png (100%) rename UnitTests/{Sources => }/__Snapshots__/PreviewTests/test_welcomeScreen.1.png (100%) diff --git a/.gitattributes b/.gitattributes index b59f2b141..90545e45a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ UITests/Sources/__Snapshots__/** filter=lfs diff=lfs merge=lfs -text UnitTests/Resources/** filter=lfs diff=lfs merge=lfs -text -UnitTests/Sources/__Snapshots__/** filter=lfs diff=lfs merge=lfs -text \ No newline at end of file +UnitTests/__Snapshots__/** filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/.prefire.yml b/.prefire.yml index 451f66e0b..44f68a93e 100644 --- a/.prefire.yml +++ b/.prefire.yml @@ -1,5 +1,4 @@ test_configuration: - - test_file_path: UnitTests/Sources/PreviewTests.swift - template_file_path: Tools/Prefire/PreviewTests.stencil - simulator_device: "iPhone14" - required_os: 16 diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index d32e8a389..3235015fb 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 54; + objectVersion = 56; objects = { /* Begin PBXBuildFile section */ @@ -493,7 +493,6 @@ 9BEA56957B3AF954E7321658 /* ComposerToolbarViewModelProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44928D844E16EE48A311FCA /* ComposerToolbarViewModelProtocol.swift */; }; 9C45CE85325CD591DADBC4CA /* ElementXTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DBFEAC3AC691CBB84983E275 /* ElementXTests.swift */; }; 9C5A07E7C33F3F40287D7861 /* SettingsScreenUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EC57A32ABC80D774CC663DB /* SettingsScreenUITests.swift */; }; - 9C7895941669EA7976A18D88 /* PreviewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A01505B6371171413C3C4BD /* PreviewTests.swift */; }; 9CCC77C31CB399661A034739 /* UserProperties+Element.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A6C4BE591FE5C38CE9C7EF3 /* UserProperties+Element.swift */; }; 9D2E03DB175A6AB14589076D /* Algorithms in Frameworks */ = {isa = PBXBuildFile; productRef = 290FDEDA4D764B9F7EBE55A9 /* Algorithms */; }; 9D79B94493FB32249F7E472F /* PlaceholderAvatarImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = C705E605EF57C19DBE86FFA1 /* PlaceholderAvatarImage.swift */; }; @@ -937,7 +936,7 @@ 127C8472672A5BA09EF1ACF8 /* CurrentValuePublisher.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CurrentValuePublisher.swift; sourceTree = ""; }; 12EDAFB64FA5F6812D54F39A /* MigrationScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MigrationScreenViewModel.swift; sourceTree = ""; }; 12F1E7F9C2BE8BB751037826 /* WaitlistScreenCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaitlistScreenCoordinator.swift; sourceTree = ""; }; - 1304D9191300873EADA52D6E /* IntegrationTests.xctestplan */ = {isa = PBXFileReference; path = IntegrationTests.xctestplan; sourceTree = ""; }; + 1304D9191300873EADA52D6E /* IntegrationTests.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = IntegrationTests.xctestplan; sourceTree = ""; }; 130ED565A078F7E0B59D9D25 /* UNTextInputNotificationResponse+Creator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UNTextInputNotificationResponse+Creator.swift"; sourceTree = ""; }; 13802897C7AFA360EA74C0B0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = en; path = en.lproj/Localizable.stringsdict; sourceTree = ""; }; 1423AB065857FA546444DB15 /* NotificationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationManager.swift; sourceTree = ""; }; @@ -1089,7 +1088,7 @@ 47111410B6E659A697D472B5 /* RoomProxyProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomProxyProtocol.swift; sourceTree = ""; }; 471EB7D96AFEA8D787659686 /* EmoteRoomTimelineView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmoteRoomTimelineView.swift; sourceTree = ""; }; 47873756E45B46683D97DC32 /* LegalInformationScreenModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LegalInformationScreenModels.swift; sourceTree = ""; }; - 478BE8591BD13E908EF70C0C /* DesignKit */ = {isa = PBXFileReference; lastKnownFileType = folder; name = DesignKit; path = DesignKit; sourceTree = SOURCE_ROOT; }; + 478BE8591BD13E908EF70C0C /* DesignKit */ = {isa = PBXFileReference; lastKnownFileType = folder; path = DesignKit; sourceTree = SOURCE_ROOT; }; 4798B3B7A1E8AE3901CEE8C6 /* FramePreferenceKey.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FramePreferenceKey.swift; sourceTree = ""; }; 47EBB5D698CE9A25BB553A2D /* Strings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Strings.swift; sourceTree = ""; }; 47F29139BC2A804CE5E0757E /* MediaUploadPreviewScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MediaUploadPreviewScreenViewModel.swift; sourceTree = ""; }; @@ -1099,7 +1098,6 @@ 49E45C3DC740D3AB9A47FD32 /* SwipeToReplyView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwipeToReplyView.swift; sourceTree = ""; }; 49E6066092ED45E36BB306F7 /* zh-Hant-TW */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "zh-Hant-TW"; path = "zh-Hant-TW.lproj/Localizable.stringsdict"; sourceTree = ""; }; 49E751D7EDB6043238111D90 /* UNNotificationRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UNNotificationRequest.swift; sourceTree = ""; }; - 4A01505B6371171413C3C4BD /* PreviewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewTests.swift; sourceTree = ""; }; 4A4AD793D50748F8997E5B15 /* TimelineItemMacContextMenu.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimelineItemMacContextMenu.swift; sourceTree = ""; }; 4AB7D7DAAAF662DED9D02379 /* MockMediaLoader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockMediaLoader.swift; sourceTree = ""; }; 4ADC55DFF46083BC957E0019 /* CreatePollScreenModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreatePollScreenModels.swift; sourceTree = ""; }; @@ -1287,7 +1285,7 @@ 8D55702474F279D910D2D162 /* RoomStateEventStringBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomStateEventStringBuilder.swift; sourceTree = ""; }; 8D8169443E5AC5FF71BFB3DB /* cs */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/Localizable.strings; sourceTree = ""; }; 8DC2C9E0E15C79BBDA80F0A2 /* TimelineStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimelineStyle.swift; sourceTree = ""; }; - 8E088F2A1B9EC529D3221931 /* UITests.xctestplan */ = {isa = PBXFileReference; path = UITests.xctestplan; sourceTree = ""; }; + 8E088F2A1B9EC529D3221931 /* UITests.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = UITests.xctestplan; sourceTree = ""; }; 8E1BBA73B611EDEEA6E20E05 /* InvitesScreenModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InvitesScreenModels.swift; sourceTree = ""; }; 8EC57A32ABC80D774CC663DB /* SettingsScreenUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsScreenUITests.swift; sourceTree = ""; }; 8F21ED7205048668BEB44A38 /* AppActivityView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppActivityView.swift; sourceTree = ""; }; @@ -1401,7 +1399,7 @@ B4CFE236419E830E8946639C /* Analytics+SwiftUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Analytics+SwiftUI.swift"; sourceTree = ""; }; B590BD4507D4F0A377FDE01A /* LoadableAvatarImage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadableAvatarImage.swift; sourceTree = ""; }; B5B243E7818E5E9F6A4EDC7A /* NoticeRoomTimelineView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoticeRoomTimelineView.swift; sourceTree = ""; }; - B61C339A2FDDBD067FF6635C /* ConfettiScene.scn */ = {isa = PBXFileReference; path = ConfettiScene.scn; sourceTree = ""; }; + B61C339A2FDDBD067FF6635C /* ConfettiScene.scn */ = {isa = PBXFileReference; lastKnownFileType = file.bplist; path = ConfettiScene.scn; sourceTree = ""; }; B6311F21F911E23BE4DF51B4 /* ReadMarkerRoomTimelineView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReadMarkerRoomTimelineView.swift; sourceTree = ""; }; B63B69F9A2BC74DD40DC75C8 /* AdvancedSettingsScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdvancedSettingsScreenViewModel.swift; sourceTree = ""; }; B697816AF93DA06EC58C5D70 /* WaitlistScreenViewModelProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaitlistScreenViewModelProtocol.swift; sourceTree = ""; }; @@ -1492,7 +1490,7 @@ CD95B3714F806AC9CF9A557B /* ComposerToolbarViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComposerToolbarViewModel.swift; sourceTree = ""; }; CDB3227C7A74B734924942E9 /* RoomSummaryProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomSummaryProvider.swift; sourceTree = ""; }; CEE0E6043EFCF6FD2A341861 /* TimelineReplyView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimelineReplyView.swift; sourceTree = ""; }; - CEE41494C837AA403A06A5D9 /* UnitTests.xctestplan */ = {isa = PBXFileReference; path = UnitTests.xctestplan; sourceTree = ""; }; + CEE41494C837AA403A06A5D9 /* UnitTests.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = UnitTests.xctestplan; sourceTree = ""; }; CF48AF076424DBC1615C74AD /* AuthenticationServiceProxy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthenticationServiceProxy.swift; sourceTree = ""; }; D0140615D2232612C813FD6C /* EncryptedHistoryRoomTimelineItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EncryptedHistoryRoomTimelineItem.swift; sourceTree = ""; }; D071F86CD47582B9196C9D16 /* UserDiscoverySection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDiscoverySection.swift; sourceTree = ""; }; @@ -1578,7 +1576,7 @@ ECF79FB25E2D4BD6F50CE7C9 /* RoomMembersListScreenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomMembersListScreenViewModel.swift; sourceTree = ""; }; ED044D00F2176681CC02CD54 /* HomeScreenRoomCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeScreenRoomCell.swift; sourceTree = ""; }; ED1D792EB82506A19A72C8DE /* RoomTimelineItemProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoomTimelineItemProtocol.swift; sourceTree = ""; }; - ED482057AE39D5C6D9C5F3D8 /* message.caf */ = {isa = PBXFileReference; path = message.caf; sourceTree = ""; }; + ED482057AE39D5C6D9C5F3D8 /* message.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = message.caf; sourceTree = ""; }; ED983D4DCA5AFA6E1ED96099 /* StateRoomTimelineView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StateRoomTimelineView.swift; sourceTree = ""; }; EDAA4472821985BF868CC21C /* ServerSelectionViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServerSelectionViewModelTests.swift; sourceTree = ""; }; EE378083653EF0C9B5E9D580 /* EmoteRoomTimelineItemContent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmoteRoomTimelineItemContent.swift; sourceTree = ""; }; @@ -1592,7 +1590,7 @@ F174A5627CDB3CAF280D1880 /* EmojiPickerScreenModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPickerScreenModels.swift; sourceTree = ""; }; F17EFA1D3D09FC2F9C5E1CB2 /* MediaProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MediaProvider.swift; sourceTree = ""; }; F1B8500C152BC59445647DA8 /* UnsupportedRoomTimelineItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnsupportedRoomTimelineItem.swift; sourceTree = ""; }; - F2D513D2477B57F90E98EEC0 /* portrait_test_video.mp4 */ = {isa = PBXFileReference; path = portrait_test_video.mp4; sourceTree = ""; }; + F2D513D2477B57F90E98EEC0 /* portrait_test_video.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = portrait_test_video.mp4; sourceTree = ""; }; F31F59030205A6F65B057E1A /* MatrixEntityRegexTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MatrixEntityRegexTests.swift; sourceTree = ""; }; F348B5F2C12F9D4F4B4D3884 /* VideoRoomTimelineItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoRoomTimelineItem.swift; sourceTree = ""; }; F36C0A6D59717193F49EA986 /* UserSessionTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserSessionTests.swift; sourceTree = ""; }; @@ -2693,7 +2691,6 @@ 514363244AE7D68080D44C6F /* NotificationSettingsScreenViewModelTests.swift */, D53D6BB7E8E5EC031281872C /* OnboardingScreenViewModelTests.swift */, 6FB31A32C93D94930B253FBF /* PermalinkBuilderTests.swift */, - 4A01505B6371171413C3C4BD /* PreviewTests.swift */, 086C19086DD16E9B38E25954 /* ReportContentViewModelTests.swift */, 00E5B2CBEF8F96424F095508 /* RoomDetailsEditScreenViewModelTests.swift */, 2EFE1922F39398ABFB36DF3F /* RoomDetailsViewModelTests.swift */, @@ -4469,7 +4466,6 @@ E3AC72E3E58F364EF15C1CC7 /* NotificationSettingsScreenViewModelTests.swift in Sources */, 0C26A1588B17DCDE5F490FE3 /* OnboardingScreenViewModelTests.swift in Sources */, 27E9263DA75E266690A37EB1 /* PermalinkBuilderTests.swift in Sources */, - 9C7895941669EA7976A18D88 /* PreviewTests.swift in Sources */, D415764645491F10344FC6AC /* Publisher.swift in Sources */, D53B80EF02C1062E68659EDD /* ReportContentViewModelTests.swift in Sources */, 9DD84E014ADFB2DD813022D5 /* RoomDetailsEditScreenViewModelTests.swift in Sources */, @@ -5698,7 +5694,7 @@ repositoryURL = "https://github.com/BarredEwe/Prefire"; requirement = { kind = upToNextMinorVersion; - minimumVersion = 1.4.1; + minimumVersion = 1.5.0; }; }; 395DE6AE429B7ACC7C7FE31D /* XCRemoteSwiftPackageReference "KZFileWatchers" */ = { diff --git a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 657de9135..63062649a 100644 --- a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -156,8 +156,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/BarredEwe/Prefire", "state" : { - "revision" : "abb8dfa44391b4f47edb4937a4ba124e76270a87", - "version" : "1.4.1" + "revision" : "898a4a9f5d5eb0a0b07adb1a7c89daf0f068b129", + "version" : "1.5.0" } }, { diff --git a/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift b/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift index f3be00267..bf787a522 100644 --- a/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift +++ b/ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift @@ -324,11 +324,13 @@ struct HomeScreen_Previews: PreviewProvider, TestablePreview { HomeScreen(context: loadedViewModel.context) } .previewDisplayName("Loaded") + .snapshot(delay: 2.0) NavigationStack { HomeScreen(context: emptyViewModel.context) } .previewDisplayName("Empty") + .snapshot(delay: 2.0) } static func viewModel(_ state: MockRoomSummaryProviderState) -> HomeScreenViewModel { diff --git a/Tools/Prefire/PreviewTests.stencil b/Tools/Prefire/PreviewTests.stencil index 88b62c3b9..0e2422d3e 100644 --- a/Tools/Prefire/PreviewTests.stencil +++ b/Tools/Prefire/PreviewTests.stencil @@ -42,8 +42,8 @@ class PreviewTests: XCTestCase { private func assertSnapshots(matching preview: _Preview, testName: String = #function) { let isScreen = preview.layout == .device let device = preview.device?.snapshotDevice() ?? deviceConfig - var delay: TimeInterval = 1.0 - var precision: Float = 0.99 + var delay: TimeInterval = 0 + var precision: Float = 1 let view = preview.content .onPreferenceChange(DelayPreferenceKey.self) { delay = $0 } @@ -54,13 +54,17 @@ class PreviewTests: XCTestCase { .fixedSize(horizontal: false, vertical: true) ) - assertSnapshot( - matching: matchingView, - as: .prefireImage(precision: { precision }, duration: { delay }, layout: isScreen ? .device(config: device) : .sizeThatFits), - named: preview.displayName{% if argument.file %}, - file: file{% endif %}, - testName: testName - ) + let failure = verifySnapshot(of: matchingView, + as: .prefireImage(precision: { precision }, duration: { delay }, layout: isScreen ? .device(config: device) : .sizeThatFits), + named: preview.displayName{% if argument.file %}, + file: file{% endif %}, + testName: testName) + + if let failure, + !failure.contains("No reference was found on disk."), + !failure.contains("to test against the newly-recorded snapshot") { + XCTFail(failure) + } #if canImport(AccessibilitySnapshot) let vc = UIHostingController(rootView: matchingView) @@ -83,9 +87,13 @@ class PreviewTests: XCTestCase { fatalError("Switch to using \(simulatorDevice) for these tests.") } - guard osVersion.majorVersion == requiredOSVersion else { + guard osVersion.majorVersion == requiredOSVersion else { fatalError("Switch to iOS \(requiredOSVersion) for these tests.") } + + guard UITraitCollection.current.userInterfaceStyle == .light else { + fatalError("Switch to light mode for these tests.") + } } } diff --git a/UnitTests/Sources/PreviewTests.swift b/UnitTests/Sources/PreviewTests.swift deleted file mode 100644 index 91aef35a0..000000000 --- a/UnitTests/Sources/PreviewTests.swift +++ /dev/null @@ -1,812 +0,0 @@ -// Generated using Sourcery 2.0.1 — https://github.com/krzysztofzablocki/Sourcery -// DO NOT EDIT - -// swiftlint:disable all -// swiftformat:disable all - -import XCTest -import SwiftUI -import Prefire - -@testable import SnapshotTesting -#if canImport(AccessibilitySnapshot) - import AccessibilitySnapshot -#endif -@testable import ElementX - -class PreviewTests: XCTestCase { - private let deviceConfig: ViewImageConfig = .iPhoneX - private let simulatorDevice = "iPhone14" - private let requiredOSVersion = 16 - - override func setUp() { - super.setUp() - - checkEnvironments() - 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) { - let isScreen = preview.layout == .device - let device = preview.device?.snapshotDevice() ?? deviceConfig - var delay: TimeInterval = 1.0 - var precision: Float = 0.99 - - let view = preview.content - .onPreferenceChange(DelayPreferenceKey.self) { delay = $0 } - .onPreferenceChange(PrecisionPreferenceKey.self) { precision = $0 } - - let matchingView = isScreen ? AnyView(view) : AnyView(view - .frame(width: device.size?.width) - .fixedSize(horizontal: false, vertical: true) - ) - - assertSnapshot( - matching: matchingView, - as: .prefireImage(precision: { precision }, duration: { delay }, layout: isScreen ? .device(config: device) : .sizeThatFits), - named: preview.displayName, - testName: testName - ) - - #if canImport(AccessibilitySnapshot) - let vc = UIHostingController(rootView: matchingView) - vc.view.frame = UIScreen.main.bounds - assertSnapshot( - matching: vc, - as: .wait(for: delay, on: .accessibilityImage(showActivationPoints: .always)), - named: preview.displayName.map { $0 + ".accessibility" }, - testName: testName - ) - #endif - } - - /// Check environments to avoid problems with snapshots on different devices or OS. - private func checkEnvironments() { - let deviceModel = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] - let osVersion = ProcessInfo().operatingSystemVersion - guard deviceModel?.contains(simulatorDevice) ?? false else { - fatalError("Switch to using \(simulatorDevice) for these tests.") - } - guard osVersion.majorVersion == requiredOSVersion else { - fatalError("Switch to iOS \(requiredOSVersion) for these tests.") - } - } -} - -// MARK: - SnapshotTesting + Extensions - -private extension PreviewDevice { - func snapshotDevice() -> ViewImageConfig? { - switch rawValue { - case "iPhone 14", "iPhone 13", "iPhone 12", "iPhone 11", "iPhone 10": - return .iPhoneX - case "iPhone 6", "iPhone 6s", "iPhone 7", "iPhone 8": - return .iPhone8 - case "iPhone 6 Plus", "iPhone 6s Plus", "iPhone 8 Plus": - return .iPhone8Plus - case "iPhone SE (1st generation)", "iPhone SE (2nd generation)": - return .iPhoneSe - default: return nil - } - } -} - -private extension Snapshotting where Value: SwiftUI.View, Format == UIImage { - static func prefireImage( - drawHierarchyInKeyWindow: Bool = false, - precision: @escaping () -> Float, - duration: @escaping () -> TimeInterval, - layout: SwiftUISnapshotLayout = .sizeThatFits, - traits: UITraitCollection = .init() - ) -> Snapshotting { - let config: ViewImageConfig - - switch layout { - #if os(iOS) || os(tvOS) - case let .device(config: deviceConfig): - config = deviceConfig - #endif - case .sizeThatFits: - config = .init(safeArea: .zero, size: nil, traits: traits) - case let .fixed(width: width, height: height): - let size = CGSize(width: width, height: height) - config = .init(safeArea: .zero, size: size, traits: traits) - } - - return SimplySnapshotting(pathExtension: "png", diffing: .prefireImage(precision: precision, scale: traits.displayScale)) - .asyncPullback { view in - var config = config - - let controller: UIViewController - - if config.size != nil { - controller = UIHostingController(rootView: view) - } else { - let hostingController = UIHostingController(rootView: view) - - let maxSize = CGSize.zero - config.size = hostingController.sizeThatFits(in: maxSize) - - controller = hostingController - } - - return Async { callback in - let strategy = snapshotView( - config: config, - drawHierarchyInKeyWindow: drawHierarchyInKeyWindow, - traits: traits, - view: controller.view, - viewController: controller - ) - - let duration = duration() - if duration != .zero { - let expectation = XCTestExpectation(description: "Wait") - DispatchQueue.main.asyncAfter(deadline: .now() + duration) { - expectation.fulfill() - } - _ = XCTWaiter.wait(for: [expectation], timeout: duration + 1) - } - strategy.run(callback) - } - } - } -} - -private extension Diffing where Value == UIImage { - static func prefireImage(precision: @escaping () -> Float, scale: CGFloat?) -> Diffing { - lazy var originalDiffing = Diffing.image(precision: precision(), perceptualPrecision: 0.98, scale: scale) - return Diffing( - toData: { originalDiffing.toData($0) }, - fromData: { originalDiffing.fromData($0) }, - diff: { originalDiffing.diff($0, $1) } - ) - } -} - -// swiftlint:enable all -// swiftformat:enable all diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png b/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png deleted file mode 100644 index 8f812d445..000000000 --- a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Empty.png +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 8f812d445..000000000 --- a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5205d9c2f294edda93408c9da0beb18c451f1c51511132e7f92a694900f77531 -size 97489 diff --git a/UnitTests/SupportingFiles/target.yml b/UnitTests/SupportingFiles/target.yml index 19fd5d4b2..fbeb04021 100644 --- a/UnitTests/SupportingFiles/target.yml +++ b/UnitTests/SupportingFiles/target.yml @@ -49,8 +49,6 @@ targets: sources: - path: ../Sources - excludes: - - "**/__Snapshots__/**" - path: ../SupportingFiles - path: ../../ElementX/Sources/Other/InfoPlistReader.swift - path: ../../Tools/Scripts/Templates/SimpleScreenExample/Tests/Unit diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_advancedSettingsScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_analyticsPromptScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png b/UnitTests/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_analyticsPromptScreenCheckmarkItem.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_analyticsSettingsScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_audioRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png b/UnitTests/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_authenticationIconImage.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.1.png b/UnitTests/__Snapshots__/PreviewTests/test_bugReport.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_bugReport.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.2.png b/UnitTests/__Snapshots__/PreviewTests/test_bugReport.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_bugReport.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_bugReport.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_collapsibleRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_composerToolbar.1.png b/UnitTests/__Snapshots__/PreviewTests/test_composerToolbar.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_composerToolbar.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_composerToolbar.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_createPollScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_createPollScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_createPollScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_createPollScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png b/UnitTests/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png rename to UnitTests/__Snapshots__/PreviewTests/test_createRoom.Create-Room-without-users.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png b/UnitTests/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png rename to UnitTests/__Snapshots__/PreviewTests/test_createRoom.Create-Room.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png b/UnitTests/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png rename to UnitTests/__Snapshots__/PreviewTests/test_emojiPickerScreen.Screen.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png b/UnitTests/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png rename to UnitTests/__Snapshots__/PreviewTests/test_emojiPickerScreen.Sheet.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_emojiPickerScreenHeaderView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_emoteRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_encryptedHistoryRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_encryptedRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_fileRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formButtonStyles.1.png b/UnitTests/__Snapshots__/PreviewTests/test_formButtonStyles.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_formButtonStyles.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_formButtonStyles.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png b/UnitTests/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_formRowLabelStyle.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.1.png b/UnitTests/__Snapshots__/PreviewTests/test_formattedBodyText.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_formattedBodyText.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.2.png b/UnitTests/__Snapshots__/PreviewTests/test_formattedBodyText.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_formattedBodyText.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_formattedBodyText.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png b/UnitTests/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_fullscreenDialog.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_headerView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_headerView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_headerView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_headerView.1.png diff --git a/UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Empty.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Empty.png new file mode 100644 index 000000000..67f6545f4 --- /dev/null +++ b/UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Empty.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3137294bd9ab138f26adc994fbecfd6dda72da0660ac28c52205e0451f9e2bb4 +size 106608 diff --git a/UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png new file mode 100644 index 000000000..0f8e1ebc0 --- /dev/null +++ b/UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Loaded.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4542f13f2002c4f2a0dc8c4c6019465609d31af86160d3eb1fd20f6bef2d5a6e +size 160825 diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loading.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Loading.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreen.Loading.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreen.Loading.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Constrained-layout.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.Normal-Layout.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreenEmptyStateView.View.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-off.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on-AX1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreenInvitesButton.Badge-on.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png b/UnitTests/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_homeScreenRoomCell.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_imageRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_imageRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_inviteUsersScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png b/UnitTests/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_inviteUsersScreenSelectedItem.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png b/UnitTests/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png rename to UnitTests/__Snapshots__/PreviewTests/test_invitesScreen.No-Invites.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png b/UnitTests/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png rename to UnitTests/__Snapshots__/PreviewTests/test_invitesScreen.Some-Invite.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png b/UnitTests/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_invitesScreenCell.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_legalInformationScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationMarkerView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_locationMarkerView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_locationMarkerView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_locationMarkerView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png b/UnitTests/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png rename to UnitTests/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Bubbles.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png b/UnitTests/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png rename to UnitTests/__Snapshots__/PreviewTests/test_locationRoomTimelineView.Plain.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png b/UnitTests/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png rename to UnitTests/__Snapshots__/PreviewTests/test_loginScreen.Credentials-Entered.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png b/UnitTests/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png rename to UnitTests/__Snapshots__/PreviewTests/test_loginScreen.OIDC-Fallback.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png b/UnitTests/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png rename to UnitTests/__Snapshots__/PreviewTests/test_loginScreen.Unsupported.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png b/UnitTests/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png rename to UnitTests/__Snapshots__/PreviewTests/test_loginScreen.matrix-org.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png b/UnitTests/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_longPressWithFeedback.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_mapLibreStaticMapView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png b/UnitTests/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_matrixUserPermalink.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_mediaUploadPreviewScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.1.png b/UnitTests/__Snapshots__/PreviewTests/test_messageComposer.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageComposer.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png b/UnitTests/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageComposer.Replying-in-thread.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying.png b/UnitTests/__Snapshots__/PreviewTests/test_messageComposer.Replying.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageComposer.Replying.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageComposer.Replying.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageForwardingScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png b/UnitTests/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageText.Custom-Attachment.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png b/UnitTests/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageText.Custom-Text.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png b/UnitTests/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageText.SwiftUI-Default-Text.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png b/UnitTests/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageText.With-block-quote.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-list.png b/UnitTests/__Snapshots__/PreviewTests/test_messageText.With-list.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_messageText.With-list.png rename to UnitTests/__Snapshots__/PreviewTests/test_messageText.With-list.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_migrationScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_migrationScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_migrationScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_migrationScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_noticeRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png b/UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png rename to UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Applying-change.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png b/UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png rename to UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Direct-Chats.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png b/UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png rename to UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreen.Group-Chats.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png b/UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsEditScreenRoomCell.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png b/UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png rename to UnitTests/__Snapshots__/PreviewTests/test_notificationSettingsScreen.Configuration-mismatch.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_onboardingScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_onboardingScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_onboardingScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_onboardingScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_paginationIndicatorRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pillView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_pillView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pillView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_pillView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png b/UnitTests/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_placeholderAvatarImage.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png b/UnitTests/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png rename to UnitTests/__Snapshots__/PreviewTests/test_placeholderScreen.Screen.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png b/UnitTests/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png rename to UnitTests/__Snapshots__/PreviewTests/test_placeholderScreen.Split-View.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollOptionView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_pollOptionView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollOptionView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollOptionView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Bubble.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Disclosed-Plain.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Bubble.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Disclosed-Plain.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Bubble.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Ended-Undisclosed-Plain.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Bubble.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png b/UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png rename to UnitTests/__Snapshots__/PreviewTests/test_pollRoomTimelineView.Undisclosed-Plain.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_reactionsSummaryView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_readMarkerRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_redactedRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_reportContentScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_reportContentScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_reportContentScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_reportContentScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomAttachmentPicker.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png b/UnitTests/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Normal.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png b/UnitTests/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomDetailsEditScreen.Read-only.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png b/UnitTests/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomDetailsScreen.DM-Room.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png b/UnitTests/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomDetailsScreen.Generic-Room.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png b/UnitTests/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomDetailsScreen.Simple-Room.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomHeaderView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomHeaderView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_roomHeaderView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomHeaderView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomHeaderView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png b/UnitTests/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Account-Owner.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png b/UnitTests/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Ignored-User.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png b/UnitTests/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomMemberDetailsScreen.Other-User.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsCustomSectionView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png b/UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Custom.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png b/UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsScreen.Default.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomNotificationSettingsUserDefinedScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_roomScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_roomScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_roomScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_roomScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_separatorRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png b/UnitTests/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png rename to UnitTests/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Login.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png b/UnitTests/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png rename to UnitTests/__Snapshots__/PreviewTests/test_serverConfirmationScreen.Register.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.1.png b/UnitTests/__Snapshots__/PreviewTests/test_serverSelection.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_serverSelection.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.2.png b/UnitTests/__Snapshots__/PreviewTests/test_serverSelection.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_serverSelection.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.3.png b/UnitTests/__Snapshots__/PreviewTests/test_serverSelection.3.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.3.png rename to UnitTests/__Snapshots__/PreviewTests/test_serverSelection.3.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.4.png b/UnitTests/__Snapshots__/PreviewTests/test_serverSelection.4.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_serverSelection.4.png rename to UnitTests/__Snapshots__/PreviewTests/test_serverSelection.4.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png b/UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png rename to UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Cancelled.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png b/UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png rename to UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Initial.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png b/UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png rename to UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Request-Accepted.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png b/UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png rename to UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Requesting-Verification.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png b/UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png rename to UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Showing-Challenge.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png b/UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png rename to UnitTests/__Snapshots__/PreviewTests/test_sessionVerification.Verified.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_settingsScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_settingsScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_settingsScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_settingsScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png b/UnitTests/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_shimmerOverlay.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png b/UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png b/UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png rename to UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.3.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png b/UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png rename to UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.4.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png b/UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png rename to UnitTests/__Snapshots__/PreviewTests/test_softLogoutScreen.5.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_splashScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_splashScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_splashScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_splashScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_startChatScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_startChatScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_startChatScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_startChatScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_stateRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_stateRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png b/UnitTests/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png rename to UnitTests/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.Picker.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png b/UnitTests/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png rename to UnitTests/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only-with-description.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png b/UnitTests/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png rename to UnitTests/__Snapshots__/PreviewTests/test_staticLocationScreenViewer.View-Only.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_stickerRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeRightAction.1.png b/UnitTests/__Snapshots__/PreviewTests/test_swipeRightAction.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeRightAction.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_swipeRightAction.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_swipeToReplyView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_swipeToReplyView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_templateScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_templateScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_templateScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_templateScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_textRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_textRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_threadDecorator.1.png b/UnitTests/__Snapshots__/PreviewTests/test_threadDecorator.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_threadDecorator.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_threadDecorator.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineDeliveryStatusView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-RTL.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline-with-read-receipts.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Mock-Timeline.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Replies.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemBubbledStylerView.Thread-decorator.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemDebugView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemMenu.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemPlainStylerView.Threads.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-LTR-with-different-layout-languages.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-LTR-with-different-layout-languages.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-LTR-with-different-layout-languages.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-LTR-with-different-layout-languages.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-RTL-with-different-layout-languages.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-RTL-with-different-layout-languages.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-RTL-with-different-layout-languages.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles-RTL-with-different-layout-languages.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Bubbles.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Plain.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Plain.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineItemStyler.Plain.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineItemStyler.Plain.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReactionView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineReactionView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReactionView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineReactionView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineReadReceiptsView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReplyView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineReplyView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineReplyView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineReplyView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineStartRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_timelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_timelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_timelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_uITimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_uITimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_uITimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_uITimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_unsupportedRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_userDetailsEditScreen.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png b/UnitTests/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png rename to UnitTests/__Snapshots__/PreviewTests/test_userIndicatorModalView.No-progress.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png b/UnitTests/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png rename to UnitTests/__Snapshots__/PreviewTests/test_userIndicatorModalView.Progress-Bar.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png b/UnitTests/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png rename to UnitTests/__Snapshots__/PreviewTests/test_userIndicatorModalView.Spinner.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_userIndicatorToastView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_userProfileCell.1.png b/UnitTests/__Snapshots__/PreviewTests/test_userProfileCell.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_userProfileCell.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_userProfileCell.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png b/UnitTests/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_videoRoomTimelineView.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png b/UnitTests/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png rename to UnitTests/__Snapshots__/PreviewTests/test_videoRoomTimelineView.2.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitingDialog.1.png b/UnitTests/__Snapshots__/PreviewTests/test_waitingDialog.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_waitingDialog.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_waitingDialog.1.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png b/UnitTests/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png rename to UnitTests/__Snapshots__/PreviewTests/test_waitlistScreen.Success.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png b/UnitTests/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png rename to UnitTests/__Snapshots__/PreviewTests/test_waitlistScreen.Waiting.png diff --git a/UnitTests/Sources/__Snapshots__/PreviewTests/test_welcomeScreen.1.png b/UnitTests/__Snapshots__/PreviewTests/test_welcomeScreen.1.png similarity index 100% rename from UnitTests/Sources/__Snapshots__/PreviewTests/test_welcomeScreen.1.png rename to UnitTests/__Snapshots__/PreviewTests/test_welcomeScreen.1.png diff --git a/project.yml b/project.yml index 52b69ee47..28f2edbd8 100644 --- a/project.yml +++ b/project.yml @@ -96,7 +96,7 @@ packages: minorVersion: 2.0.3 Prefire: url: https://github.com/BarredEwe/Prefire - minorVersion: 1.4.1 + minorVersion: 1.5.0 Sentry: url: https://github.com/getsentry/sentry-cocoa minorVersion: 8.6.0