Skip to content

Commit de617f1

Browse files
committed
test: fix tests to respect native html format
1 parent 42c8f57 commit de617f1

12 files changed

Lines changed: 6 additions & 9 deletions
101 Bytes
Loading
-2.33 KB
Loading
162 Bytes
Loading
-2.45 KB
Loading
-2.33 KB
Loading
-2.33 KB
Loading
-875 Bytes
Loading
-82 Bytes
Loading
-790 Bytes
Loading

.playwright/tests/ellipsizeVisual.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,19 @@ const SHARED_CASES: EllipsizeCase[] = [
112112
{
113113
name: 'some text between empty paragraphs',
114114
slug: 'between-empty-paragraphs',
115-
html: `<html><p></p><p>between empty paragraphs</p><p></p></html>`,
115+
html: `<html><br><p>between empty paragraphs</p><br></html>`,
116116
numberOfLines: 2,
117117
},
118118
{
119119
name: 'some text between multiple empty lines',
120120
slug: 'between-multiple-empty-lines',
121-
html: `<html><p></p><p></p><p>between empty paragraphs</p><p></p></html>`,
121+
html: `<html><br><br><p>between empty paragraphs</p><br></html>`,
122122
numberOfLines: 2,
123123
},
124124
{
125125
name: 'some empty paragraphs in the middle',
126126
slug: 'empty-in-the-middle',
127-
html: `<html><p>first line</p><p></p><p></p><p></p><p>last line</p></html>`,
127+
html: `<html><p>first line</p><br><br><br><p>last line</p></html>`,
128128
numberOfLines: 2,
129129
},
130130
{

0 commit comments

Comments
 (0)