mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* fix(dashboard): remove empty position container from dashboard when no positions (#6818) * fix(portfolio): Optimize total fiat value for different token lists (#6744) * feat(portfolio): use legacy endpoint for ALL tokens list * refactor * feature(portfolio): change tooltip text * feature(portfolio): add positions to hint text of total fiat (#6836) * feature(portfolio): optimize calls to portfolio (#6829) * feat(portfolio): remove polling and refetchOnFocus from portfolio endpoints * feature(portfolio): add refetch hint component * feature(portfolio): refetch portfolio on tx history change * refactor: use existing formatting library * refactor: remove unused css class * refactor: add correct event tracking * fix: prettier * feature(portfolio): move refresh button right of the hint text * feature(portfolio): use tx service balances in send flow (#6830) * feature(portfolio): use tx service balances in send flow * feature(portfolio): adapt send flow to visible token list * feature(portfolio): remove dust filter from send flow token list * feat(portfolio): remove weight icon (#6839) * refactor: rename txServiceBalances from legacyBalances (#6842) * feature(portfolio): reduce cache time to 10s (#6843) * feature(portfolio): add info text about token info (#6840) * feature(portfolio): refetch portfolio only when it ran before (#6851) * feature(portfolio): exchange tx icons (#6850) * refactor: remove accidentally commited storybook file mockServiceWorker.js * fix: support dark mode on Earn and Stake on confirm tx * fix: design on assets page
43 lines
1.5 KiB
JavaScript
43 lines
1.5 KiB
JavaScript
import * as constants from '../../support/constants'
|
|
import * as main from '../../e2e/pages/main.page'
|
|
import * as assets from '../pages/assets.pages'
|
|
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
|
|
|
|
let staticSafes = []
|
|
|
|
const commonTokens = ['ETH', 'GNO', 'SAFE', 'USDT', 'SAI', 'OMG', 'OWL']
|
|
const txServiceOnlyTokens = ['cSAI', 'LUNC', 'BUN']
|
|
|
|
describe('[SMOKE] Balances endpoint tests', () => {
|
|
before(async () => {
|
|
staticSafes = await getSafes(CATEGORIES.static)
|
|
})
|
|
|
|
beforeEach(() => {
|
|
cy.visit(constants.BALANCE_URL + staticSafes.ETH_STATIC_SAFE_15)
|
|
})
|
|
|
|
it('[SMOKE] Verify default token list shows expected tokens', () => {
|
|
assets.toggleShowAllTokens(false)
|
|
assets.toggleHideDust(false)
|
|
main.verifyValuesExist(assets.tokenListTable, commonTokens)
|
|
main.verifyValuesDoNotExist(assets.tokenListTable, txServiceOnlyTokens)
|
|
})
|
|
|
|
it('[SMOKE] Verify all tokens list shows additional tokens', () => {
|
|
assets.toggleHideDust(false)
|
|
assets.toggleShowAllTokens(true)
|
|
main.verifyValuesExist(assets.tokenListTable, commonTokens)
|
|
main.verifyValuesExist(assets.tokenListTable, txServiceOnlyTokens)
|
|
})
|
|
|
|
it('[SMOKE] Verify switching token list updates displayed tokens', () => {
|
|
assets.toggleHideDust(false)
|
|
assets.toggleShowAllTokens(true)
|
|
main.verifyValuesExist(assets.tokenListTable, txServiceOnlyTokens)
|
|
assets.toggleShowAllTokens(false)
|
|
main.verifyValuesDoNotExist(assets.tokenListTable, txServiceOnlyTokens)
|
|
main.verifyValuesExist(assets.tokenListTable, commonTokens)
|
|
})
|
|
})
|