mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 20:05:46 -06:00
18 lines
581 B
Swift
18 lines
581 B
Swift
import Testing
|
|
@testable import OpenClaw
|
|
|
|
@Suite(.serialized)
|
|
@MainActor
|
|
struct LowCoverageViewSmokeTests {
|
|
@Test func `notify overlay keeps replacement visible`() async {
|
|
let controller = NotifyOverlayController()
|
|
controller.present(title: "Hello", body: "World", autoDismissAfter: 0.05)
|
|
controller.present(title: "Updated", body: "Again", autoDismissAfter: 0)
|
|
try? await Task.sleep(nanoseconds: 250_000_000)
|
|
#expect(controller.model.isVisible)
|
|
#expect(controller.model.title == "Updated")
|
|
|
|
controller.dismiss()
|
|
}
|
|
}
|