prowler-cloud/prowler/prowler-test-ui
Claude Code and agent skill by prowler-cloud/prowler
- community
Checking that the SKILL.md file is still in the repository.
E2E testing patterns for Prowler UI (Playwright). Trigger: When writing Playwright E2E tests under ui/tests in the Prowler UI (Prowler-specific base page/helpers, tags, flows).
Install
npx vskill@latest install prowler-cloud/prowler/prowler-test-uiSKILL.md
The same SKILL.md was published earlier as prowler-cloud/prowler/prowler-test-ui.
Generic Patterns: For base Playwright patterns (Page Object Model, selectors, helpers), see theplaywrightskill.This skill covers Prowler-specific conventions only.
Prowler UI Test Structure
Playwright Projects (ui/playwright.config.ts)
| Project | Specs | Depends on | |
|---|---|---|---|
admin.auth.setup (+ manage-scans, manage-integrations, manage-account, manage-cloud-providers, unlimited-visibility, invite-and-manage-users) | tests/setups/*.auth.setup.ts | - | |
sign-in-base, auth, invitation-accept, runtime-config | tests/{name}/*.spec.ts | - (unauthenticated) | |
sign-up | sign-up.spec.ts | - | |
scans, providers, invitations | {name}.spec.ts | admin.auth.setup | |
navigation | tests/navigation/*.spec.ts (Pixel 5, 390x844) | admin.auth.setup |
A new test folder needs a new project entry here (and in the test:e2e* scripts in ui/package.json if it should run by default). pnpm run test:e2e runs only auth, sign-up, providers, invitations, scans, runtime-config, navigation; sign-in-base and invitation-accept must be run with --project.
Authenticated suites reuse storage state instead of logging in:
Data-dependent flows use test.describe.serial(...) and the @serial tag; clean up first (e.g. deleteProviderIfExists) and test.skip(!process.env.E2E_..., "...") when required env vars are missing. Credentials and provider identifiers come only from E2E_* env vars (see docs/developer-guide/end2end-testing.mdx).
MANDATORY Checklist (Create or Modify Tests)
⚠️ ALWAYS verify BEFORE completing any E2E task:
When CREATING new tests
- [ ]
{page-name}-page.ts- Page Object created/updated - [ ]
{page-name}.spec.ts- Tests added with correct tags (@TEST-ID) - [ ]
{page-name}.md- Documentation created with ALL test cases - [ ] Test IDs in
.mdmatch tags in.spec.ts
When MODIFYING existing tests
- [ ]
{page-name}.mdMUST be updated if: - Test cases were added/removed
- Test flow changed (steps)
- Preconditions or expected results changed
- Tags or priorities changed
- [ ] Test IDs synchronized between
.mdand.spec.ts
Quick validation
[!IMPORTANT]❌ An E2E change is NOT considered complete without updating the corresponding.mdfile.
MCP Workflow - CRITICAL
⚠️ MANDATORY: If Playwright MCP tools are available, ALWAYS use them BEFORE creating tests.
- Navigate to target page
- Take snapshot to see actual DOM structure
- Interact with forms/elements to verify real flow
- Document actual selectors from snapshots
- Only then write test code
Why: Prevents tests based on assumptions. Real exploration = stable tests.
Wait Strategies (CRITICAL)
⚠️ NEVER use `networkidle` - it causes flaky tests!
| Strategy | Use Case | |
|---|---|---|
❌ networkidle | NEVER - flaky with polling/WebSockets | |
⚠️ load | Only when absolutely necessary | |
✅ expect(element).toBeVisible() | PREFERRED - wait for specific UI state | |
✅ page.waitForURL() | Wait for navigation | |
✅ pageObject.verifyPageLoaded() | BEST - encapsulated verification |
GOOD:
BAD:
Prowler Base Page (ui/tests/base-page.ts)
BasePage is abstract; extend it and reuse its helpers instead of re-implementing them:
| Member | Purpose | |
|---|---|---|
title, loadingIndicator, themeToggle | Shared locators | |
goto(url), gotoFresh(url) (waitUntil: "commit", after clearing cookies), refresh(), goBack() | Navigation | |
skipFirstRunRedirect() | Prevents the empty-tenant redirect to the add-provider wizard | |
verifyElementVisible/NotVisible/Text/ContainsText, verifyPageTitle, verifyNoErrors, verifyKeyboardNavigation, verifyAriaLabels | Verifications | |
waitForElement, waitForElementToDisappear, waitForUrl | Waits (5s default) |
Page Navigation Verification Pattern
⚠️ URL assertions belong in Page Objects, NOT in tests!
When verifying redirects or page navigation, create dedicated methods in the target Page Object:
Naming convention: verifyOn{PageName}Page() for redirect verification methods.
Existing Page Objects (reuse before creating)
| Page object | File | |
|---|---|---|
SignInPage | tests/sign-in-base/sign-in-base-page.ts (also authenticateAndSaveState used by setups) | |
SignUpPage | tests/sign-up/sign-up-page.ts | |
HomePage | tests/home/home-page.ts (signOut, verifyPageLoaded) | |
ProvidersPage | tests/providers/providers-page.ts (provider wizard: clickAddProvider, selectAWSProvider, ...) | |
ScansPage | tests/scans/scans-page.ts (selectProviderByUID, clickStartNowButton, verifyScanLaunched) | |
InvitationsPage, InvitationAcceptPage, NavigationPage, UserProfilePage (profile/), RegistryPage, RuntimeConfigPage | tests/{folder}/{folder}-page.ts |
Test Tags for Prowler
| Category | Tags | |
|---|---|---|
| Priority | @critical, @high (also @medium, @low) | |
| Type | @e2e, @serial (must not run in parallel) | |
| Feature | @providers, @scans, @invitations, @signup, @sign-in-base, @registry, ... | |
| Provider | @aws, @azure, @gcp, @kubernetes, @github, @m365, @oci, @alibabacloud, ... | |
| Test ID | @{SUITE}-E2E-{NNN}: existing suites PROVIDER, SCAN, SIGNUP, SIGN-IN-BASE, INVITATION, INVITE-ACCEPT, AUTH-MW, AUTH-SESSION, AUTH-TOKEN, NAV, REGISTRY, RUNTIME-CONFIG |
Prowler Test Documentation Template
Keep under 60 lines. Focus on flow, preconditions, expected results only.
Commands
Local env overrides are read from ui/.env.local (loaded by playwright.config.ts).
Resources
- Documentation: See references/ for links to local developer guide
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/prowler-test-ui/SKILL.md
Popularity
- Repository stars
- 13,349
- Repository forks
- 2,051
- 7-day trend score
- 47
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/prowler-cloud/prowler/prowler-test-ui)