Skip to content

Commit bb2613c

Browse files
committed
Fix: mix playwright.install also installs deps
1 parent 5d7274d commit bb2613c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/playwright/sdk/cli.ex

+2-10
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,13 @@ defmodule Playwright.SDK.CLI do
66
require Logger
77

88
def install do
9-
Logger.info("Installing playwright browsers")
9+
Logger.info("Installing playwright browsers and dependencies")
1010
cli_path = config_cli() || default_cli()
11-
{result, exit_status} = System.cmd(cli_path, ["install"])
11+
{result, exit_status} = System.cmd(cli_path, ["install", "--with-deps"])
1212
Logger.info(result)
1313
if exit_status != 0, do: raise("Failed to install playwright browsers")
1414
end
1515

16-
def install_deps do
17-
Logger.info("Installing playwright deps")
18-
cli_path = config_cli() || default_cli()
19-
{result, exit_status} = System.cmd(cli_path, ["installdeps"])
20-
Logger.info(result)
21-
if exit_status != 0, do: raise("Failed to install playwright deps")
22-
end
23-
2416
# private
2517
# ----------------------------------------------------------------------------
2618

0 commit comments

Comments
 (0)