diff --git a/tests/src/Forms/Components/RichEditor/RichContentRendererTest.php b/tests/src/Forms/Components/RichEditor/RichContentRendererTest.php index 6b9ebd38cc..ed686d2fef 100644 --- a/tests/src/Forms/Components/RichEditor/RichContentRendererTest.php +++ b/tests/src/Forms/Components/RichEditor/RichContentRendererTest.php @@ -467,7 +467,7 @@ describe('merge tag output', function (): void { ->toBe('
John
'); }); - it('strips `data-id` from the merge tag `` via `toHtml()`', function (): void { + it('preserves `data-id` on the merge tag `` via `toHtml()`', function (): void { $renderer = RichContentRenderer::make([ 'type' => 'doc', 'content' => [ @@ -478,7 +478,7 @@ describe('merge tag output', function (): void { ])->mergeTags(['name' => 'John']); expect($renderer->toHtml()) - ->toBe('John
'); + ->toBe('John
'); }); it('renders only the text value via `toText()` for a string merge tag', function (): void { @@ -554,7 +554,7 @@ describe('merge tag output', function (): void { ])->mergeTags(['name' => 'John']); expect($renderer->toHtml()) - ->toBe('Hello John, welcome!
'); + ->toBe('Hello John, welcome!
'); }); it('renders a string merge tag inline with surrounding text via `toText()`', function (): void { @@ -708,7 +708,7 @@ describe('merge tag output', function (): void { ]); expect($renderer->toHtml()) - ->toBe('Hello Admin
'); + ->toBe('Hello Admin
'); }); it('renders mixed string and `Htmlable` merge tags inline via `toText()`', function (): void { @@ -766,7 +766,7 @@ describe('merge tag output', function (): void { ])->mergeTags(['null_val' => null, 'empty_str' => '']); expect($renderer->toHtml()) - ->toBe('ABCD
'); + ->toBe('ABCD
'); }); it('renders `null`, empty string, and missing merge tags as empty inline content via `toText()`', function (): void { @@ -813,7 +813,7 @@ describe('merge tag output', function (): void { ]); expect($renderer->toHtml()) - ->toBe(''); + ->toBe('
'); }); it('renders an unresolved merge tag as empty text via `toText()`', function (): void { @@ -866,7 +866,7 @@ describe('merge tag output', function (): void { ])->mergeTags(['name' => 'John', 'role' => new HtmlString('admin')]); expect($renderer->toHtml()) - ->toBe('
Hello John
Your role is admin.
'); + ->toBe('Hello John
Your role is admin.
'); }); it('renders merge tags inline within each paragraph, with paragraph separators preserved via `toText()`', function (): void {