Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0112-stats.sh | 6 |
1 file changed, 6 insertions, 0 deletions
diff --git a/tests/t0112-stats.sh b/tests/t0112-stats.sh index 722a61c..4b45ee8 100755 --- a/tests/t0112-stats.sh +++ b/tests/t0112-stats.sh @@ -42,6 +42,12 @@ test_expect_success 'stats page renders the authors table' ' grep "<h2>Commits per author" tmp ' +# The table scrolls sideways on a narrow window with nothing in it a keyboard +# can reach, so the table itself takes focus. +test_expect_success 'the authors table can take keyboard focus' ' + grep "<table class=.stats. tabindex=.0. aria-label=.Commits per author.>" tmp +' + test_expect_success 'stat options sit above the content' ' tr -d "\n" <tmp | sed "s/<h2>Commits per author.*//" | grep "cgit-panel" ' |
