Make WordPress Core

Changeset 41675


Ignore:
Timestamp:
10/02/2017 06:34:53 PM (7 years ago)
Author:
adamsilverstein
Message:

Menus: Increase timeout for QUnit wpNavMenu trigger tests.

Fix an (intermittent) issue where the final assertion verifying all hooks have been triggered ran too early, resulting in the test failing.

Fixes #31218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/wp-admin/js/nav-menu.js

    r40109 r41675  
    66        eventsFired = 0;
    77
    8     // Fail if we don't see the expected number of events triggered in 1500 ms.
     8    // Fail if we don't see the expected number of events triggered in 3 seconds.
    99    setTimeout( function() {
    1010        // QUnit may load this file without running it, in which case `assert`
     
    1515            eventsExpected + ' wpNavMenu events should fire.'
    1616        );
    17     }, 1500 );
     17    }, 3000 );
    1818
    1919    QUnit.test( 'Testing wpNavMenu event triggers.', function( assertPassed ) {
Note: See TracChangeset for help on using the changeset viewer.