Skip to content

Commit

Permalink
should fix IE test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydgruber committed May 4, 2020
1 parent d9d0d65 commit ba9b22e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/dom/type-in-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ module('DOM Helper: typeIn', function (hooks) {

await assert.rejects(
typeIn(element, tooLongString).finally(() => {
// should throw before the second input event
assert.verifySteps(expectedEvents.slice(0, 8));
// should throw before the second input event (or second keyup for IE)
const expectedNumberOfSteps = isIE11 ? 6 : 8;
assert.verifySteps(expectedEvents.slice(0, expectedNumberOfSteps));
}),
new Error("Can not `typeIn` with text: 'fo' that exceeds maxlength: '1'.")
);
Expand Down

0 comments on commit ba9b22e

Please sign in to comment.