Add UI tests

This commit is contained in:
Alfonso Grillo
2022-10-26 18:49:47 +02:00
parent b90b9b539e
commit 0828b6a9d4
6 changed files with 65 additions and 22 deletions
@@ -16,7 +16,7 @@
import SwiftUI
struct InfoView: View {
struct InfoSheet: View {
struct Action {
let text: String
let action: () -> Void
@@ -65,8 +65,8 @@ struct InfoView: View {
struct InfoView_Previews: PreviewProvider {
static var previews: some View {
InfoView(title: "Verified sessions",
description: "Verified sessions have logged in with your credentials and then been verified, either using your secure passphrase or by cross-verifying.\n\nThis means they hold encryption keys for your previous messages, and confirm to other users you are communicating with that these sessions are really you.",
action: .init(text: "GOT IT", action: {}))
InfoSheet(title: "Verified sessions",
description: "Verified sessions have logged in with your credentials and then been verified, either using your secure passphrase or by cross-verifying.\n\nThis means they hold encryption keys for your previous messages, and confirm to other users you are communicating with that these sessions are really you.",
action: .init(text: "GOT IT", action: {}))
}
}