diff --git a/tests/editor/standardeditor.js b/tests/editor/standardeditor.js index 4672271f..dd442909 100644 --- a/tests/editor/standardeditor.js +++ b/tests/editor/standardeditor.js @@ -345,6 +345,9 @@ describe( 'StandardEditor', () => { } ); it( 'should not replace submit() method when one of the elements in a form is named "submit"', () => { + // Restore stub since we want to mask submit function with input with name="submit". + submitStub.restore(); + const input = document.createElement( 'input' ); input.setAttribute( 'name', 'submit' ); form.appendChild( input );