mirror of
https://github.com/kieraneglin/pinchflat.git
synced 2026-01-23 02:24:24 +00:00
Made source sorting case-insensitive (#708)
This commit is contained in:
parent
a55f17ac5f
commit
1cee7a19ee
2 changed files with 12 additions and 2 deletions
|
|
@ -75,6 +75,16 @@ defmodule PinchflatWeb.Sources.SourceLive.IndexTableLiveTest do
|
|||
assert render_element(view, "tbody tr:first-child") =~ source1.custom_name
|
||||
assert render_element(view, "tbody tr:last-child") =~ source2.custom_name
|
||||
end
|
||||
|
||||
test "name is sorted without case sensitivity", %{conn: conn} do
|
||||
source1 = source_fixture(custom_name: "Source_B")
|
||||
source2 = source_fixture(custom_name: "source_a")
|
||||
|
||||
{:ok, view, _html} = live_isolated(conn, IndexTableLive, session: create_session())
|
||||
|
||||
assert render_element(view, "tbody tr:first-child") =~ source2.custom_name
|
||||
assert render_element(view, "tbody tr:last-child") =~ source1.custom_name
|
||||
end
|
||||
end
|
||||
|
||||
describe "when testing pagination" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue