mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-06 23:03:52 +00:00
add test for checking tokens in localstorage
This commit is contained in:
parent
349b05b346
commit
31cbb58b62
@ -70,6 +70,13 @@ describe('DOM > Feature > Enable and disable default tokens', () => {
|
||||
expect(balanceRows[1]).toHaveTextContent('FTE')
|
||||
expect(balanceRows[2]).toHaveTextContent('STE')
|
||||
|
||||
await sleep(1000)
|
||||
|
||||
const tokensFromStorage = await getActiveTokens()
|
||||
|
||||
expect(Object.keys(tokensFromStorage)).toContain(firstErc20Token.address)
|
||||
expect(Object.keys(tokensFromStorage)).toContain(secondErc20Token.address)
|
||||
|
||||
// disable tokens
|
||||
clickOnManageTokens(TokensDom)
|
||||
toggleToken(TokensDom, 'FTE')
|
||||
@ -80,7 +87,5 @@ describe('DOM > Feature > Enable and disable default tokens', () => {
|
||||
balanceRows = TokensDom.getAllByTestId(BALANCE_ROW_TEST_ID)
|
||||
expect(balanceRows.length).toBe(1)
|
||||
expect(balanceRows[0]).toHaveTextContent('ETH')
|
||||
|
||||
expect()
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user