mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Updated Screenshot Tests and fixed an issue with the MockMediaProvider (#554)
* updated the tests * updated ui tests * removed unused files * fixed a bug that prevented the image to be added in the avatar of the rooms from the mock, and improved some UI tests * swiftformat * fixed an issue where the room Id was not matching the real room id coming from the timelineController, also updated some tests, and added a test for the case where the RoomAvatar is available. * added some waitForExistence checks to allow the CI to find the UI elements * this should make the loading bar always match at the HStack size * code improvement for the tests * fix for the max frame of the loading screen * updated tests * regenerated and improved some tests * sonarcloud improvements * changelog
This commit is contained in:
@@ -103,13 +103,13 @@ struct RoomDetailsScreen: View {
|
||||
.background(Color.element.system)
|
||||
.clipShape(RoundedCornerShape(radius: 8, corners: .allCorners))
|
||||
.frame(width: menuIconSize, height: menuIconSize)
|
||||
|
||||
|
||||
Text(ElementL10n.bottomActionPeople)
|
||||
.foregroundColor(.element.primaryContent)
|
||||
.font(.body)
|
||||
|
||||
|
||||
Spacer()
|
||||
|
||||
|
||||
if context.viewState.isLoadingMembers {
|
||||
ProgressView()
|
||||
} else {
|
||||
@@ -138,19 +138,19 @@ struct RoomDetailsScreen: View {
|
||||
.background(Color.element.system)
|
||||
.clipShape(RoundedCornerShape(radius: 8, corners: .allCorners))
|
||||
.frame(width: menuIconSize, height: menuIconSize)
|
||||
|
||||
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
Text(ElementL10n.encryptionEnabled)
|
||||
.foregroundColor(.element.primaryContent)
|
||||
.font(.element.body)
|
||||
|
||||
|
||||
Text(ElementL10n.encryptionEnabledTileDescription)
|
||||
.foregroundColor(.element.secondaryContent)
|
||||
.font(.element.footnote)
|
||||
}
|
||||
|
||||
|
||||
Spacer()
|
||||
|
||||
|
||||
Image(systemName: "checkmark")
|
||||
.foregroundColor(.element.quaternaryContent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user