1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-24 21:41:33 +01:00

[PM-8027] Fixing jest tests for the collectPageDetails method

This commit is contained in:
Cesar Gonzalez 2024-06-03 16:04:46 -05:00
parent 75da1d6556
commit eb877065e3
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -35,6 +35,7 @@ describe("CollectAutofillContentService", () => {
beforeEach(() => {
globalThis.requestIdleCallback = jest.fn((cb, options) => setTimeout(cb, 100));
globalThis.cancelIdleCallback = jest.fn((id) => clearTimeout(id));
document.body.innerHTML = mockLoginForm;
collectAutofillContentService = new CollectAutofillContentService(
domElementVisibilityService,
@ -2606,6 +2607,7 @@ describe("CollectAutofillContentService", () => {
expect(setupAutofillOverlayListenerOnFieldSpy).toHaveBeenCalledWith(
formFieldElement,
autofillField,
expect.anything(),
);
});
});