From 80fe31fbea524f0e18d64aa6cc20553809b065e6 Mon Sep 17 00:00:00 2001 From: Geoff Pado Date: Fri, 5 Jul 2024 19:22:46 -0700 Subject: [PATCH] Add logging to diagnose CI failures --- .../Tests/List/Content/SettingsContentTests.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Modules/Capabilities/SettingsUI/Tests/List/Content/SettingsContentTests.swift b/Modules/Capabilities/SettingsUI/Tests/List/Content/SettingsContentTests.swift index 9ceab43..d40d626 100644 --- a/Modules/Capabilities/SettingsUI/Tests/List/Content/SettingsContentTests.swift +++ b/Modules/Capabilities/SettingsUI/Tests/List/Content/SettingsContentTests.swift @@ -10,11 +10,12 @@ import XCTest class SettingsContentTests: XCTestCase { func testSettingsContentContainsAppropriateSections() throws { let content = try SettingsContent(state: .loading).inspect().find(SettingsContent.self).find(ViewType.TupleView.self) + dump(content) XCTAssertEqual(content.count, 4) - try XCTAssertNoThrow(content[0].find(SettingsContentPurchasedFeaturesSection.self)) - try XCTAssertNoThrow(content[1].find(SettingsContentInformationSection.self)) - try XCTAssertNoThrow(content[2].find(SettingsContentContactSection.self)) - try XCTAssertNoThrow(content[3].find(SettingsContentOtherAppsSection.self)) + try XCTAssertNoThrow(content[0].find(SettingsContentPurchasedFeaturesSection.self), "Did not find purchased features section") + try XCTAssertNoThrow(content[1].find(SettingsContentInformationSection.self), "Did not find information section") + try XCTAssertNoThrow(content[2].find(SettingsContentContactSection.self), "Did not find contact section") + try XCTAssertNoThrow(content[3].find(SettingsContentOtherAppsSection.self), "Did not find other apps section") } }