Commit 0474fee
test(ui): fix DependsOnHarmoniaIT caption assertion - master IT failure (#6388)
The test asserted exactly one <span> containing 'Orders' as the create-form
caption. Since the fixture entity is named 'Orders', its derived entityLabel
(the form caption) equals its menuLabel (the list toolbar title), and #6361
unified both to caption <span>s - so the label legitimately renders in two
places and the ExistsByTypeAndContainsText finder (which rejects >1 match)
fails with 'Found [2] ... expected at most one'. (#6372 surfaced it by
lowercasing the form caption to match the list title's 'Orders'.)
The assertion's real intent is that the generator DERIVED the label rather
than leaking the literal ${ENTITYLABEL}; assert that placeholder is ABSENT
instead - count-immune, and the form rendering + label resolution stay proven
by the Country/City depends-on assertions that follow.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent d0ed5f1 commit 0474fee
1 file changed
Lines changed: 10 additions & 5 deletions
File tree
- tests/tests-integrations/src/main/java/org/eclipse/dirigible/integration/tests/ui/tests
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
0 commit comments