Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed Feb 28, 2024
1 parent fd09cff commit 6f5034b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Selectors from '../selectors'
import type { Page } from '@playwright/test'
import Selectors from '../selectors'

export async function providePublicEncryptionKey(notificationPage: Page) {
await notificationPage.locator(Selectors.ActionFooter.confirmActionButton).click()
Expand Down
6 changes: 3 additions & 3 deletions wallets/metamask/src/pages/NotificationPage/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import {
type GasSetting,
approvePermission,
connectToDapp,
decryptMessage,
network,
providePublicEncryptionKey,
signSimpleMessage,
signStructuredMessage,
token,
transaction,
providePublicEncryptionKey,
decryptMessage
transaction
} from './actions'
import Selectors from './selectors'

Expand Down
4 changes: 2 additions & 2 deletions wallets/metamask/src/pages/OnboardingPage/selectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export default {
WalletCreationSuccessPageSelectors,

// 5th Page
PinExtensionPageSelectors
}
PinExtensionPageSelectors,
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export async function getNotificationPageAndWaitForLoad(context: BrowserContext,
let notificationPage = context.pages().find(isNotificationPage)

if (!notificationPage) {
notificationPage = await context.waitForEvent('page', { predicate: isNotificationPage })
notificationPage = await context.waitForEvent('page', {
predicate: isNotificationPage
})
}

// Set pop-up window viewport size to resemble the actual MetaMask pop-up window.
Expand Down

0 comments on commit 6f5034b

Please sign in to comment.