mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-10 04:32:50 -06:00
18 lines
596 B
Swift
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)
|
|
}
|
|
}
|