Commit 19dcde7
docs(e2e): Revise README for dotCMS End-to-End Testing (dotCMS#36602)
This pull request updates the documentation for the dotCMS UI E2E test
suite to clarify project structure, setup, and best practices. The
changes improve onboarding for both human developers and AI agents,
standardize terminology, and provide detailed guidance on data setup,
environment configuration, and when to use E2E vs. unit/integration
tests. The documentation now emphasizes REST API-based test data setup,
project layout, and the preferred workflow for writing and debugging
tests.
**Major documentation improvements:**
*General onboarding and entry points:*
- Updated `README.md` to serve as the canonical entry point for human
developers, with step-by-step local debug flow, CI parity instructions,
and a clear project layout.
- Clarified that `AGENTS.md` is the source of truth for code conventions
and is the primary reference for AI agents, while humans should start at
`README.md`.
[[1]](diffhunk://#diff-321c3ccef76190510309d87100a88a346ae02222eadd2be3c29ce977f44530dcL3-R5)
[[2]](diffhunk://#diff-ff8c2a8737638f98cbda3a44a2446fc3e7e129efe9afe526cb9ccea38434f918L3-R3)
*Test data setup and REST API usage:*
- Standardized the requirement that all test data must be created via
REST API helpers in `src/requests/`, not through the UI, and described
the available helper modules and how to add new ones.
[[1]](diffhunk://#diff-321c3ccef76190510309d87100a88a346ae02222eadd2be3c29ce977f44530dcR51-R66)
[[2]](diffhunk://#diff-d013b2a862cab8f5c8a89abc5657680b0f8f881e854ad0997d64868d36113afcL1-R263)
- Updated documentation to clarify that specs and fixtures should import
from `src/requests/`, with orchestration in `fixtures/` and raw endpoint
calls in `requests/`.
[[1]](diffhunk://#diff-321c3ccef76190510309d87100a88a346ae02222eadd2be3c29ce977f44530dcL12-L33)
[[2]](diffhunk://#diff-321c3ccef76190510309d87100a88a346ae02222eadd2be3c29ce977f44530dcR51-R66)
[[3]](diffhunk://#diff-d013b2a862cab8f5c8a89abc5657680b0f8f881e854ad0997d64868d36113afcL1-R263)
*Environment and workflow:*
- Expanded and clarified environment variable documentation, test run
modes (dev vs. CI), and the full local/CI test lifecycle with commands
and expected behavior.
- Provided a detailed cheat sheet for when to use unit, integration, or
E2E tests, and established rules for test isolation and data cleanup.
*Project structure and conventions:*
- Improved project layout documentation, clarified folder purposes, and
reinforced file naming and locator conventions.
[[1]](diffhunk://#diff-321c3ccef76190510309d87100a88a346ae02222eadd2be3c29ce977f44530dcL12-L33)
[[2]](diffhunk://#diff-d013b2a862cab8f5c8a89abc5657680b0f8f881e854ad0997d64868d36113afcL1-R263)
- Added guidance on how to create new E2E tests, including copying
patterns, using the Page Object Model, and locator priority.
*AI-assisted workflow:*
- Outlined a recommended process for AI-assisted E2E test creation,
including redundancy checks and integration with QA/test planning.
This PR fixes: dotCMS#31718
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 7028ef2 commit 19dcde7
4 files changed
Lines changed: 197 additions & 369 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 21 | | |
35 | 22 | | |
36 | 23 | | |
| |||
41 | 28 | | |
42 | 29 | | |
43 | 30 | | |
44 | | - | |
| 31 | + | |
45 | 32 | | |
46 | 33 | | |
47 | 34 | | |
| |||
61 | 48 | | |
62 | 49 | | |
63 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
0 commit comments