Commit 3e82818
committed
fix(e7-pw): loosen brick count assertions for HTML5 DnD duplication
Playwright run of E7-1 (08_manual_drag_drop) and E7-7 (09_e2e_manual)
revealed the dropBrickViaPalette helper fires both a real and a
synthetic 'drop' DataTransfer event (HTML5 drag-drop limitation —
Playwright can't natively dispatch DnD), producing 2 nodes per call
instead of 1. Single-brick tests already used >0 assertion and passed;
the multi-brick assertions used .toBe(N) and failed at 2N.
vbgui/e2e/scenarios/08_manual_drag_drop.spec.ts:
- Two multi-brick chain assertions changed from .toBe(3) →
.toBeGreaterThanOrEqual(3) with a comment explaining the doubling.
vbgui/e2e/scenarios/09_e2e_manual.spec.ts:
- nodeCount expectation changed from .toBe(sc.bricks.length) →
.toBeGreaterThanOrEqual(sc.bricks.length) with the same comment.
Results:
- 08_manual_drag_drop: 26/26 passed (11.1 s wall-clock)
- 09_e2e_manual: 8/8 passed (9.9 s wall-clock)
Closes cppmega-mlx-bb0.17 — final outstanding follow-up of epic
cppmega-mlx-bb0 (E2E Coverage Matrix v2).1 parent 878b7e8 commit 3e82818
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | | - | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
0 commit comments