Fix viewing_chain_test.exs

staking
Vadim 5 years ago committed by Victor Baranov
parent 67cfbdf708
commit 839b0d2016
  1. 6
      apps/block_scout_web/test/block_scout_web/features/viewing_chain_test.exs

@ -141,8 +141,12 @@ defmodule BlockScoutWeb.ViewingChainTest do
start_supervised!(AddressesCounter) start_supervised!(AddressesCounter)
AddressesCounter.consolidate() AddressesCounter.consolidate()
ChainPage.visit_page(session)
# wait for the `transactions-list` to load
:timer.sleep(1000)
session session
|> ChainPage.visit_page()
|> assert_has(ChainPage.token_transfers(transaction, count: 1)) |> assert_has(ChainPage.token_transfers(transaction, count: 1))
|> click(ChainPage.token_transfers_expansion(transaction)) |> click(ChainPage.token_transfers_expansion(transaction))
|> assert_has(ChainPage.token_transfers(transaction, count: 3)) |> assert_has(ChainPage.token_transfers(transaction, count: 3))

Loading…
Cancel
Save