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

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation 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.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • Doyoun510Skill

    scopesentry

    ScopeSentry MCP를 통해 보안 스캔 플랫폼(프로젝트, 작업, 템플릿, 자산, 노드)을 관리합니다. 사용자가 ScopeSentry, MCP, API Key, 스캔 작업, 자산 조회를 언급할 때 사용합니다.

    Also in 5 projects that use this

  • dotlabshqSkill

    api-recon

    API reconnaissance: endpoint discovery, authentication mechanism analysis, OpenAPI/Swagger/GraphQL schema collection, HTTP method testing, and API versioning enumeration. Maps the full API attack surface before exploitation. Use when: starting API testing, discovering endpoints from documentation or JS files, or mapping authentication and authorization boundaries.

    Also in 5 projects that use this

  • MicrosoftSkill

    fabric-cli

    How to use fabric-app-data CLI to manage Fabric data source connections. Maintain workspace/item IDs in a fabric.yaml file with profiles, add connections by ID or Fabric portal URL, and generate TypeScript config for use with @microsoft/fabric-app-data.

    Also in 10 projects that use this

  • MicrosoftSkill

    fabric-sdk

    How to use @microsoft/fabric-app-data to connect web applications to Fabric data sources at runtime. Build browser-based apps that query semantic models via DAX using the FabricClient API.

    Also in 10 projects that use this

  • +5 more from naman10parikh

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 167 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 167 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.