From 293532aaaa8488bf3f694954719890160af8c52f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Fri, 5 Apr 2024 00:45:15 +0200 Subject: [PATCH] Tests: Skip a problematic keyboard test in IE with jQuery 3.6 jQuery 3.6 has issues with focus handling in IE which breaks this test. The issues were fixed in jQuery 3.7, so we just accept them here. --- tests/unit/tabs/core.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/unit/tabs/core.js b/tests/unit/tabs/core.js index 37dd3d4e301..7637cfb1fd9 100644 --- a/tests/unit/tabs/core.js +++ b/tests/unit/tabs/core.js @@ -180,7 +180,13 @@ QUnit.test( "accessibility - ajax", function( assert ) { } ); } ); -QUnit.test( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER", function( assert ) { +QUnit[ + + // Support: IE 11+, jQuery 3.6 only + // jQuery 3.6 has issues with focus handling in IE which breaks this test. + // The issues were fixed in jQuery 3.7, so we just accept them here. + jQuery.fn.jquery.indexOf( "3.6." ) === 0 && document.documentMode ? "skip" : "test" +]( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER", function( assert ) { var ready = assert.async(); assert.expect( 92 ); var element = $( "#tabs1" ).tabs( {