-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2327937
commit 38e2cc4
Showing
13 changed files
with
50 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
wallets/phantom/src/pages/ConfirmationPage/selectors/index.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { Page } from '@playwright/test' | ||
import { homePageElements } from '../selectors' | ||
|
||
export const backToMain = async (page: Page) => { | ||
await page.waitForLoadState('domcontentloaded') | ||
await page.click(homePageElements.connectedSites.trustedAppsBackButton) | ||
await page.click(homePageElements.settingsMenu.settingsSidebarCloseButton) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
wallets/phantom/src/pages/HomePage/actions/selectDefaultWallet.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Page } from '@playwright/test' | ||
import { getNotificationPageAndWaitForLoad } from '../../../utils/getNotificationAndWaitForLoads' | ||
import { homePageElements } from '../selectors' | ||
|
||
export const selectDefaultWallet = async (page: Page, extensionId: string, wallet: string) => { | ||
console.log(wallet) | ||
const notificationPage = await getNotificationPageAndWaitForLoad(page.context(), extensionId) | ||
const walletSelector = homePageElements.defaultWallet['phantom'] | ||
await notificationPage.click(homePageElements.settingsMenu.settingsMenuButton) | ||
await notificationPage.click(homePageElements.settingsMenu.settingsSidebarButton) | ||
await notificationPage.click(homePageElements.settingsMenu.settingsPreferencesButton) | ||
await notificationPage.click(homePageElements.settingsMenu.defaultAppWalletRow) | ||
await notificationPage.click(walletSelector) | ||
await notificationPage.click(homePageElements.connectedSites.trustedAppsBackButton) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.