From 8e4afa19a9ada5c1663fcfc274abff43ce9e9ac5 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 11:39:27 -1000 Subject: Check the tag cells hold what their heading names Only the heading was checked, so a heading and cells that disagreed about snapshots passed. --- tests/t0102-summary.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/t0102-summary.sh b/tests/t0102-summary.sh index 019c8e6..104da68 100755 --- a/tests/t0102-summary.sh +++ b/tests/t0102-summary.sh @@ -168,15 +168,18 @@ test_expect_success 'a page of tags fills four columns' 'test_widths both/refs/t # The tag table's second column holds the downloads, or with no snapshot # format the object each tag points at, and is headed for what it holds. +# Both tags carry the same date, so either may be the one row shown. test_expect_success 'the tag table heads its second column for what it holds' ' cgit_ok colsrc "url=none/refs/" >tmp && grep "TagCommit" tmp && + test_grep "[a-z]*commit " tmp && { echo "snapshots=tar" && cat colsrc } >snaprc && cgit_ok snaprc "url=none/refs/" >tmp && - grep "TagDownload" tmp + grep "TagDownload" tmp && + test_grep "[a-z]*" tmp ' test_done -- cgit 2.12.1