Refactor E2E Tests

Refactor E2E tests using shared factories to standardize module-level patterns.

4|1|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/gmedia/erp --skill refactor-e2e-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Refactor E2E Tests
Source: https://github.com/gmedia/erp/tree/main/.agent/skills/refactor-e2e
Command: npx skills add https://github.com/gmedia/erp --skill refactor-e2e-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Panduan ini membantu tim refactor E2E tests per modul dengan menggunakan shared test factories, sehingga perubahan satu modul tidak melanggar pola pengujian secara menyeluruh.

Core Features & Use Cases

  • Identifikasi modul secara konsisten dan terapkan pola shared test factories untuk semua modul.
  • Workflow langkah-demi-langkah untuk refactor frontend/backend agar pengujian tetap konsisten dan terdokumentasi.
  • Gunakan template module helpers, helper shared tests, dan referensi pattern untuk mempercepat pekerjaan.

Quick Start

Mulai refactor E2E modul dengan pola shared factories untuk menjaga konsistensi dan reliabilitas pengujian.

Frequently Asked Questions about Refactor E2E Tests

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

FAQPage Schema
How do I refactor E2E tests using shared factories?

Shared test factories standardize module-level patterns across frontend and backend suites, ensuring changes to one module do not violate overall test patterns. They enforce reusable helpers, consistent action patterns, and reproducible test scaffolding for adding, searching, editing, and deleting operations.

How do I standardize Playwright test automation patterns across different modules?

Standardize Playwright test automation by applying shared test factories and module helpers. This enforces consistent action patterns for adding, searching, editing, viewing, deleting, exporting, and filtering across all modular frontend and backend test suites.

Can I use shared factories to refactor both frontend and backend test suites?

Yes, you can use shared factories to refactor both modular frontend and backend test suites. The approach applies reusable helpers and consistent action patterns across all modules, covering adding, searching, editing, viewing, deleting, exporting, and filtering operations.

What is the best way to prevent one module change from breaking E2E test automation?

The best way to prevent module changes from breaking E2E test automation is implementing shared test factories. This standardizes module-level patterns so modifications to one module maintain overall test reliability and consistency through reusable helpers.

What's included in the shared factory templates for modular testing?

Shared factory templates for modular testing include module helpers, helper shared tests, and reference patterns. These templates accelerate E2E refactoring by providing reproducible test scaffolding and reusable helpers for consistent action patterns across modules.