From 3c5530c7415a551098fcd1ba7b43f4e9a8b654d8 Mon Sep 17 00:00:00 2001 From: jaasen-livefront Date: Mon, 11 Aug 2025 16:30:47 -0700 Subject: [PATCH] fix failing tests --- .../additional-options-section.component.spec.ts | 3 ++- .../autofill-options/autofill-options.component.spec.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts b/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts index 5b93a7bdefe..16588f92807 100644 --- a/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts +++ b/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.spec.ts @@ -29,11 +29,12 @@ describe("AdditionalOptionsSectionComponent", () => { let passwordRepromptEnabled$: BehaviorSubject; const getInitialCipherView = jest.fn(() => null); + const formStatusChange$ = new BehaviorSubject<"enabled" | "disabled">("enabled"); beforeEach(async () => { getInitialCipherView.mockClear(); - cipherFormProvider = mock({ getInitialCipherView }); + cipherFormProvider = mock({ getInitialCipherView, formStatusChange$ }); passwordRepromptService = mock(); passwordRepromptEnabled$ = new BehaviorSubject(true); passwordRepromptService.enabled$ = passwordRepromptEnabled$; diff --git a/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts b/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts index ae40447a4ae..3654dc4fe18 100644 --- a/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts +++ b/libs/vault/src/cipher-form/components/autofill-options/autofill-options.component.spec.ts @@ -35,10 +35,11 @@ describe("AutofillOptionsComponent", () => { let autofillSettingsService: MockProxy; let platformUtilsService: MockProxy; const getInitialCipherView = jest.fn(() => null); + const formStatusChange$ = new BehaviorSubject<"enabled" | "disabled">("enabled"); beforeEach(async () => { getInitialCipherView.mockClear(); - cipherFormContainer = mock({ getInitialCipherView }); + cipherFormContainer = mock({ getInitialCipherView, formStatusChange$ }); liveAnnouncer = mock(); platformUtilsService = mock(); domainSettingsService = mock();