From 41b56aae9a83441e39e89038fc51b4d423aced4e Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 12:51:18 -1000 Subject: Test the download row on the commit page --- tests/t0106-commit.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/t0106-commit.sh b/tests/t0106-commit.sh index 58e0de8..a6e7db1 100755 --- a/tests/t0106-commit.sh +++ b/tests/t0106-commit.sh @@ -110,6 +110,16 @@ test_expect_success 'an octopus merge draws no diff and offers no diff options' test_grep "" tmp ' +test_expect_success 'the commit page offers a download per snapshot format' ' + cgit_ok_url "foo/commit" >tmp && + test_grep "" tmp && + test_grep ! ">download" tmp +' + test_expect_success 'a note is shown below the message' ' git -C repos/foo notes add -m "a note on five" master && test_when_finished "git -C repos/foo notes remove master" && -- cgit 2.12.1
download
foo-master.tar
" tmp && + test_grep "foo-master.zip" tmp && + cgitrc_repo nosnaprc foo && + cgit_ok nosnaprc "url=foo/commit" >tmp && + test_grep "
tree