Skip to content

Commit

Permalink
self review
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Sep 4, 2024
1 parent 691a010 commit 088a344
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,12 @@ await Assert.MultipleAsync(async () =>
{
Assert.That(userDataDirInfo.GetFiles(), Is.Not.Empty);
Assert.That(await File.ReadAllTextAsync(Path.Combine(userDataDir.Path, "prefs.js")), Is.EqualTo(prefsJSContent));
Assert.That(await File.ReadAllTextAsync(Path.Combine(userDataDir.Path, "user.js")), Is.EqualTo(prefsJSContent));
Assert.That(
await File.ReadAllTextAsync(Path.Combine(userDataDir.Path, "prefs.js")),
Is.EqualTo(prefsJSContent));
Assert.That(
await File.ReadAllTextAsync(Path.Combine(userDataDir.Path, "user.js")),
Is.EqualTo(prefsJSContent));
});
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/PuppeteerSharp/FirefoxLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ internal static string[] GetDefaultArgs(LaunchOptions options)

internal override void OnExit()
{
// If TempUserDataDir is null it means that the user provided their own userDataDir
if (TempUserDataDir is null)
{
var backupSuffix = ".puppeteer";
Expand Down

0 comments on commit 088a344

Please sign in to comment.