Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Match the overflow links on the refs page
The test read the page the test before it left and looked for the bare
path, which other links on the page also hold.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0204-limits.sh | 5 |
1 file changed, 3 insertions, 2 deletions
diff --git a/tests/t0204-limits.sh b/tests/t0204-limits.sh index d2151c6..00f9326 100755 --- a/tests/t0204-limits.sh +++ b/tests/t0204-limits.sh @@ -67,8 +67,9 @@ test_expect_success 'refs page lists max-ref-count branches and tags' ' ' test_expect_success 'refs page links each overflow to its own category' ' - grep "refs/heads" tmp && - grep "refs/tags" tmp + cgit_ok limitrc "url=limits/refs/" >tmp && + test_grep "href=./limits/refs/heads.>\[\.\.\.\]</a>" tmp && + test_grep "href=./limits/refs/tags.>\[\.\.\.\]</a>" tmp ' # The branches sort by name, so the second page holds branch-3 and master. |
