Commit 2cb27a2
Refine IsMain publication tests and validation after review
Consolidate the get-or-create main-publication helper onto MiniLcmTestBase
(shared by the publication and create-entry conformance tests, reusing the
project's existing main rather than minting a second). Make the REST route's
CreateEntryOptions defaults explicit via ToOptions(defaults), extract
CreatePublicationChange.MainAlreadyExists, and make DoesNotChangePropertyTo
generic over the forbidden value's type.
Drop the dry-run PublicationSyncTests: the collection-level promotion it
guarded was removed when IsMain moved into standard per-publication diffing,
so the failure mode it covered is structurally gone.
Fix entry-api-helper to inline the create-entry options inside page.evaluate
— module imports are closure variables that don't cross the Playwright
serialization boundary, so referencing the shared helper there throws.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ac9611f commit 2cb27a2
14 files changed
Lines changed: 42 additions & 945 deletions
File tree
- backend/FwLite
- FwDataMiniLcmBridge.Tests/MiniLcmTests
- FwLiteProjectSync.Tests
- FwLiteProjectSync
- FwLiteWeb/Routes
- LcmCrdt.Tests/Data
- LcmCrdt
- Changes
- MiniLcm.Tests
- MiniLcm/Validators
Lines changed: 0 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
4 | | - | |
5 | 2 | | |
6 | 3 | | |
7 | 4 | | |
| |||
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
204 | 201 | | |
205 | 202 | | |
206 | 203 | | |
| |||
0 commit comments