mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Media gallery - support for files and voice messages (#3605)
* Move the voice message views to where they belong * Add separate struct for each media events timeline view * Add support for all the different media gallery message types and get the files section working
This commit is contained in:
@@ -281,6 +281,12 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func test_imageMediaEventsTimelineView() {
|
||||
for preview in ImageMediaEventsTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
}
|
||||
}
|
||||
|
||||
func test_imageRoomTimelineView() {
|
||||
for preview in ImageRoomTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
@@ -767,6 +773,12 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func test_separatorMediaEventsTimelineView() {
|
||||
for preview in SeparatorMediaEventsTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
}
|
||||
}
|
||||
|
||||
func test_separatorRoomTimelineView() {
|
||||
for preview in SeparatorRoomTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
@@ -995,6 +1007,12 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func test_videoMediaEventsTimelineView() {
|
||||
for preview in VideoMediaEventsTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
}
|
||||
}
|
||||
|
||||
func test_videoRoomTimelineView() {
|
||||
for preview in VideoRoomTimelineView_Previews._allPreviews {
|
||||
assertSnapshots(matching: preview)
|
||||
|
||||
Reference in New Issue
Block a user