test(r3): re-anchor the review's C-key row on the guarded handler

This commit is contained in:
vh
2026-09-24 16:00:01 -07:00
parent 8633b1dded
commit 64b403f7eb
+1 -1
View File
@@ -323,7 +323,7 @@ label = "INV-6 the review has no C key"
file = "booth/templates/view.html" file = "booth/templates/view.html"
test = "tests/test_compare_browser.py::test_the_keys_keep_the_reviews_guards_and_c_toggles_the_view" test = "tests/test_compare_browser.py::test_the_keys_keep_the_reviews_guards_and_c_toggles_the_view"
old = ''' old = '''
else if (e.key === 'c' || e.key === 'C') { e.preventDefault(); window.location.href = COMPARE; }''' else if ((e.key === 'c' || e.key === 'C') && COMPARE) { e.preventDefault(); window.location.href = COMPARE; }'''
new = ''' new = '''
''' '''