Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Name the graph and links header cells
Both were empty, so a screen reader moving through the table announced those columns with no name. An aria-label names them without adding text to the page.
Diffstat (limited to 'tests/t0103-log.sh')
-rwxr-xr-xtests/t0103-log.sh3
1 file changed, 2 insertions, 1 deletion
diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh
index 573baa8..d7e745d 100755
--- a/tests/t0103-log.sh
+++ b/tests/t0103-log.sh
@@ -107,7 +107,8 @@ test_expect_success 'the log draws the commit graph when enabled' '
sed "s/^cache-size=.*/cache-size=0/" cgitrc
} >graphrc &&
CGIT_CONFIG="$PWD/graphrc" QUERY_STRING="url=foo/log/" cgit >tmp &&
- grep "class=.commitgraph." tmp
+ grep "class=.commitgraph." tmp &&
+ grep "<th scope=.col. aria-label=.Graph.></th>" tmp
'
# The search is literal, so text that is no valid regular expression still