mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Update UI tests (#730)
* Update snapshots. * Fix timeline grouping and UI tests. * Remove German UI tests with double-length pseudolanguage. Avoids tests breaking when translations are updated.
This commit is contained in:
@@ -23,14 +23,10 @@ struct MockMediaProvider: MediaProviderProtocol {
|
||||
return nil
|
||||
}
|
||||
|
||||
#warning("Fix me. this is stupid!")
|
||||
if let size {
|
||||
if size == AvatarSize.room(on: .details).scaledSize
|
||||
|| size == AvatarSize.room(on: .home).scaledSize
|
||||
|| size == AvatarSize.room(on: .timeline).scaledSize {
|
||||
return Asset.Images.appLogo.image
|
||||
}
|
||||
if source?.url == .picturesDirectory {
|
||||
return Asset.Images.appLogo.image
|
||||
}
|
||||
|
||||
return UIImage(systemName: "photo")
|
||||
}
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ extension RoomTimelineViewProvider: View {
|
||||
}
|
||||
}
|
||||
|
||||
private var timelineGroupStyle: TimelineGroupStyle {
|
||||
var timelineGroupStyle: TimelineGroupStyle {
|
||||
switch self {
|
||||
case .text(_, let groupStyle),
|
||||
.separator(_, let groupStyle),
|
||||
|
||||
Reference in New Issue
Block a user