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

chore: fix CourseContentPageViewController test cases #1784

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading