Skip to content

Commit 53fe558

Browse files
committed
Added test for payId title label
1 parent 174c9af commit 53fe558

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Tests/IntegrationTests/Components Tests/PayTo/PayToComponentTests.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ class PayToComponentTests: XCTestCase {
8585
XCTAssertNotNil(phoneNumberItem, "Phone number item should exist")
8686
}
8787

88+
func test_payid_titleLabel_exists() throws {
89+
// Given
90+
sut.viewController.loadViewIfNeeded()
91+
92+
// Check by accessibility identifier
93+
let payIdTitleLabelItem = sut.viewController.view.findView(with: "AdyenComponents.PayToComponent.payIdFlowTitleTitleLabel") as? UILabel
94+
95+
// Then
96+
XCTAssertNotNil(payIdTitleLabelItem, "PayId flow title label should exist")
97+
}
98+
8899
func test_identifierPicker_exists() throws {
89100
// Given
90101
sut.viewController.loadViewIfNeeded()

0 commit comments

Comments
 (0)