Skip to content

Commit

Permalink
Merge pull request #222 from CrowdStrike/jl-flaky-test-fix
Browse files Browse the repository at this point in the history
chore: flaky test fixes
  • Loading branch information
joelamb authored Aug 23, 2023
2 parents abbe8e4 + 1a751cd commit 2b7a52a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ module('Plugins | resizing | column options', function (hooks) {
]
);

await requestAnimationFrameSettled();

await assertChanges(
() => dragLeft(columnC, 10),
[
Expand Down
4 changes: 3 additions & 1 deletion test-app/tests/plugins/column-resizing/rendering-test.gts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ module('Plugins | resizing', function (hooks) {
assert.equal(width(columnD), 200, 'col D has expected initial width');

ctx.table.resetToDefaults();
await settled();
await requestAnimationFrameSettled();

// Columns are set to equal widths, so column will be 250px wide by default
assert.equal(width(columnA), 250, 'col A has expected width after reset');
Expand Down Expand Up @@ -392,6 +392,8 @@ module('Plugins | resizing', function (hooks) {
]
);

await requestAnimationFrameSettled();

await assertChanges(
() => dragLeft(columnB, 10),
[
Expand Down

0 comments on commit 2b7a52a

Please sign in to comment.