You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> DramaFinder is not on the classpath. Follow the [setup guide](setup.md) to add the required dependencies, then come back to generate tests.
45
+
On confirmation, execute [setup.md](setup.md) end-to-end, then continue with
46
+
Step 2.
31
47
32
48
### DramaFinder found — follow existing patterns
33
49
34
-
If existing `*IT.java` files are found, read one or two of them to understand the project's conventions (base class, package structure, assertion style, helper methods). Use those as the template for generated tests.
50
+
If existing `*IT.java` files are found, read one or two to understand the
If no existing IT tests exist, use the default structure in Step 3.
37
55
56
+
### `SpringPlaywrightIT` location
57
+
58
+
- 1 hit → use that fully-qualified class name.
59
+
- 0 hits + Spring Boot detected → run setup (it will create the file).
60
+
- More than 1 hit → ask the user which one to use.
61
+
38
62
## Step 2 — Map view components to DramaFinder elements
39
63
40
64
Read the target view source provided by the user. Extract:
41
65
42
-
-`@Route("value")` → URL path (default: class name lowercased, stripped of "View" suffix)
66
+
-`@Route("value")` → URL path (default: class name lowercased, stripped of
67
+
`View` suffix, e.g. `PersonView` → `/person`).
43
68
-`@PageTitle("...")` → expected page title
44
-
- All Vaadin component field declarations and `add(...)` calls → map to DramaFinder elements
69
+
- Every interactive component → its DramaFinder wrapper (see table below).
70
+
- Form fields → label text used as locator.
71
+
- Grids → column headers and row content to assert against.
72
+
- Navigation triggers → button labels or menu items that cause route changes.
45
73
46
-
See [element-mapping.md](element-mapping.md) for the full component → element class table. Each element also has detailed documentation with examples in the [specifications folder](https://github.com/parttio/dramafinder/tree/master/docs/specifications).
74
+
See [element-mapping.md](element-mapping.md) for the full component → element
75
+
class table. Each element also has detailed documentation with examples in
76
+
the [specifications folder](https://github.com/parttio/dramafinder/tree/master/docs/specifications).
47
77
48
-
For components with **no DramaFinder wrapper**, use a plain Playwright locator. For more complex needs, you can create your own element class extending `VaadinElement`, or [open an issue](https://github.com/vaadin/dramafinder/issues) in the DramaFinder repository to request one.
78
+
For components with **no DramaFinder wrapper**, use a plain Playwright locator.
79
+
For more complex needs, you can create your own element class extending
80
+
`VaadinElement`,
81
+
or [open an issue](https://github.com/vaadin/dramafinder/issues) in the
82
+
DramaFinder repository to request one.
49
83
50
84
## Step 3 — Generate the test class
51
85
52
86
### Default structure (no existing tests to mirror)
0 commit comments