Skip to content

Commit

Permalink
Add logging to diagnose CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Arclite committed Jul 6, 2024
1 parent 39e48e1 commit 80fe31f
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit 80fe31f

Please sign in to comment.