webapp-testing

Test local web applications with Python Playwright scripts and capture screenshots and browser logs.

1|Updated Mar 22, 2023
One-click install
npx skills add https://github.com/alvIndieDevelop/alvaro-blog-v2 --skill webapp-testing-alvindiedevelop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webapp-testing
Source: https://github.com/alvIndieDevelop/alvaro-blog-v2/tree/main/.kilocode/skills/webapp-testing
Command: npx skills add https://github.com/alvIndieDevelop/alvaro-blog-v2 --skill webapp-testing-alvindiedevelop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of testing local web applications by providing a robust toolkit for interacting with and verifying frontend functionality using Playwright.

Core Features & Use Cases

  • Automated Testing: Write and execute Playwright scripts to test web application behavior.
  • Debugging Support: Capture screenshots and browser logs to aid in identifying and resolving UI issues.
  • Server Management: Includes a helper script to manage the lifecycle of local development servers.
  • Use Case: Automatically test a new feature in your local web app by writing a Playwright script that navigates to the page, interacts with UI elements, and asserts expected outcomes, ensuring the feature works as intended before deployment.

Quick Start

Run python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py to start your local server and run your Playwright automation script.

Frequently Asked Questions about webapp-testing

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

FAQPage Schema
How do I test local web apps with Playwright automatically?

You can test local web apps with Playwright by writing and executing Python automation scripts that interact with UI elements and assert expected outcomes. This Skill provides the necessary toolkit to verify frontend functionality automatically.

Does this Playwright testing toolkit support capturing browser screenshots and logs for debugging?

Yes, this Playwright testing toolkit supports debugging by capturing browser screenshots and viewing browser logs. This helps identify and resolve frontend UI issues during local development.

How do I start a local development server and run Playwright scripts at the same time?

You can manage the local development server lifecycle and run Playwright scripts simultaneously using the included helper script. Execute with_server.py with your server command, port, and automation script to start testing.

Can I use this for frontend web testing if my local server runs on a custom port?

Yes, you can specify your local development server's custom port when running the helper script. This allows the Playwright automation scripts to connect and test your frontend web application on the designated port.

Do I need Python to run Playwright automation scripts for local web testing?

Yes, you need Python to run the Playwright automation scripts provided by this toolkit. The Skill requires Python-based Playwright scripts to execute frontend testing and interact with your local web application.