From f06d404e4b2ce61cb13d86c80c16e2c5079b7b26 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Tue, 16 Apr 2024 10:19:00 -0500 Subject: [PATCH] [PM-5189] Starting the process to correct jest tests --- .../autofill-overlay-page-element.ts | 6 +++-- ...tofill-overlay-iframe.service.spec.ts.snap | 16 ++----------- .../autofill-overlay-iframe.service.spec.ts | 3 ++- .../button/autofill-overlay-button.spec.ts | 16 ++++--------- .../pages/list/autofill-overlay-list.spec.ts | 23 ++++++++----------- .../shared/autofill-overlay-page-element.ts | 12 +++++----- .../autofill-overlay-content.service.spec.ts | 9 +++++--- 7 files changed, 33 insertions(+), 52 deletions(-) diff --git a/apps/browser/src/autofill/overlay/abstractions/autofill-overlay-page-element.ts b/apps/browser/src/autofill/overlay/abstractions/autofill-overlay-page-element.ts index eb3c2fa4a7..522cfbf967 100644 --- a/apps/browser/src/autofill/overlay/abstractions/autofill-overlay-page-element.ts +++ b/apps/browser/src/autofill/overlay/abstractions/autofill-overlay-page-element.ts @@ -1,7 +1,9 @@ import { OverlayButtonWindowMessageHandlers } from "./autofill-overlay-button"; import { OverlayListWindowMessageHandlers } from "./autofill-overlay-list"; -type WindowMessageHandlers = OverlayButtonWindowMessageHandlers | OverlayListWindowMessageHandlers; +type AutofillOverlayPageElementWindowMessageHandlers = + | OverlayButtonWindowMessageHandlers + | OverlayListWindowMessageHandlers; type AutofillOverlayPageElementWindowMessage = { [key: string]: any; @@ -10,4 +12,4 @@ type AutofillOverlayPageElementWindowMessage = { height?: number; }; -export { WindowMessageHandlers, AutofillOverlayPageElementWindowMessage }; +export { AutofillOverlayPageElementWindowMessageHandlers, AutofillOverlayPageElementWindowMessage }; diff --git a/apps/browser/src/autofill/overlay/iframe-content/__snapshots__/autofill-overlay-iframe.service.spec.ts.snap b/apps/browser/src/autofill/overlay/iframe-content/__snapshots__/autofill-overlay-iframe.service.spec.ts.snap index cb8e4a541b..2baa56c015 100644 --- a/apps/browser/src/autofill/overlay/iframe-content/__snapshots__/autofill-overlay-iframe.service.spec.ts.snap +++ b/apps/browser/src/autofill/overlay/iframe-content/__snapshots__/autofill-overlay-iframe.service.spec.ts.snap @@ -1,21 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AutofillOverlayIframeService initOverlayIframe creates an aria alert element if the ariaAlert param is passed 1`] = ` -
- aria alert -
-`; - -exports[`AutofillOverlayIframeService initOverlayIframe sets up the iframe's attributes 1`] = ` +exports[`AutofillOverlayIframeService initMenuIframe sets up the iframe's attributes 1`] = `