Skip to content

Commit 6ac5be4

Browse files
committed
Fixes
1 parent cdc25e8 commit 6ac5be4

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/business-critical-integration/integration-test-app/IterableSDK-Integration-Tester/Tests/IntegrationTestBase.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,13 +1269,21 @@ class IntegrationTestBase: XCTestCase {
12691269
screenshotCapture.captureScreenshot(named: "safari-no-open-button")
12701270

12711271
print("🔍 [TEST] All Safari buttons:")
1272-
for button in safari.buttons.allElementsBoundByIndex {
1273-
print(" - \(button.identifier): '\(button.label)'")
1272+
let buttons = safari.buttons.allElementsBoundByIndex
1273+
for i in 0..<min(buttons.count, 10) {
1274+
if i < buttons.count {
1275+
let button = buttons[i]
1276+
print(" - \(button.identifier): '\(button.label)'")
1277+
}
12741278
}
12751279

12761280
print("🔍 [TEST] All Safari static texts:")
1277-
for text in safari.staticTexts.allElementsBoundByIndex.prefix(10) {
1278-
print(" - '\(text.label)'")
1281+
let staticTexts = safari.staticTexts.allElementsBoundByIndex
1282+
for i in 0..<min(staticTexts.count, 10) {
1283+
if i < staticTexts.count {
1284+
let text = staticTexts[i]
1285+
print(" - '\(text.label)'")
1286+
}
12791287
}
12801288
}
12811289
}

0 commit comments

Comments
 (0)