mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
[PM-5189] Removing the messageOrigin to ensure we test that it is being set when passing the fist window message to the overlay page iframe element
This commit is contained in:
@@ -21,7 +21,6 @@ describe("AutofillOverlayList", () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
document.body.innerHTML = `<autofill-overlay-list></autofill-overlay-list>`;
|
document.body.innerHTML = `<autofill-overlay-list></autofill-overlay-list>`;
|
||||||
autofillOverlayList = document.querySelector("autofill-overlay-list");
|
autofillOverlayList = document.querySelector("autofill-overlay-list");
|
||||||
autofillOverlayList["messageOrigin"] = "https://localhost/";
|
|
||||||
jest.spyOn(globalThis.document, "createElement");
|
jest.spyOn(globalThis.document, "createElement");
|
||||||
jest.spyOn(globalThis.parent, "postMessage");
|
jest.spyOn(globalThis.parent, "postMessage");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user