|
|
@ -364,8 +364,13 @@ defmodule BlockScoutWeb.ViewingAddressesTest do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
test "filter tokens balances by token name", %{session: session, lincoln: lincoln} do |
|
|
|
test "filter tokens balances by token name", %{session: session, lincoln: lincoln} do |
|
|
|
session |
|
|
|
next = |
|
|
|
|> AddressPage.visit_page(lincoln) |
|
|
|
session |
|
|
|
|
|
|
|
|> AddressPage.visit_page(lincoln) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Process.sleep(2_000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next |
|
|
|
|> AddressPage.click_balance_dropdown_toggle() |
|
|
|
|> AddressPage.click_balance_dropdown_toggle() |
|
|
|
|> AddressPage.fill_balance_dropdown_search("ato") |
|
|
|
|> AddressPage.fill_balance_dropdown_search("ato") |
|
|
|
|> assert_has(AddressPage.token_balance(count: 2)) |
|
|
|
|> assert_has(AddressPage.token_balance(count: 2)) |
|
|
@ -374,19 +379,29 @@ defmodule BlockScoutWeb.ViewingAddressesTest do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# flaky test |
|
|
|
# flaky test |
|
|
|
# test "filter token balances by token symbol", %{session: session, lincoln: lincoln} do |
|
|
|
test "filter token balances by token symbol", %{session: session, lincoln: lincoln} do |
|
|
|
# session |
|
|
|
next = |
|
|
|
# |> AddressPage.visit_page(lincoln) |
|
|
|
session |
|
|
|
# |> AddressPage.click_balance_dropdown_toggle() |
|
|
|
|> AddressPage.visit_page(lincoln) |
|
|
|
# |> AddressPage.fill_balance_dropdown_search("T2") |
|
|
|
|
|
|
|
# |> assert_has(AddressPage.token_balance(count: 2)) |
|
|
|
Process.sleep(2_000) |
|
|
|
# |> assert_has(AddressPage.token_type(count: 2)) |
|
|
|
|
|
|
|
# |> assert_has(AddressPage.token_type_count(type: "ERC-20", text: "1")) |
|
|
|
next |
|
|
|
# end |
|
|
|
|> AddressPage.click_balance_dropdown_toggle() |
|
|
|
|
|
|
|
|> AddressPage.fill_balance_dropdown_search("T2") |
|
|
|
|
|
|
|
|> assert_has(AddressPage.token_balance(count: 2)) |
|
|
|
|
|
|
|
|> assert_has(AddressPage.token_type(count: 2)) |
|
|
|
|
|
|
|
|> assert_has(AddressPage.token_type_count(type: "ERC-20", text: "1")) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
test "reset token balances filter when dropdown closes", %{session: session, lincoln: lincoln} do |
|
|
|
test "reset token balances filter when dropdown closes", %{session: session, lincoln: lincoln} do |
|
|
|
session |
|
|
|
next = |
|
|
|
|> AddressPage.visit_page(lincoln) |
|
|
|
session |
|
|
|
|
|
|
|
|> AddressPage.visit_page(lincoln) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Process.sleep(2_000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next |
|
|
|
|> AddressPage.click_balance_dropdown_toggle() |
|
|
|
|> AddressPage.click_balance_dropdown_toggle() |
|
|
|
|> AddressPage.fill_balance_dropdown_search("ato") |
|
|
|
|> AddressPage.fill_balance_dropdown_search("ato") |
|
|
|
|> AddressPage.click_outside_of_the_dropdown() |
|
|
|
|> AddressPage.click_outside_of_the_dropdown() |
|
|
|