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 @@ -21,6 +21,7 @@
- changed: Use the UI4 warning card for the Reveal Raw Keys and Reveal Master Private Key password confirmation warnings.
- changed: Tron resource staking now describes its claim action as reclaiming your own TRX, instead of claiming a reward.
- changed: Deep links now wait only for the account state they actually use, so a link that just opens a scene, such as the buy/sell entry, follows immediately after login instead of waiting for every wallet to finish loading.
- changed: Add maestro test selectors (testIDs) to the swap scene's from and to wallet pills.
- fixed: The buy/sell amount field no longer reads "Amount undefined" while the app is still working out which wallet to use.
- fixed: Show the Monero Transaction Key of a send whose key never reached the transaction's saved metadata, by falling back to the key the wallet engine mirrors into `otherParams`. Covers sends made on 4.49.0 and later while the send path reported no key, on devices that still hold the original wallet cache.
- fixed: Force `NODE_ENV=test` in the Jest script so UI tests keep working when npm is invoked via Socket (Socket otherwise sets `NODE_ENV=development`, which makes react-native-gesture-handler treat Jest as a non-test env).
Expand Down
2 changes: 2 additions & 0 deletions src/components/scenes/SwapCreateScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ export const SwapCreateScene: React.FC<Props> = props => {
]}
tokenId={fromTokenId}
wallet={fromWallet}
walletPillTestID="swapFromWalletPill"
/>
)}
</EdgeAnim>
Expand Down Expand Up @@ -603,6 +604,7 @@ export const SwapCreateScene: React.FC<Props> = props => {
]}
tokenId={toTokenId}
wallet={toWallet}
walletPillTestID="swapToWalletPill"
heading={lstrings.exchange_title_receiving}
/>
)}
Expand Down
3 changes: 3 additions & 0 deletions src/components/themed/SwapInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export interface Props {
onFocus?: () => void
onNext?: () => void
onSelectWallet: () => Promise<void>
walletPillTestID?: string
}

const forceFieldMap: { crypto: FieldNum; fiat: FieldNum } = {
Expand All @@ -80,6 +81,7 @@ const SwapInputComponent = React.forwardRef<SwapInputCardInputRef, Props>(
tokenId,
wallet,
walletPlaceholderText,
walletPillTestID,
// Events:
onAmountChanged,
onSelectWallet,
Expand Down Expand Up @@ -320,6 +322,7 @@ const SwapInputComponent = React.forwardRef<SwapInputCardInputRef, Props>(
<PillButton
label={walletPlaceholderText}
onPress={onSelectWallet}
testID={walletPillTestID}
icon={() => (
<CryptoIcon
pluginId={wallet.currencyInfo.pluginId}
Expand Down
Loading