Skip to content

Commit a096719

Browse files
committed
test: add missing testIDs for maestro selectors
Add testIDs to the fiat and crypto dropdown buttons in the ramp create scene so UI tests can drive the fiat/crypto selectors by id.
1 parent 5d8db11 commit a096719

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/components/scenes/RampCreateScene.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,10 @@ export const RampCreateScene: React.FC<Props> = (props: Props) => {
811811
{/* Amount Inputs */}
812812
{/* Top Input (Fiat) */}
813813
<View style={styles.inputRowView}>
814-
<DropdownInputButton onPress={handleFiatDropdown}>
814+
<DropdownInputButton
815+
onPress={handleFiatDropdown}
816+
testID="rampFiatDropdown"
817+
>
815818
{selectedFiatFlagUri !== '' ? (
816819
<ShadowedView style={styles.shadowedIcon}>
817820
<FastImage
@@ -861,7 +864,10 @@ export const RampCreateScene: React.FC<Props> = (props: Props) => {
861864
/>
862865
) : (
863866
<>
864-
<DropdownInputButton onPress={handleCryptDropdown}>
867+
<DropdownInputButton
868+
onPress={handleCryptDropdown}
869+
testID="rampCryptoDropdown"
870+
>
865871
{isLoadingPersistedCryptoSelection ? (
866872
<ActivityIndicator />
867873
) : selectedCrypto == null || selectedWallet == null ? null : (

0 commit comments

Comments
 (0)