iOS/Tests/Shared/DesignSystem/Components/HATextField.test.swift
2025-07-10 14:36:18 +02:00

18 lines
596 B
Swift

@testable import Shared
import SwiftUI
import Testing
struct HATextFieldTests {
@MainActor @Test func testSnapshot() async throws {
let view = AnyView(
VStack(spacing: DesignSystem.Spaces.two) {
HATextField(placeholder: "Placeholder", text: .constant(""))
HATextField(placeholder: "Placeholder", text: .constant("123"))
HATextField(placeholder: "Placeholder", text: .constant("https://bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.com"))
}
.padding()
)
assertLightDarkSnapshots(of: view)
}
}