Skip to content

Commit dae32b6

Browse files
committed
test: fix unit tests
1 parent 1aa4c2d commit dae32b6

File tree

2 files changed

+1
-183
lines changed

2 files changed

+1
-183
lines changed

app/components/Views/AddressSelector/AddressSelector.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('AccountSelector', () => {
134134
'multichain-address-row-network-name',
135135
).map((node) => node.props.children);
136136

137-
// Networks are sorted: Ethereum (priority 0), Linea (priority 4), then alphabetically
137+
// Networks are sorted: * 1. Ethereum, 2. Bitcoin, 3. Solana, 4. Tron, 5. Linea, 6. Featured networks, 7. Other custom networks, 8. Test networks last
138138
expect(networkNames).toEqual([
139139
MAINNET_DISPLAY_NAME,
140140
LINEA_MAINNET_DISPLAY_NAME,
@@ -143,7 +143,6 @@ describe('AccountSelector', () => {
143143
BNB_DISPLAY_NAME,
144144
OPTIMISM_DISPLAY_NAME,
145145
POLYGON_DISPLAY_NAME,
146-
SEI_DISPLAY_NAME,
147146
]);
148147
expect(networkNames).not.toContain('Solana');
149148
});

app/components/Views/AddressSelector/__snapshots__/AddressSelector.test.tsx.snap

Lines changed: 0 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,187 +2115,6 @@ exports[`AccountSelector renders correctly and matches snapshot 1`] = `
21152115
</View>
21162116
</TouchableOpacity>
21172117
</View>
2118-
<View
2119-
index={8}
2120-
onLayout={[Function]}
2121-
style={
2122-
{
2123-
"flexDirection": "column",
2124-
"height": undefined,
2125-
"left": 0,
2126-
"maxHeight": undefined,
2127-
"maxWidth": undefined,
2128-
"minHeight": undefined,
2129-
"minWidth": undefined,
2130-
"position": "absolute",
2131-
"top": 0,
2132-
"width": 0,
2133-
}
2134-
}
2135-
>
2136-
<TouchableOpacity
2137-
disabled={false}
2138-
onPress={[Function]}
2139-
style={
2140-
{
2141-
"backgroundColor": "#ffffff",
2142-
"borderRadius": 4,
2143-
"opacity": 1,
2144-
"position": "relative",
2145-
}
2146-
}
2147-
>
2148-
<View
2149-
accessibilityRole="none"
2150-
accessible={true}
2151-
style={
2152-
{
2153-
"padding": 16,
2154-
}
2155-
}
2156-
>
2157-
<View
2158-
style={
2159-
{
2160-
"alignItems": "center",
2161-
"flexDirection": "row",
2162-
}
2163-
}
2164-
>
2165-
<View
2166-
style={
2167-
[
2168-
{
2169-
"alignItems": "center",
2170-
"backgroundColor": "#ffffff",
2171-
"display": "flex",
2172-
"flexDirection": "row",
2173-
"gap": 16,
2174-
"justifyContent": "space-between",
2175-
"paddingBottom": 0,
2176-
"paddingLeft": 0,
2177-
"paddingRight": 0,
2178-
"paddingTop": 0,
2179-
},
2180-
undefined,
2181-
]
2182-
}
2183-
testID="multichain-address-row"
2184-
>
2185-
<View
2186-
collapsable={false}
2187-
pointerEvents="none"
2188-
style={
2189-
{
2190-
"backgroundColor": "#457a391a",
2191-
"bottom": 0,
2192-
"left": 0,
2193-
"opacity": 0,
2194-
"position": "absolute",
2195-
"right": 0,
2196-
"top": 0,
2197-
}
2198-
}
2199-
/>
2200-
<View
2201-
style={
2202-
{
2203-
"alignItems": "center",
2204-
"backgroundColor": "#ffffff",
2205-
"borderRadius": 8,
2206-
"height": 32,
2207-
"justifyContent": "center",
2208-
"overflow": "hidden",
2209-
"width": 32,
2210-
}
2211-
}
2212-
testID="multichain-address-row-network-icon"
2213-
>
2214-
<Image
2215-
onError={[Function]}
2216-
resizeMode="contain"
2217-
source={1}
2218-
style={
2219-
{
2220-
"height": 32,
2221-
"width": 32,
2222-
}
2223-
}
2224-
testID="network-avatar-image"
2225-
/>
2226-
</View>
2227-
<View
2228-
style={
2229-
[
2230-
{
2231-
"alignItems": "flex-start",
2232-
"display": "flex",
2233-
"flexBasis": "0%",
2234-
"flexDirection": "column",
2235-
"flexGrow": 1,
2236-
"flexShrink": 1,
2237-
},
2238-
undefined,
2239-
]
2240-
}
2241-
>
2242-
<Text
2243-
accessibilityRole="text"
2244-
style={
2245-
[
2246-
{
2247-
"color": "#121314",
2248-
"fontFamily": "Geist Medium",
2249-
"fontSize": 16,
2250-
"fontWeight": 400,
2251-
"letterSpacing": 0,
2252-
"lineHeight": 24,
2253-
},
2254-
undefined,
2255-
]
2256-
}
2257-
testID="multichain-address-row-network-name"
2258-
>
2259-
Sei
2260-
</Text>
2261-
<Text
2262-
accessibilityRole="text"
2263-
style={
2264-
[
2265-
{
2266-
"color": "#686e7d",
2267-
"fontFamily": "Geist Medium",
2268-
"fontSize": 14,
2269-
"fontWeight": 400,
2270-
"letterSpacing": 0,
2271-
"lineHeight": 22,
2272-
},
2273-
undefined,
2274-
]
2275-
}
2276-
testID="multichain-address-row-address"
2277-
>
2278-
0x4FeC2...fdcB5
2279-
</Text>
2280-
</View>
2281-
<View
2282-
style={
2283-
[
2284-
{
2285-
"alignItems": "center",
2286-
"display": "flex",
2287-
"flexDirection": "row",
2288-
"gap": 16,
2289-
},
2290-
undefined,
2291-
]
2292-
}
2293-
/>
2294-
</View>
2295-
</View>
2296-
</View>
2297-
</TouchableOpacity>
2298-
</View>
22992118
</View>
23002119
</View>
23012120
</RCTScrollView>

0 commit comments

Comments
 (0)