1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00: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

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(),
);
});
});