Automatically dismiss UserDetailsEditScreen when saving changes. (#5073)

This commit is contained in:
Doug
2026-02-09 15:07:50 +00:00
committed by GitHub
parent e23685be70
commit 14845d5620
2 changed files with 4 additions and 7 deletions
@@ -49,8 +49,7 @@ class UserDetailsEditScreenViewModelTests: XCTestCase {
func testSave() async throws {
setupViewModel()
// Saving shouldn't dismiss this screen (or trigger any other action).
let deferred = deferFailure(viewModel.actions, timeout: 1) { _ in true }
let deferred = deferFulfillment(viewModel.actions) { $0 == .dismiss }
context.name = "name"
context.send(viewAction: .save)