mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
remove inlineAutofillMenuRefreshAddEditCipher message (#13805)
This commit is contained in:
@@ -117,7 +117,6 @@ describe("OverlayBackground", () => {
|
||||
let getFrameDetailsSpy: jest.SpyInstance;
|
||||
let tabsSendMessageSpy: jest.SpyInstance;
|
||||
let tabSendMessageDataSpy: jest.SpyInstance;
|
||||
let sendMessageSpy: jest.SpyInstance;
|
||||
let getTabFromCurrentWindowIdSpy: jest.SpyInstance;
|
||||
let getTabSpy: jest.SpyInstance;
|
||||
let openUnlockPopoutSpy: jest.SpyInstance;
|
||||
@@ -228,7 +227,6 @@ describe("OverlayBackground", () => {
|
||||
tabSendMessageDataSpy = jest
|
||||
.spyOn(BrowserApi, "tabSendMessageData")
|
||||
.mockImplementation(() => Promise.resolve());
|
||||
sendMessageSpy = jest.spyOn(BrowserApi, "sendMessage");
|
||||
getTabFromCurrentWindowIdSpy = jest.spyOn(BrowserApi, "getTabFromCurrentWindowId");
|
||||
getTabSpy = jest.spyOn(BrowserApi, "getTab");
|
||||
openUnlockPopoutSpy = jest.spyOn(overlayBackground as any, "openUnlockPopout");
|
||||
@@ -1553,7 +1551,6 @@ describe("OverlayBackground", () => {
|
||||
await flushPromises();
|
||||
|
||||
expect(cipherService.setAddEditCipherInfo).toHaveBeenCalled();
|
||||
expect(sendMessageSpy).toHaveBeenCalledWith("inlineAutofillMenuRefreshAddEditCipher");
|
||||
expect(openAddEditVaultItemPopoutSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -1579,7 +1576,6 @@ describe("OverlayBackground", () => {
|
||||
await flushPromises();
|
||||
|
||||
expect(cipherService.setAddEditCipherInfo).toHaveBeenCalled();
|
||||
expect(sendMessageSpy).toHaveBeenCalledWith("inlineAutofillMenuRefreshAddEditCipher");
|
||||
expect(openAddEditVaultItemPopoutSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -1618,7 +1614,6 @@ describe("OverlayBackground", () => {
|
||||
await flushPromises();
|
||||
|
||||
expect(cipherService.setAddEditCipherInfo).toHaveBeenCalled();
|
||||
expect(sendMessageSpy).toHaveBeenCalledWith("inlineAutofillMenuRefreshAddEditCipher");
|
||||
expect(openAddEditVaultItemPopoutSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
@@ -2434,7 +2434,6 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
||||
cipherId: cipherView.id,
|
||||
cipherType: addNewCipherType,
|
||||
});
|
||||
await BrowserApi.sendMessage("inlineAutofillMenuRefreshAddEditCipher");
|
||||
} catch (error) {
|
||||
this.logService.error("Error building cipher and opening add/edit vault item popout", error);
|
||||
}
|
||||
|
||||
@@ -647,9 +647,6 @@ describe("OverlayBackground", () => {
|
||||
await flushPromises();
|
||||
|
||||
expect(overlayBackground["cipherService"].setAddEditCipherInfo).toHaveBeenCalled();
|
||||
expect(BrowserApi.sendMessage).toHaveBeenCalledWith(
|
||||
"inlineAutofillMenuRefreshAddEditCipher",
|
||||
);
|
||||
expect(overlayBackground["openAddEditVaultItemPopout"]).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -678,7 +678,6 @@ class LegacyOverlayBackground implements OverlayBackgroundInterface {
|
||||
);
|
||||
|
||||
await this.openAddEditVaultItemPopout(sender.tab, { cipherId: cipherView.id });
|
||||
await BrowserApi.sendMessage("inlineAutofillMenuRefreshAddEditCipher");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user