Skip to content

Commit 970a4e1

Browse files
committed
[e2e magazine] Try a fix for post tests
By normalizing line endings before checking multiline content
1 parent 72e7462 commit 970a4e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/e2e-tests/magazine/post.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ test('E2E Magazine - Post Pages', async t => {
7373

7474
if (post.content) {
7575
t.ok(
76-
postHtml.includes(post.content),
76+
postHtml.replace(/\r\n/g, '\n').includes(post.content),
7777
`${post.permalink} contains post content`
7878
)
7979
}

0 commit comments

Comments
 (0)