Skip to content

Bug: mode: cli for Playwright not recognized during gh aw compile #30088

@arthurfvives

Description

@arthurfvives

The documentation recommends using mode: cli for Playwright:
https://github.github.com/gh-aw/reference/playwright/#cli-mode-recommended

However, when I follow this recommendation, compilation fails with an error.


Environment

  • gh aw version: v0.71.1

Steps to Reproduce

  1. Configure a workflow using:

    tools:
      playwright:
        mode: cli
  2. Run:

    gh aw compile docs-playwright-tests

Actual Result

Compilation fails with:

✗ Compiled 1 workflow(s): 1 error(s), 0 warning(s)

✗ Failed workflows:
  ✗ docs-playwright-tests.md

.github\workflows\docs-playwright-tests.md:66:5: error: Unknown property: mode. Valid fields are: args, version. 'mode' belongs under 'tools/github'
63 | 
64 | tools:
65 |   playwright:
66 |     mode: cli
         ^^^^
67 |   bash:
68 |     - "npm *"
69 |     - "npx serve *"

Expected Result

mode: cli should be accepted under tools.playwright as described in the documentation, or the documentation should clarify the correct configuration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions