Skip to content

Commit

Permalink
Simplify Playwrighth installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Aug 24, 2023
1 parent ffb0ba9 commit ce78e40
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions BTCPayApp.Tests/BTCPayAppTestServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,9 @@ protected override void ConfigureWebHost(IWebHostBuilder builder)

private static void InstallPlaywright()
{
var exitCode = Microsoft.Playwright.Program.Main(new[] {"install-deps"});
/*if (exitCode != 0)
{
throw new Exception(
$"Playwright exited with code {exitCode} on install-deps");
}*/

exitCode = Microsoft.Playwright.Program.Main(new[] {"install"});
/*if (exitCode != 0)
{
throw new Exception(
$"Playwright exited with code {exitCode} on install");
}*/
Microsoft.Playwright.Program.Main(new[] {"install", "--with-deps"});
}


public async Task<IBrowserContext> InitializeAsync()
{
Assert.NotNull(ServerAddress);
Expand Down

0 comments on commit ce78e40

Please sign in to comment.