Skip to content

Commit d76796f

Browse files
authored
Merge pull request #6073 from EdgeApp/jon/nym-mixfetch-v2-chain-wedge
test: add createWalletRow testID for maestro selectors
2 parents 8ec462a + 41053e7 commit d76796f

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- added: Optional Bridgeless swap referral id via the `BRIDGELESS_INIT` env config, passed through to the swap plugin.
1010
- added: Klarna and PayPal payment options on the Banxa buy path.
1111
- changed: Route maestro test builds to a dedicated Zealot channel so they no longer appear in the production release list.
12+
- changed: Add maestro test selectors (testIDs) to the create-wallet crypto selection scene and row.
1213
- changed: Hide the wallet "Get Raw Keys" option behind Developer Mode, while still showing it for wallets that fail to load.
1314
- fixed: Share button referral link now uses the dl.edge.app deep-link domain so appreferred attribution is tracked
1415
- 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.

src/__tests__/scenes/__snapshots__/CreateWalletSelectCryptoScene.test.tsx.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
968968
"paddingHorizontal": 11,
969969
}
970970
}
971+
testID="createWalletRow.create-wallet:ethereum-ethereum"
971972
>
972973
<View
973974
style={
@@ -1169,6 +1170,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
11691170
"paddingHorizontal": 11,
11701171
}
11711172
}
1173+
testID="createWalletRow.create-ethereum-1985365e9f78359a9b6ad760e32412f4a445e862"
11721174
>
11731175
<View
11741176
style={
@@ -1406,6 +1408,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
14061408
"paddingHorizontal": 11,
14071409
}
14081410
}
1411+
testID="createWalletRow.create-ethereum-221657776846890989a759ba2973e427dff5c9bb"
14091412
>
14101413
<View
14111414
style={
@@ -1643,6 +1646,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
16431646
"paddingHorizontal": 11,
16441647
}
16451648
}
1649+
testID="createWalletRow.create-ethereum-2e91e3e54c5788e9fdd6a181497fdcea1de1bcc1"
16461650
>
16471651
<View
16481652
style={
@@ -1880,6 +1884,7 @@ exports[`CreateWalletSelectCrypto should render with loading props 1`] = `
18801884
"paddingHorizontal": 11,
18811885
}
18821886
}
1887+
testID="createWalletRow.create-ethereum-6b175474e89094c44da98b954eedeac495271d0f"
18831888
>
18841889
<View
18851890
style={

src/components/scenes/CreateWalletSelectCryptoScene.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ const CreateWalletSelectCryptoComponent: React.FC<Props> = (props: Props) => {
393393
pluginId={pluginId}
394394
tokenId={tokenId}
395395
walletName={displayName}
396+
testID={`createWalletRow.${key}`}
396397
onPress={async () => {
397398
await handleCreateWalletToggle(key)
398399
}}

src/components/themed/CreateWalletSelectCryptoRow.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ interface Props {
1616
settingsSummary?: string
1717
walletName: string
1818

19+
/**
20+
* Selector for automated tests. A single `pluginId` renders several rows
21+
* (mainnet plus each token, and the Segwit/non-Segwit variants), so pass the
22+
* create-list item's unique key rather than the `pluginId`.
23+
*/
24+
testID?: string
25+
1926
// Icon currency:
2027
pluginId: string
2128
tokenId: EdgeTokenId
@@ -29,6 +36,7 @@ export const CreateWalletSelectCryptoRowComponent: React.FC<Props> = props => {
2936
rightSide,
3037
settingsSummary,
3138
walletName,
39+
testID,
3240

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

6068
return (
6169
<EdgeTouchableOpacity
70+
testID={testID}
6271
style={styles.container}
6372
disabled={onPress == null}
6473
onPress={handlePress}

0 commit comments

Comments
 (0)