From 322bc23eabb75eb2669c20c7993abb7e68ebecf0 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Thu, 20 Jun 2024 12:31:12 -0500 Subject: [PATCH] [PM-5189] Working through jest tests for OverlayBackground and refining repositioning delays --- .../background/overlay.background.spec.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/apps/browser/src/autofill/background/overlay.background.spec.ts b/apps/browser/src/autofill/background/overlay.background.spec.ts index a2cfbb8cd5f..36283828923 100644 --- a/apps/browser/src/autofill/background/overlay.background.spec.ts +++ b/apps/browser/src/autofill/background/overlay.background.spec.ts @@ -424,23 +424,6 @@ describe("OverlayBackground", () => { expect(repositionInlineMenuSpy).not.toHaveBeenCalled(); }); - it("blocks repositioning when the sender frame is for the focused field, but the inline menu is not visible", async () => { - sendMockExtensionMessage( - { command: "updateFocusedFieldData", focusedFieldData }, - sender, - ); - tabsSendMessageSpy.mockImplementationOnce((_tab, message) => { - if (message.command === "checkIsAutofillInlineMenuButtonVisible") { - return Promise.resolve(false); - } - }); - - sendMockExtensionMessage({ command: "triggerAutofillOverlayReposition" }, sender); - await flushOverlayRepositionPromises(); - - expect(repositionInlineMenuSpy).not.toHaveBeenCalled(); - }); - it("blocks repositioning when the sender frame is not a parent frame of the focused field", async () => { focusedFieldData = createFocusedFieldDataMock({ tabId }); const otherFrameSender = mock({