diff --git a/apps/browser/src/autofill/content/auto-submit-login.spec.ts b/apps/browser/src/autofill/content/auto-submit-login.spec.ts index c5bc9dbccbd..d8a192dbcab 100644 --- a/apps/browser/src/autofill/content/auto-submit-login.spec.ts +++ b/apps/browser/src/autofill/content/auto-submit-login.spec.ts @@ -61,10 +61,13 @@ describe("AutoSubmitLogin content script", () => { await initAutoSubmitWorkflow(); - expect(chrome.runtime.sendMessage).toHaveBeenCalledWith({ - command: "updateIsFieldCurrentlyFilling", - isFieldCurrentlyFilling: false, - }); + expect(chrome.runtime.sendMessage).toHaveBeenCalledWith( + { + command: "updateIsFieldCurrentlyFilling", + isFieldCurrentlyFilling: false, + }, + expect.any(Function), + ); }); describe("when the page contains form fields", () => { @@ -78,10 +81,13 @@ describe("AutoSubmitLogin content script", () => { }); await flushPromises(); - expect(chrome.runtime.sendMessage).toHaveBeenCalledWith({ - command: "updateIsFieldCurrentlyFilling", - isFieldCurrentlyFilling: false, - }); + expect(chrome.runtime.sendMessage).toHaveBeenCalledWith( + { + command: "updateIsFieldCurrentlyFilling", + isFieldCurrentlyFilling: false, + }, + expect.any(Function), + ); }); describe("triggering auto-submit on formless fields", () => {