mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 05:53:42 +00:00
Revert "PM-19574 Browser Autofill overlay displays outdated data (#15624)"
This reverts commit 9eceaa3d4c.
This commit is contained in:
@@ -26,7 +26,6 @@ import {
|
||||
} from "@bitwarden/vault";
|
||||
|
||||
import { BrowserFido2UserInterfaceSession } from "../../../../../autofill/fido2/services/browser-fido2-user-interface.service";
|
||||
import { BrowserApi } from "../../../../../platform/browser/browser-api";
|
||||
import BrowserPopupUtils from "../../../../../platform/browser/browser-popup-utils";
|
||||
import { PopupRouterCacheService } from "../../../../../platform/popup/view-cache/popup-router-cache.service";
|
||||
import { PopupCloseWarningService } from "../../../../../popup/services/popup-close-warning.service";
|
||||
@@ -310,19 +309,6 @@ describe("AddEditV2Component", () => {
|
||||
expect(navigate).not.toHaveBeenCalled();
|
||||
expect(back).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it.each<CipherFormMode>(["add", "edit", "partial-edit"])(
|
||||
"sends the addEditCipherSubmitted message when a cipher is edited, added or partially edited",
|
||||
async (mode) => {
|
||||
const sendMessageSpy = jest.spyOn(BrowserApi, "sendMessage");
|
||||
component.config.mode = mode;
|
||||
|
||||
await component.onCipherSaved({ id: "123-456-789" } as CipherView);
|
||||
|
||||
expect(sendMessageSpy).toHaveBeenCalled();
|
||||
expect(sendMessageSpy).toHaveBeenCalledWith("addEditCipherSubmitted");
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
describe("handleBackButton", () => {
|
||||
|
||||
@@ -268,7 +268,6 @@ export class AddEditV2Component implements OnInit {
|
||||
// Clear popup history so after closing/reopening, Back won’t return to the add-edit form
|
||||
await this.popupRouterCacheService.setHistory([]);
|
||||
}
|
||||
await BrowserApi.sendMessage("addEditCipherSubmitted");
|
||||
}
|
||||
|
||||
subscribeToParams(): void {
|
||||
|
||||
Reference in New Issue
Block a user