Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- added: Optional Bridgeless swap referral id via the `BRIDGELESS_INIT` env config, passed through to the swap plugin.
- added: Klarna and PayPal payment options on the Banxa buy path.
- changed: Route maestro test builds to a dedicated Zealot channel so they no longer appear in the production release list.
- changed: Add maestro test selectors (testIDs) to the create-wallet crypto selection scene and row.
- changed: Hide the wallet "Get Raw Keys" option behind Developer Mode, while still showing it for wallets that fail to load.
- fixed: Share button referral link now uses the dl.edge.app deep-link domain so appreferred attribution is tracked
- fixed: MoonPay "Send with Edge" sell link now opens the app to a pre-filled Send scene. All ramp redirect URLs (payment, success, fail, cancel) point at the claimed deep.edge.app.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
"paddingHorizontal": 11,
}
}
testID="createWalletRow.create-wallet:ethereum-ethereum"
>
<View
style={
Expand Down Expand Up @@ -1169,6 +1170,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
"paddingHorizontal": 11,
}
}
testID="createWalletRow.create-ethereum-1985365e9f78359a9b6ad760e32412f4a445e862"
>
<View
style={
Expand Down Expand Up @@ -1406,6 +1408,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
"paddingHorizontal": 11,
}
}
testID="createWalletRow.create-ethereum-221657776846890989a759ba2973e427dff5c9bb"
>
<View
style={
Expand Down Expand Up @@ -1643,6 +1646,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
"paddingHorizontal": 11,
}
}
testID="createWalletRow.create-ethereum-2e91e3e54c5788e9fdd6a181497fdcea1de1bcc1"
>
<View
style={
Expand Down Expand Up @@ -1880,6 +1884,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
"paddingHorizontal": 11,
}
}
testID="createWalletRow.create-ethereum-6b175474e89094c44da98b954eedeac495271d0f"
>
<View
style={
Expand Down
1 change: 1 addition & 0 deletions src/components/scenes/CreateWalletSelectCryptoScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ const CreateWalletSelectCryptoComponent: React.FC<Props> = (props: Props) => {
pluginId={pluginId}
tokenId={tokenId}
walletName={displayName}
testID={`createWalletRow.${key}`}
onPress={async () => {
await handleCreateWalletToggle(key)
}}
Expand Down
9 changes: 9 additions & 0 deletions src/components/themed/CreateWalletSelectCryptoRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ interface Props {
settingsSummary?: string
walletName: string

/**
* Selector for automated tests. A single `pluginId` renders several rows
* (mainnet plus each token, and the Segwit/non-Segwit variants), so pass the
* create-list item's unique key rather than the `pluginId`.
*/
testID?: string

// Icon currency:
pluginId: string
tokenId: EdgeTokenId
Expand All @@ -29,6 +36,7 @@ export const CreateWalletSelectCryptoRowComponent: React.FC<Props> = props => {
rightSide,
settingsSummary,
walletName,
testID,

// Icon currency:
pluginId,
Expand Down Expand Up @@ -59,6 +67,7 @@ export const CreateWalletSelectCryptoRowComponent: React.FC<Props> = props => {

return (
<EdgeTouchableOpacity
testID={testID}
style={styles.container}
disabled={onPress == null}
onPress={handlePress}
Expand Down
Loading