diff --git a/apps/block_scout_web/test/block_scout_web/features/pages/token_page.ex b/apps/block_scout_web/test/block_scout_web/features/pages/token_page.ex index 6db529aff9..bd3a5ec02d 100644 --- a/apps/block_scout_web/test/block_scout_web/features/pages/token_page.ex +++ b/apps/block_scout_web/test/block_scout_web/features/pages/token_page.ex @@ -10,7 +10,11 @@ defmodule BlockScoutWeb.TokenPage do end def visit_page(session, contract_address_hash) do - visit(session, "tokens/#{contract_address_hash}") + visit(session, "tokens/#{contract_address_hash}/token_holders") + end + + def token_holders_tab(count: count) do + css("[data-test='token_holders_tab']", count: count) end def click_tokens_holders(session) do diff --git a/apps/block_scout_web/test/block_scout_web/features/viewing_tokens_test.exs b/apps/block_scout_web/test/block_scout_web/features/viewing_tokens_test.exs index 06f1255964..d896266848 100644 --- a/apps/block_scout_web/test/block_scout_web/features/viewing_tokens_test.exs +++ b/apps/block_scout_web/test/block_scout_web/features/viewing_tokens_test.exs @@ -15,7 +15,6 @@ defmodule BlockScoutWeb.ViewingTokensTest do session |> TokenPage.visit_page(token.contract_address) - |> TokenPage.click_tokens_holders() |> assert_has(TokenPage.token_holders(count: 2)) end end