| 1 | # Offline page creation |
| 2 | |
| 3 | Twelve independent replicas start from the same one-page section. Each queues |
| 4 | a page titled `Same 🦋 é`, a body outline and a dependent body-text edit, then |
| 5 | reopens its cache and synchronizes. All 36 receipts complete; page identities |
| 6 | remain distinct and body text identifies each originating replica. |
| 7 | |
| 8 | `candidate/pages.one` is the resulting 13-page section. `cold` captures its fresh |
| 9 | OneNote 2010 reopen. Native XML content/order and 216 explicit character-format |
| 10 | comparisons pass. Active graphs compare exactly apart from the original seed |
| 11 | page's previously absent section metadata copy, materialized natively with exact |
| 12 | page metadata. The creation verifier checks that specific addition. |
| 13 | `provenance.json` records the capture and removal of clone m6-cc15a5ee. |
| 14 | |
| 15 | Set `ONESTORE_OFFLINE_PAGE_OUTPUT` to an absolute, new output directory and run |
| 16 | `cargo test -p onestore-offline --all-features --test sync |
| 17 | page::offline_page_creation_rebases_with_dependent_edits_and_duplicate_titles |
| 18 | -- --exact`. Capture the result with `tools/native_runner.py INPUT OUTPUT |
| 19 | --expected-pages 13 --collect-notebook`. After building examples, |
| 20 | `python -m unittest discover -s tools -p test_page_creation.py -v` verifies the |
| 21 | retained native capture. |
| 22 | |
| 23 | This fixture is a serial reconciliation of twelve offline branches. The separate |
| 24 | `offline_page` sanitizer target varies interleavings, interruption and reopen |
| 25 | through the shared `tests/support/page_schedule.rs` model. |