Skip to content

Commit

Permalink
delete: duplicated code in transfer test
Browse files Browse the repository at this point in the history
  • Loading branch information
PetromirDev committed Aug 8, 2024
1 parent 9900347 commit 8bf259a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Wallet/Transfer/Transfer.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,13 @@ test('can send token', async () => {
addressBook={addressBook}
selectedAcc={userAddress}
addRequest={addRequest}
/>)
/>
)
const selectAnAsset = screen.getByText('Select an asset')
await user.click(selectAnAsset)
const selectMatic = screen.getByText('MATIC')
await user.click(selectMatic)

await user.click(screen.getByText('Select an asset'))
await user.click(screen.getByText('MATIC'))

const maxButton = screen.getByText('MAX')
await user.click(maxButton)

Expand Down

0 comments on commit 8bf259a

Please sign in to comment.