Skip to content

Commit

Permalink
test: try stablize snapshot tests with a delay
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed Jun 13, 2023
1 parent a9ba457 commit 14baaa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/docfx.Snapshot.Tests/SamplesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ await s_viewports.ForEachInParallelAsync(async viewport =>
await page.WaitForFunctionAsync("window.docfx.ready");
await page.WaitForFunctionAsync("window.docfx.searchReady");
await page.EvaluateAsync($"() => document.documentElement.setAttribute('data-bs-theme', '{theme}')");
await Task.Delay(200);

if (url.Contains("?term=cat"))
{
Expand Down

0 comments on commit 14baaa0

Please sign in to comment.