webapp-testing

Automate UI testing of local and preview web applications with Playwright.

2|Updated Sep 13, 2025
One-click install
npx skills add https://github.com/s977043/river-reviewer --skill webapp-testing-s977043
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webapp-testing
Source: https://github.com/s977043/river-reviewer/tree/main/skills/agent-skills/webapp-testing
Command: npx skills add https://github.com/s977043/river-reviewer --skill webapp-testing-s977043

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates end-to-end UI testing for web applications to catch functional and UX issues early in local, preview, or CI environments.

Core Features & Use Cases

  • Test setup guide: initialize Playwright and configure baseURL.
  • Stable selectors: use getByRole/getByTestId to avoid brittle tests.
  • Quick Start: create a basic login test that navigates to the dashboard.

Quick Start

Initialize a Playwright project, configure baseURL, and write a simple login test that asserts a redirect to the dashboard.

Frequently Asked Questions about webapp-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up end-to-end UI testing with Playwright?

End-to-end UI testing with Playwright automates browser interactions to verify web application functionality. Initialize Playwright in your Node.js project, configure baseURL to point to your application, set testDir for test files, and write tests using Playwright's locator methods like getByRole and getByTestId to interact with UI elements and assert expected behavior.

Can I use Playwright for smoke and regression testing?

Yes, Playwright supports smoke and regression testing by automating UI workflows to detect functional issues. Use stable selectors, explicit waits for page load, and assertions to verify critical user flows remain unbroken across application changes.

What makes a Playwright selector brittle, and how do I avoid it?

Brittle selectors break when UI elements change, causing flaky tests. Avoid this by using getByRole and getByTestId instead of fragile CSS or XPath selectors; these methods target semantic HTML and explicit test identifiers that persist through styling updates.

How do I capture traces and screenshots during Playwright tests?

Playwright test capture provides traces and screenshots for debugging failed tests. Enable tracing and screenshot capture in your test configuration to record browser state, network activity, and visual output, then review them to diagnose failures in local, preview, or CI environments.

Can Playwright mock routes for UI testing?

Yes, Playwright supports route mocking to intercept and modify network requests during tests. Mock API responses to test UI behavior without depending on backend services, enabling fast, reliable tests for error states, loading states, and data-driven scenarios.

Do I need environment variables to store credentials in Playwright tests?

Yes, store login credentials and sensitive data in environment variables rather than hardcoding them in test files. This keeps secrets out of your codebase and allows tests to run securely across local, preview, and CI environments with different credential sets.