{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/playwright.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "test"
        ],
        "label": "Run tests",
        "description": "Run Playwright Test files, optionally filtered by title.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/playwright.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "tests",
            "label": "Test files",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "grep",
            "label": "Title filter",
            "description": "Run only tests with this title.",
            "type": "string",
            "option": [
              "-g"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "headed",
            "label": "Headed browsers",
            "type": "boolean",
            "option": [
              "--headed"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run tests",
            "fields": [
              "tests",
              "grep",
              "headed"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "tests",
              "grep",
              "headed"
            ]
          }
        ]
      },
      {
        "path": [
          "install"
        ],
        "label": "Install browsers",
        "description": "Install the default browsers, or the ones you name.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/playwright.ts",
            "license": "MIT"
          }
        ],
        "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"
            ]
          },
          {
            "id": "with_deps",
            "label": "Install system dependencies",
            "type": "boolean",
            "option": [
              "--with-deps"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install browsers",
            "fields": [
              "browsers",
              "with_deps"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "browsers",
              "with_deps"
            ]
          }
        ]
      }
    ]
  }
}
