Implement AppLockScreen as per the designs. (#1925)

Fix a bug in the unlock flow
This commit is contained in:
Doug
2023-10-20 17:35:57 +01:00
committed by GitHub
parent 7e77c2ffad
commit b6ba38cb19
21 changed files with 378 additions and 85 deletions

View File

@@ -44,7 +44,8 @@ class AppLockScreenViewModelTests: XCTestCase {
// When entering it on the lock screen.
let deferred = deferFulfillment(viewModel.actions) { $0 == .appUnlocked }
context.send(viewAction: .submitPINCode(pinCode))
viewModel.context.pinCode = pinCode
context.send(viewAction: .submitPINCode)
let result = try await deferred.fulfill()
// The app should become unlocked.