Skip to content
Back to skills

Webapp E2e

ASecurity

Create, update or debug Playwright E2E tests for SonarQube Cloud and Server, including shared scenarios, page objects, API setup, samples and CI suite configuration.

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
code-qualityjavascripttypescriptjavanodetestinggitapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add SonarSource/sonarqube-webapp --skill webapp-e2e --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Webapp E2e?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Webapp E2e
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sonarsource-webapp-e2e/badge)](https://www.skillsdirectory.com/skills/sonarsource-webapp-e2e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: webapp-e2e
description: Create, update or debug Playwright E2E tests for SonarQube Cloud and Server, including shared scenarios, page objects, API setup, samples and CI suite configuration.
---

# Webapp E2E testing

Read the shared [coverage and lifecycle policy](../../../.gitar/review/e2e-tests.md).
Choose a crucial core happy path sensitive to UI/backend synchronization; check
existing frontend coverage first. Check `.github/CODEOWNERS` for the domain and
follow the shared policy for missing ownership entries.
Use unit/frontend integration tests for complex combinations and error cases.

## Choose the platform

Read only the relevant platform guidance, plus both when changing shared code:

- **Server** (`private/sq-server-e2e-tests`): [Server workflow](references/server.md).
  Tests own local server distributions; suites select edition and plugins.
- **Cloud** (`private/sq-cloud-e2e-tests`): [Cloud workflow](references/cloud.md).
  Tests target a deployed environment, with saved authentication, dependency
  projects and persistent or per-run resources. Do not apply Server's automatic
  factory cleanup or server-startup assumptions to Cloud.

Find a comparable spec and its page objects before adding capabilities. Keep
runtime commands in the package README, implementation rules in the path-scoped
Gitar review guidelines, and use this skill to choose and validate the workflow.

## Share scenarios between Cloud and Server

Use [`private/e2e-shared-fixtures`](../../../private/e2e-shared-fixtures/README.md)
when the same browser behavior is actually used by both products. Import through
`~e2e-shared/*` from either E2E package:

- `fixtures/` contains product-agnostic page objects.
- `scenarios/` contains reusable scenario bodies accepting a ready Playwright
  `Page` and explicit data such as a project key. Each platform's spec invokes
  the same body after its own setup.
- `utils/` contains browser helpers; `resources/` contains shared sample projects.

The [architecture scenario](../../../private/e2e-shared-fixtures/scenarios/architecture-scenarios.ts)
and its [Cloud spec](../../../private/sq-cloud-e2e-tests/tests/app/app-architecture-smoke.spec.ts)
and [Server spec](../../../private/sq-server-e2e-tests/tests/architecture/architecture-smoke.spec.ts)
show this split. Keep API clients, authentication, test fixtures, scanner/server
lifecycle and product-specific selectors in the owning package. Shared code may
import only `@playwright/test` and Node built-ins. Move code only when a second
product actually uses it; do not force divergent journeys into one scenario.

## Check the code

Format edited files immediately and run targeted `lint-files` for changed
JavaScript/TypeScript. Run the affected E2E package's `ts-check` and its app's
`sq-server:ts-check` or `sq-cloud:ts-check`. Shared code also needs
`e2e-shared-fixtures:ts-check` and both E2E package checks.
These are static checks; they do not run the browser scenario.

## Run and fix the scenario

Use the platform's own loop:

- [Server loop](references/server.md#validation-loop): build/start a local Server,
  run the affected scenarios, fix failures and rerun. Parallel CI can handle the
  broader suite regression.
- [Cloud loop](references/cloud.md#validation-loop): select a deployed dev
  environment, ensure it contains the product changes under test, then run
  Playwright against it and iterate on test failures. When product fixes are in
  scope, validate against a deployment containing them. Running Playwright locally
  does not start a local Cloud backend.

For shared scenarios, run their callers on both products using these respective
loops. Use reports/traces to diagnose failures and confirm cleanup. `--list` only
checks discovery. Report what actually ran, which code/environment it exercised,
and any blockers. When asked to monitor a PR, keep following its latest head's
CI and review feedback after fixes.

Files in this skill

  • SKILL.md3.9 KB
  • references/cloud.md5.5 KB
  • references/server.md3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.