Skip to content

Commit

Permalink
test: Fix screenshot flake by waiting longer for fonts (#5204)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish authored Apr 29, 2023
1 parent 7bda65d commit c2dc8d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test/util/layout_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ shaka.test.LayoutTests = class {
});
});

// Wait one extra tick to make sure the font rendering on the page has been
// updated. Without this, we saw some rare test flake in Firefox on Mac.
await shaka.test.Util.shortDelay();
// Wait one extra second to make sure the font rendering on the page has
// been updated. Without this, we saw some rare test flake in Firefox on
// Mac.
await shaka.test.Util.delay(1);
}

/**
Expand Down

0 comments on commit c2dc8d3

Please sign in to comment.