id = "playwright" name = "Playwright" description = "Command-line tool for running Playwright Test end-to-end tests and installing the browsers they use." homepage = "https://playwright.dev" executables = ["playwright"] [commands] format = 1 label = "Playwright" description = "Run Playwright tests or install browsers. Reporters, projects, workers and other test options are not in the completion data and are left out." quality = "ai-draft" base = "fig:playwright" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/playwright.ts" license = "MIT" [[commands.subcommand]] path = ["test"] label = "Run tests" description = "Run Playwright Test files, optionally filtered by title." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/playwright.ts" license = "MIT" [[commands.subcommand.field]] id = "tests" label = "Test files" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "grep" label = "Title filter" description = "Run only tests with this title." type = "string" option = ["-g"] sources = ["fig"] [[commands.subcommand.field]] id = "headed" label = "Headed browsers" type = "boolean" option = ["--headed"] sources = ["fig"] [[commands.subcommand.task]] id = "run" label = "Run tests" fields = ["tests", "grep", "headed"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["tests", "grep", "headed"] [[commands.subcommand]] path = ["install"] label = "Install browsers" description = "Install the default browsers, or the ones you name." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/playwright.ts" license = "MIT" [[commands.subcommand.field]] id = "browsers" label = "Browsers" description = "Leave empty to install the default browsers." type = "string" position = 0 multiple = true suggestions = [{ value = "chromium", label = "Chromium" }, { value = "firefox", label = "Firefox" }, { value = "webkit", label = "WebKit" }, { value = "chrome", label = "Chrome" }, { value = "msedge", label = "Microsoft Edge" }] sources = ["fig"] [[commands.subcommand.field]] id = "with_deps" label = "Install system dependencies" type = "boolean" option = ["--with-deps"] sources = ["fig"] [[commands.subcommand.task]] id = "install" label = "Install browsers" fields = ["browsers", "with_deps"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["browsers", "with_deps"]