fix: /addresses empty list flickering test fix (#10400)

pull/10402/head
Victor Baranov 5 months ago committed by GitHub
parent a1817f4148
commit 82f053e392
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      apps/block_scout_web/test/block_scout_web/controllers/api/v2/address_controller_test.exs

@ -2423,8 +2423,12 @@ defmodule BlockScoutWeb.API.V2.AddressControllerTest do
total_supply = to_string(Chain.total_supply())
assert %{"items" => [], "next_page_params" => nil, "exchange_rate" => nil, "total_supply" => ^total_supply} =
json_response(request, 200)
pattern_response = %{"items" => [], "next_page_params" => nil, "total_supply" => total_supply}
response = json_response(request, 200)
assert pattern_response["items"] == response["items"]
assert pattern_response["next_page_params"] == response["next_page_params"]
assert pattern_response["total_supply"] == response["total_supply"]
end
test "check pagination", %{conn: conn} do

Loading…
Cancel
Save