Skip to content

Commit

Permalink
Tests: Skip a problematic keyboard test in IE with jQuery 3.6
Browse files Browse the repository at this point in the history
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.

Closes gh-2231
  • Loading branch information
mgol authored Apr 12, 2024
1 parent e7a0da6 commit 1374020
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unit/tabs/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand Down

0 comments on commit 1374020

Please sign in to comment.