import { BuyCell } from 'nft/components/collection/ActivityCells'
import { TEST_NFT_ACTIVITY_EVENT } from 'test-utils/nft/fixtures'
import { render, screen } from 'test-utils/render'

// TODO: add snapshot matching test when VE works with snapshot testing
describe('BuyCell', () => {
  it('renders add to bag button', async () => {
    render(
      <BuyCell
        event={TEST_NFT_ACTIVITY_EVENT}
        collectionName="Azuki"
        selectAsset={() => undefined}
        removeAsset={() => undefined}
        itemsInBag={[]}
        cartExpanded={false}
        toggleCart={() => undefined}
        isMobile={false}
        ethPriceInUSD={0}
      />
    )
    expect(await screen.findByText(/Add to Bag/i)).toBeInTheDocument()
  })
})
