Skip to content

Commit 522d69e

Browse files
committed
Fixes
1 parent 6ac5be4 commit 522d69e

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

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

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,23 +1267,28 @@ class IntegrationTestBase: XCTestCase {
12671267
} else {
12681268
print("⚠️ [TEST] OPEN button not found, debugging Safari state...")
12691269
screenshotCapture.captureScreenshot(named: "safari-no-open-button")
1270-
1271-
print("🔍 [TEST] All Safari buttons:")
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)'")
1270+
1271+
// Skip expensive debugging in CI mode since we have simctl fallback
1272+
if !isRunningInCI {
1273+
print("🔍 [TEST] All Safari buttons:")
1274+
let buttons = safari.buttons.allElementsBoundByIndex
1275+
for i in 0..<min(buttons.count, 10) {
1276+
if i < buttons.count {
1277+
let button = buttons[i]
1278+
print(" - \(button.identifier): '\(button.label)'")
1279+
}
12771280
}
1278-
}
1279-
1280-
print("🔍 [TEST] All Safari static texts:")
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)'")
1281+
1282+
print("🔍 [TEST] All Safari static texts:")
1283+
let staticTexts = safari.staticTexts.allElementsBoundByIndex
1284+
for i in 0..<min(staticTexts.count, 10) {
1285+
if i < staticTexts.count {
1286+
let text = staticTexts[i]
1287+
print(" - '\(text.label)'")
1288+
}
12861289
}
1290+
} else {
1291+
print("🤖 [TEST] Skipping detailed Safari debugging in CI mode (using simctl fallback)")
12871292
}
12881293
}
12891294
}

0 commit comments

Comments
 (0)