Skip to content

Commit 60ac4a3

Browse files
committed
Update some tests
1 parent 96532e7 commit 60ac4a3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

demo/test/demo_web/live/category_live_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ defmodule DemoWeb.Live.CategoryLiveTest do
5252
conn
5353
|> visit(~p"/admin/categories/#{category.id}/show")
5454
|> assert_has("h1", text: "Category", exact: true)
55-
|> assert_has("p", text: "Name", exact: true)
56-
|> assert_has("p", text: category.name, exact: true)
55+
|> assert_has("dt", text: "Name", exact: true)
56+
|> assert_has("dd", text: category.name, exact: true)
5757
end
5858
end
5959

demo/test/demo_web/live/tag_live_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ defmodule DemoWeb.Live.TagLiveTest do
5252
conn
5353
|> visit(~p"/admin/tags/#{tag.id}/show")
5454
|> assert_has("h1", text: "Tag", exact: true)
55-
|> assert_has("p", text: "Name", exact: true)
56-
|> assert_has("p", text: "Inserted At", exact: true)
57-
|> assert_has("p", text: tag.name, exact: true)
55+
|> assert_has("dt", text: "Name", exact: true)
56+
|> assert_has("dt", text: "Inserted At", exact: true)
57+
|> assert_has("dd", text: tag.name, exact: true)
5858
end
5959
end
6060

demo/test/demo_web/live/ticket_live_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ defmodule DemoWeb.TicketLiveTest do
3535
conn
3636
|> visit(~p"/admin/tickets/#{ticket.id}/show")
3737
|> assert_has("h1", text: "Ticket", exact: true)
38-
|> assert_has("p", text: "Subject", exact: true)
39-
|> assert_has("p", text: "Body", exact: true)
40-
|> assert_has("p", text: ticket.subject, exact: true)
41-
|> assert_has("p", text: ticket.body, exact: true)
38+
|> assert_has("dt", text: "Subject", exact: true)
39+
|> assert_has("dt", text: "Body", exact: true)
40+
|> assert_has("dd", text: ticket.subject, exact: true)
41+
|> assert_has("dd", text: ticket.body, exact: true)
4242
end
4343
end
4444
end

0 commit comments

Comments
 (0)