remove integration test that was too specific
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
# Makefile for Firehose app
|
||||
|
||||
MISE_BIN ?= /home/vscode/.local/bin/mise
|
||||
MISE_BIN ?= $(HOME)/.local/bin/mise
|
||||
MISE_EXEC = $(MISE_BIN) exec --
|
||||
|
||||
.PHONY: check precommit deps compile test format credo
|
||||
|
||||
@@ -89,35 +89,4 @@ defmodule FirehoseWeb.BlogTagsTest do
|
||||
assert body =~ "All posts"
|
||||
end
|
||||
end
|
||||
|
||||
describe "clickable tags on index page" do
|
||||
test "tags are rendered as clickable links on engineering blog index", %{
|
||||
conn: conn
|
||||
} do
|
||||
conn_res1 = get(conn, "/blog/engineering")
|
||||
body1 = html_response(conn_res1, 200)
|
||||
|
||||
# Verify tag links exist with correct href pattern
|
||||
assert body1 =~ ~r{href="/blog/engineering/tag/meta"}
|
||||
assert body1 =~ ~r{href="/blog/engineering/tag/ai"}
|
||||
end
|
||||
|
||||
test "tags are rendered as clickable links on releases blog index", %{
|
||||
conn: conn
|
||||
} do
|
||||
conn_res2 = get(conn, "/blog/releases")
|
||||
body2 = html_response(conn_res2, 200)
|
||||
|
||||
# Verify tag link exists
|
||||
assert body2 =~ ~r{href="/blog/releases/tag/release"}
|
||||
end
|
||||
|
||||
test "tag links have proper styling classes", %{conn: conn} do
|
||||
conn_res3 = get(conn, "/blog/engineering")
|
||||
body3 = html_response(conn_res3, 200)
|
||||
|
||||
# Verify blogex-tag-link class is present for tag links
|
||||
assert body3 =~ ~r{class="[^"]*blogex-tag-link}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user