import { tid } from '../utils/index' ; export class Balance { public static of = ( tokenSymbol ) => { const symbol = tokenSymbol . toUpperCase ( ) ; cy . get ( tid ( `${ symbol }-overview` ) , { timeout : 10000 } ) . as ( `${ symbol }` ) ; return { shouldBe : ( amount ) => { cy . get ( `@${ symbol }` ) . within ( ( ) => { ( cy . get ( tid ( `${ symbol }-balance` ) ) as any ) . contains ( amount , { timeout : 10000 } ) ; } ) ; } , } ; } ; }