Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
chore: test previously commented out test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Umer committed Aug 1, 2023
1 parent 6115e0e commit dbfc246
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Test/CourseContentPageViewControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class CourseContentPageViewControllerTests: SnapshotTestCase {
return nil
}
}
/*
func testNextButton() {
let childIDs = outline.blocks[outline.root]!.children
XCTAssertTrue(childIDs.count > 2, "Need at least three children for this test")
Expand All @@ -109,7 +109,7 @@ class CourseContentPageViewControllerTests: SnapshotTestCase {
XCTAssertEqual($0.value!, childID)
}
}
self.waitForExpectations()
self.OEXWaitForExpectations()
XCTAssertTrue(controller.t_prevButtonEnabled)
XCTAssertEqual(controller.t_nextButtonEnabled, childID != childIDs.last!)
}
Expand Down Expand Up @@ -137,7 +137,7 @@ class CourseContentPageViewControllerTests: SnapshotTestCase {
testExpectation.fulfill()
}
}
self.waitForExpectations()
self.OEXWaitForExpectations()
}
}

Expand Down Expand Up @@ -178,7 +178,7 @@ class CourseContentPageViewControllerTests: SnapshotTestCase {
testExpectation.fulfill()
}
}
self.waitForExpectations()
self.OEXWaitForExpectations()
}

let pageEvents = environment.eventTracker.events.compactMap { (e: MockAnalyticsRecord) -> MockAnalyticsEventRecord? in
Expand All @@ -197,7 +197,7 @@ class CourseContentPageViewControllerTests: SnapshotTestCase {
XCTAssertEqual(event.event.name, OEXAnalyticsEventComponentViewed)
}
}
*/
func testSnapshotContent() {
let parent : CourseBlockID = CourseOutlineTestDataFactory.knownParentIDWithMultipleChildren
let childIDs = outline.blocks[parent]!.children
Expand Down

0 comments on commit dbfc246

Please sign in to comment.