Slide 10
Slide 10 text
import XCTest
import SnapshotTesting
class ConfirmationStateViewTests: XCTestCase {
func testShortName() {
let view = ConfirmationStateView()
let input = ConfirmationStateView.Input(
screenName: "໊͍લ"
)
view.apply(input: input)
assertSnapshot(matching: view, as: .image)
}
func testMiddleName() {
...
screenName: "গ໊͍͠લগ໊͍͠લ"
...
assertSnapshot(matching: view, as: .image)
}
func testLongName() {
...
screenName: "໊͍લ໊͍લ໊͍લ໊͍લ໊͍લ"
...
assertSnapshot(matching: view, as: .image)
}
4OBQTIPUςετίʔυ
7JFXΛΩϟϓνϟͯ͠
ࢀরը૾ϑΝΠϧͱͯ͠
อଘ
ൺֱ
ࢀরը૾