mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Preview Tests (#1768)
* preview testing * removed some views that are not really testabl in UnitTests and improved other tests
This commit is contained in:
@@ -64,7 +64,7 @@ struct UserIndicatorModalView: View {
|
||||
}
|
||||
}
|
||||
|
||||
struct UserIndicatorModalView_Previews: PreviewProvider {
|
||||
struct UserIndicatorModalView_Previews: PreviewProvider, TestablePreview {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
UserIndicatorModalView(indicator: UserIndicator(type: .modal,
|
||||
|
||||
@@ -52,7 +52,7 @@ struct UserIndicatorToastView: View {
|
||||
}
|
||||
}
|
||||
|
||||
struct UserIndicatorToastView_Previews: PreviewProvider {
|
||||
struct UserIndicatorToastView_Previews: PreviewProvider, TestablePreview {
|
||||
static var previews: some View {
|
||||
VStack(spacing: 30) {
|
||||
UserIndicatorToastView(indicator: UserIndicator(title: "Successfully logged in",
|
||||
|
||||
Reference in New Issue
Block a user