agentleFS
MicrosoftKnown publishermicrosoft/fabric-org-app-template/.agents/skills/playwright-cli/SKILL.md

playwright-cli

Skill1 starsChanged 6 months agoMITView on GitHub

Drive a browser via `playwright-cli` to validate the migrated Org App end-to-end — sign in with Fabric SSO, navigate between reports, confirm iframes render, capture screenshots for review. Use after a migration to verify reports load.

  • Installs packages

88 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use playwright-ci, playwright-migration and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • zebbernSkill

    playwright-ci

    Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

    Also in 3 projects that use this

  • zebbernSkill

    playwright-migration

    Step-by-step migration guides for moving to Playwright from Cypress or Selenium/WebDriver — command mappings, architecture changes, and incremental adoption strategies.

    Also in 3 projects that use this

  • MicrosoftSkill

    aspire

    Orchestrates Aspire distributed applications using the Aspire CLI for running, debugging, and managing distributed apps. USE FOR: aspire start, aspire stop, start aspire app, aspire describe, list aspire integrations, debug aspire issues, view aspire logs, add aspire resource, aspire dashboard, update aspire apphost. DO NOT USE FOR: non-Aspire .NET apps (use dotnet CLI), container-only deployments (use docker/podman), Azure deployment after local testing (use azure-deploy skill). INVOKES: Aspire CLI commands (aspire start, aspire describe, aspire otel logs, aspire docs search, aspire add), bash. FOR SINGLE OPERATIONS: Use Aspire CLI commands directly for quick resource status or doc lookups.

    Also in 3 projects that use this

  • CommandCodeAISkill

    playwright-skill

    Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.

    Also in 4 projects that use this

  • rogue-dev-studioSkill

    github-cli

    GitHub CLI authentication and workflow configuration. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `github-cli` work when listed in TEAM.yaml or explicitly requested.

    Also in 3 projects that use this

  • OpenAISkill

    image-to-code

    Implement a selected image, screenshot, mockup, or Image Gen reference as a faithful, responsive frontend.

    Also in 5 projects that use this

  • +1 more from zebbern

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 78 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After org-app-parsing + org-app-theming have run and you've started the dev server, use playwright-cli to verify:

    line 11
  2. Very specific:

    Use refs from snapshot (e5, e12, etc.), CSS selectors, or Playwright locators:

    line 51
  3. Very specific:

    If playwright-cli is not on PATH:

    line 74
  4. Very specific:

    Use playwright-cli network to watch network activity if reports fail to load.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 78 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

playwright-cli

When to use this skill

After org-app-parsing + org-app-theming have run and you've started the dev server, use playwright-cli to verify:

  1. The user can sign in via Fabric SSO
  2. The sidebar shows every report from the manifest
  3. Each report iframe loads without errors
  4. The theme colors apply correctly

Essential commands

# Open a fresh browser session
playwright-cli open http://localhost:5173

# Inspect the current page (refs like e1, e2 used for interactions)
playwright-cli snapshot

# Click an element by ref from the snapshot
playwright-cli click e15

# Type into the focused field
playwright-cli type "your-app-id"

# Press a key
playwright-cli press Enter

# Take a screenshot
playwright-cli screenshot --filename=after-signin.png

# Read the JS console (look for embed errors)
playwright-cli console

# Run a JS evaluator (e.g., grab the iframe count)
playwright-cli eval "document.querySelectorAll('iframe').length"

# Close the browser
playwright-cli close

Targeting elements

Use refs from snapshot (e5, e12, etc.), CSS selectors, or Playwright locators:

playwright-cli click "getByRole('link', { name: 'Store Sales Report' })"
playwright-cli click "iframe[title='Store Sales Report']"

Validation script for an Org App migration

playwright-cli open http://localhost:5173
playwright-cli snapshot                                # confirm sign-in UI or sidebar
# (if needed: complete AAD redirect, then snapshot again)
playwright-cli snapshot
playwright-cli screenshot --filename=sidebar.png       # capture sidebar with theme
playwright-cli click "getByRole('link', { name: '<first report name>' })"
playwright-cli eval "document.querySelector('iframe')?.src"  # confirm embed URL
playwright-cli console                                  # confirm no errors
playwright-cli close

Installation

If playwright-cli is not on PATH:

npx --no-install playwright-cli --version  # check local install
npm install -g @playwright/cli@latest      # install globally

Notes

  • The first run will trigger an AAD redirect. Use a persistent profile (--persistent) to skip sign-in on subsequent runs.
  • The embed iframe loads https://app.powerbi.com/reportEmbed?... — the user must already be a viewer of the workspace.
  • Use playwright-cli network to watch network activity if reports fail to load.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.