Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ test('tracked replace via document-api', async ({ superdoc }) => {
assertMutationSucceeded('replaceText', receipt);
await superdoc.waitForStable();

await expect.poll(() => getDocumentText(superdoc.page)).toContain('new fancy');
// word-diff (PR #2817) fragments multi-word tracked replacements into per-word
// insert/delete pairs, so "new fancy" appears as two separate inserts around
// the surviving space token. Assert both inserted words are present rather
// than a contiguous substring, which was the pre-word-diff assumption.
await expect.poll(() => getDocumentText(superdoc.page)).toContain('new');
await expect.poll(() => getDocumentText(superdoc.page)).toContain('fancy');
await assertTrackChangeTypeCount(superdoc, 'insert');

await superdoc.snapshot('programmatic-tc-replaced');
Expand Down
Loading