mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Automatically dismiss UserDetailsEditScreen when saving changes. (#5073)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user