diff --git a/tests/frontend/specs/alphabet.js b/tests/frontend/specs/alphabet.js index 02e0ca222..da5d002b3 100644 --- a/tests/frontend/specs/alphabet.js +++ b/tests/frontend/specs/alphabet.js @@ -21,9 +21,15 @@ describe("All the alphabet works n stuff", function(){ let code; for (let index = 0; index < expectedString.length; index++){ code = expectedString.charCodeAt(index); - $(firstTextElement).trigger({type: 'keydown', which: code}); - $(firstTextElement).trigger({type: 'keypress', which: code}); - $(firstTextElement).trigger({type: 'keyup', which: code}); + var press = jQuery.Event("keypress"); + var down = jQuery.Event("keydown"); + var up = jQuery.Event("keyup"); + press.which = code; + down.which = code; + up.which = code; + $(firstTextElement).trigger(down); + $(firstTextElement).trigger(press); + $(firstTextElement).trigger(up); } helper.waitFor(function(){ diff --git a/tests/frontend/travis/remote_runner.js b/tests/frontend/travis/remote_runner.js index 13a0dc7ee..715a0cc00 100644 --- a/tests/frontend/travis/remote_runner.js +++ b/tests/frontend/travis/remote_runner.js @@ -16,6 +16,7 @@ async function runTest(testSettings){ 'browserName': testSettings.browserName, 'platformName': testSettings.platformName, 'browserVersion': testSettings.browserVersion, + 'nativeEvents': true, 'sauce:options': { 'nativeEvents': true, 'username': process.env.SAUCE_USERNAME,