Commit 1684a97
committed
test(block-editing): share no-reflow e2e helpers across both hosts
Add @quarto/preview-e2e-helpers (ts-packages/) holding the host-agnostic
inline-edit no-reflow assertions, parameterized by a Playwright FrameLocator
so the same logic runs against both hosts that embed @quarto/preview-renderer:
- q2-preview-spa (real q2 preview binary) -> uses assertNoReflowOnActivation
(lean: active-region sizing via #q2-active-edit-region + following-sibling
top, scroll-invariant).
- hub-client (Automerge + Monaco) -> uses measureLayout/expectLayoutStable
(broad: all-blocks + document height) + activateBlock.
Both specs drop their local copies and import from the shared package; the
hub-client zero-reflow tests are behavior-preserving relocations (helpers moved
verbatim), keeping their decoration/left-column checks inline.
Lockfile: regenerated with npm 10 (the version matching the committed
lockfile format) to avoid npm 11.5.1 stripping esbuild optional platform
binaries; the diff is additive only (new workspace + devDeps), esbuild intact.1 parent 673892a commit 1684a97
8 files changed
Lines changed: 252 additions & 149 deletions
File tree
- hub-client
- e2e
- q2-preview-spa
- e2e
- ts-packages/preview-e2e-helpers
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 109 | | |
176 | 110 | | |
177 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments