Skip to content

Commit 9d74f1b

Browse files
committed
test: fix comments
1 parent b8f655a commit 9d74f1b

10 files changed

Lines changed: 54 additions & 871 deletions

File tree

app/components/Views/confirmations/components/send/send.non-evm.view.test.tsx

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,40 @@ describeForPlatforms('Send (Non-EVM)', () => {
212212
expect(evmContactRow).not.toBeOnTheScreen();
213213
});
214214

215-
/**
216-
* Smoke `send-solana-token`: Amount screen shows the Send header title and SOL
217-
* symbol (same text checks as E2E; no transfer).
218-
*/
215+
it('Bitcoin send Recipient screen does not show EVM contacts', async () => {
216+
const EVM_CONTACT_ADDRESS = '0x1234567890123456789012345678901234567890';
217+
218+
const addressBookOverrides =
219+
buildAddressBookOverridesWithEvmContact(EVM_CONTACT_ADDRESS);
220+
221+
const state = initialStateWallet()
222+
.withOverrides(sendViewOverrides)
223+
.withOverrides(addressBookOverrides)
224+
.build();
225+
226+
const { findByTestId, queryByTestId } = renderScreenWithRoutes(
227+
Send as unknown as React.ComponentType,
228+
{ name: Routes.SEND.DEFAULT },
229+
[],
230+
{ state },
231+
{
232+
screen: Routes.SEND.RECIPIENT,
233+
params: { asset: MINIMAL_BTC_BALANCE_ASSET },
234+
},
235+
);
236+
237+
expect(
238+
await findByTestId(
239+
RedesignedSendViewSelectorsIDs.RECIPIENT_ADDRESS_INPUT,
240+
),
241+
).toBeOnTheScreen();
242+
243+
const evmContactRow = queryByTestId(
244+
getRecipientRowTestId(EVM_CONTACT_ADDRESS),
245+
);
246+
expect(evmContactRow).not.toBeOnTheScreen();
247+
});
248+
219249
it('Solana native: Amount screen shows Send title and SOL', async () => {
220250
const state = initialStateWallet()
221251
.withOverrides(sendViewOverrides)
@@ -298,11 +328,6 @@ describeForPlatforms('Send (Non-EVM)', () => {
298328
expect(await findByTestId('route-TransactionsView')).toBeOnTheScreen();
299329
}, 20000);
300330

301-
/**
302-
* Bitcoin send Amount: entering an amount above balance shows “Insufficient funds”
303-
* on Continue (input validation only; no transaction). Aligns with smoke
304-
* `send-btc-token` insufficient-funds coverage.
305-
*/
306331
it('Bitcoin Amount: exceeding balance shows Insufficient funds', async () => {
307332
const state = initialStateWallet()
308333
.withOverrides(sendViewOverrides)

tests/smoke/assets/defi/view-defi-details.spec.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

tests/smoke/assets/market-insights/view-market-insights.spec.ts

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)