Skip to content

Commit

Permalink
Fix biometrics button showing up when biometrics is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Jan 9, 2025
1 parent aec25b1 commit d10baf8
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { inject } from "@angular/core";
import { combineLatest, defer, map, Observable } from "rxjs";
import { combineLatest, defer, firstValueFrom, map, Observable } from "rxjs";

import {
PinServiceAbstraction,
UserDecryptionOptionsServiceAbstraction,
} from "@bitwarden/auth/common";
import { UserId } from "@bitwarden/common/types/guid";
import { BiometricsService, BiometricsStatus } from "@bitwarden/key-management";
import {
BiometricsService,
BiometricsStatus,
BiometricStateService,
} from "@bitwarden/key-management";
import { LockComponentService, UnlockOptions } from "@bitwarden/key-management/angular";

import { BiometricErrors, BiometricErrorTypes } from "../../../models/biometricErrors";
Expand All @@ -19,6 +23,7 @@ export class ExtensionLockComponentService implements LockComponentService {
private readonly biometricsService = inject(BiometricsService);
private readonly pinService = inject(PinServiceAbstraction);
private readonly routerService = inject(BrowserRouterService);
private readonly biometricStateService = inject(BiometricStateService);

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService instantiates ► ExtensionLockComponentService instantiates

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getPreviousUrl returns the previous URL ► ExtensionLockComponentService getPreviousUrl returns the previous URL

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getBiometricsError returns a biometric error description when given a valid error type ► ExtensionLockComponentService getBiometricsError returns a biometric error description when given a v...

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getBiometricsError returns null when given an invalid error type ► ExtensionLockComponentService getBiometricsError returns null when given an invalid error type

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getBiometricsError returns null when given a null input ► ExtensionLockComponentService getBiometricsError returns null when given a null input

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService isWindowVisible throws an error ► ExtensionLockComponentService isWindowVisible throws an error

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getBiometricsUnlockBtnText returns the biometric unlock button text ► ExtensionLockComponentService getBiometricsUnlockBtnText returns the biometric unlock button text

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

Check failure on line 26 in apps/browser/src/key-management/lock/services/extension-lock-component.service.ts

View workflow job for this annotation

GitHub Actions / Test Results

ExtensionLockComponentService ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options ► ExtensionLockComponentService getAvailableUnlockOptions$ returns unlock options

Failed test found in: junit.xml Error: NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]:
Raw output
NullInjectorError: R3InjectorError(DynamicTestModule)[ExtensionLockComponentService -> BiometricStateService -> BiometricStateService]: 
  NullInjectorError: No provider for BiometricStateService!
    at NullInjector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1663:27)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3109:33)
    at injectInjectorOnly (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1107:40)
    at ɵɵinject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1113:42)
    at inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:1199:12)
    at new ExtensionLockComponentService (/home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.ts:26:50)
    at Object.factory (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3309:22)
    at /home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3237:47
    at runInInjectorProfilerContext (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:872:9)
    at R3Injector.hydrate (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3236:21)
    at R3Injector.get (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/core.mjs:3099:33)
    at _TestBedImpl.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1973:52)
    at Function.inject (/home/runner/work/clients/clients/node_modules/@angular/core/fesm2022/testing.mjs:1827:37)
    at /home/runner/work/clients/clients/apps/browser/src/key-management/lock/services/extension-lock-component.service.spec.ts:73:23
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:416:32)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:2176:43)
    at _ZoneDelegate.invoke (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:415:38)
    at ZoneImpl.run (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone.umd.js:147:47)
    at Object.wrappedFunc (/home/runner/work/clients/clients/node_modules/zone.js/bundles/zone-testing.umd.js:450:38)
    at Promise.then.completed (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/clients/clients/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusHook (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:281:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:246:5)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/clients/clients/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/clients/clients/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)

getPreviousUrl(): string | null {
return this.routerService.getPreviousUrl();
Expand All @@ -45,7 +50,13 @@ export class ExtensionLockComponentService implements LockComponentService {
getAvailableUnlockOptions$(userId: UserId): Observable<UnlockOptions> {
return combineLatest([
// Note: defer is preferable b/c it delays the execution of the function until the observable is subscribed to
defer(async () => await this.biometricsService.getBiometricsStatusForUser(userId)),
defer(async () => {
if (!(await firstValueFrom(this.biometricStateService.biometricUnlockEnabled$))) {
return BiometricsStatus.NotEnabledLocally;
} else {
return await this.biometricsService.getBiometricsStatusForUser(userId);
}
}),
this.userDecryptionOptionsService.userDecryptionOptionsById$(userId),
defer(() => this.pinService.isPinDecryptionAvailable(userId)),
]).pipe(
Expand Down

0 comments on commit d10baf8

Please sign in to comment.