Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
amk221 committed Jan 24, 2025
1 parent 50541c4 commit fc3c246
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/acceptance/performance-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module('Acceptance | performance', function (hooks) {
});

test('rendering options', async function (assert) {
assert.expect(5);
assert.expect(7);

await visit('/performance');

Expand All @@ -28,7 +28,8 @@ module('Acceptance | performance', function (hooks) {

assert.dom('.select-box__option').exists({ count: 10000 });

assert.closeTo(this.timeTaken(), 3000, 1000);
assert.ok(this.timeTaken() > 500);
assert.ok(this.timeTaken() < 2500);

this.startTimer();

Expand All @@ -38,6 +39,7 @@ module('Acceptance | performance', function (hooks) {

assert.dom('.select-box__option').doesNotExist();

assert.closeTo(this.timeTaken(), 3000, 1000);
assert.ok(this.timeTaken() > 500);
assert.ok(this.timeTaken() < 2500);
});
});

0 comments on commit fc3c246

Please sign in to comment.