test: updated for country
This commit is contained in:
parent
3891c33204
commit
9fc8c3b74a
6 changed files with 49 additions and 14 deletions
|
|
@ -45,11 +45,11 @@ defmodule MvWeb.GlobalSettingsLiveConfigTest do
|
|||
{:ok, view, _html} = live(conn, ~p"/admin/import")
|
||||
|
||||
# Generate CSV with 501 rows (exceeding custom limit of 500)
|
||||
header = "first_name;last_name;email;street;postal_code;city\n"
|
||||
header = "first_name;last_name;email;country;city;street;postal_code\n"
|
||||
|
||||
rows =
|
||||
for i <- 1..501 do
|
||||
"Row#{i};Last#{i};email#{i}@example.com;Street#{i};12345;City#{i}\n"
|
||||
"Row#{i};Last#{i};email#{i}@example.com;Country#{i};City#{i};Street#{i};12345\n"
|
||||
end
|
||||
|
||||
large_csv = header <> Enum.join(rows)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue