diff --git a/tests/mutations/r3.toml b/tests/mutations/r3.toml index e38f1bf..eb29e11 100644 --- a/tests/mutations/r3.toml +++ b/tests/mutations/r3.toml @@ -323,7 +323,7 @@ label = "INV-6 the review has no C key" file = "booth/templates/view.html" test = "tests/test_compare_browser.py::test_the_keys_keep_the_reviews_guards_and_c_toggles_the_view" 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 = ''' '''