diff --git a/wallets/phantom/src/playwright/pages/HomePage/actions/popups/closeNetworkAddedPopover.ts b/wallets/phantom/src/playwright/pages/HomePage/actions/popups/closeNetworkAddedPopover.ts deleted file mode 100644 index 1ceb46d61..000000000 --- a/wallets/phantom/src/playwright/pages/HomePage/actions/popups/closeNetworkAddedPopover.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { Page } from '@playwright/test' -import Selectors from '../../../../../selectors/pages/HomePage' -import { clickLocatorIfCondition } from '../../../../utils/clickLocatorIfCondition' - -// Note: The "Dismiss" button does NOTHING and the network is ALWAYS automatically switched. -export async function closeNetworkAddedPopover(page: Page) { - const switchNetworkButtonLocator = page.locator(Selectors.networkAddedPopover.switchToNetworkButton) - - // TODO: Extract & make configurable - await clickLocatorIfCondition(switchNetworkButtonLocator, () => switchNetworkButtonLocator.isVisible(), 1_000) - - const switchCompleteCloseButtonLocator = page.locator(Selectors.networkAddedPopover.switchCompleteCloseButton) - - await clickLocatorIfCondition( - switchCompleteCloseButtonLocator, - () => switchCompleteCloseButtonLocator.isVisible(), - 1_000 - ) -} diff --git a/wallets/phantom/src/playwright/pages/HomePage/actions/popups/closeNewNetworkInfoPopover.ts b/wallets/phantom/src/playwright/pages/HomePage/actions/popups/closeNewNetworkInfoPopover.ts deleted file mode 100644 index 8ac81f444..000000000 --- a/wallets/phantom/src/playwright/pages/HomePage/actions/popups/closeNewNetworkInfoPopover.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Page } from '@playwright/test' -import Selectors from '../../../../../selectors/pages/HomePage' -import { clickLocatorIfCondition } from '../../../../utils/clickLocatorIfCondition' - -export async function closeNewNetworkInfoPopover(page: Page) { - const gotItButtonLocator = page.locator(Selectors.newNetworkInfoPopover.gotItButton) - - // TODO: Extract & make configurable - await clickLocatorIfCondition(gotItButtonLocator, () => gotItButtonLocator.isVisible(), 1_000) -} diff --git a/wallets/phantom/src/playwright/pages/HomePage/actions/popups/index.ts b/wallets/phantom/src/playwright/pages/HomePage/actions/popups/index.ts index bdee5a034..2c83dc704 100644 --- a/wallets/phantom/src/playwright/pages/HomePage/actions/popups/index.ts +++ b/wallets/phantom/src/playwright/pages/HomePage/actions/popups/index.ts @@ -1,4 +1,2 @@ export * from './closePopover' export * from './closeRecoveryPhraseReminder' -export * from './closeNewNetworkInfoPopover' -export * from './closeNetworkAddedPopover'