mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
Merge branch 'feature/add-support-for-swiftui' into feature/adapt-uikit-animation-to-swiftui-variant
This commit is contained in:
-7
@@ -30,14 +30,7 @@ final class GradientLoadingBarControllerTestCase: XCTestCase {
|
||||
// When
|
||||
gradientLoadingBarController.fadeIn(duration: 0)
|
||||
|
||||
let expectation = expectation(description: "Wait for view to appear.")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||
expectation.fulfill()
|
||||
}
|
||||
|
||||
// Then
|
||||
wait(for: [expectation], timeout: 1)
|
||||
|
||||
assertSnapshot(matching: rootViewController,
|
||||
as: .image(drawHierarchyInKeyWindow: true, precision: Config.precision))
|
||||
}
|
||||
|
||||
-7
@@ -31,14 +31,7 @@ final class NotchGradientLoadingBarControllerTestCase: XCTestCase {
|
||||
// When
|
||||
notchGradientLoadingBarController.fadeIn(duration: 0)
|
||||
|
||||
let expectation = expectation(description: "Wait for view to appear.")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||
expectation.fulfill()
|
||||
}
|
||||
|
||||
// Then
|
||||
wait(for: [expectation], timeout: 1)
|
||||
|
||||
assertSnapshot(matching: rootViewController,
|
||||
as: .image(drawHierarchyInKeyWindow: true, precision: Config.precision))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user