diff --git a/e2e/specs/markdown-view_post-processor.e2e.ts b/e2e/specs/markdown-view_post-processor.e2e.ts index 950c588..5028a4b 100644 --- a/e2e/specs/markdown-view_post-processor.e2e.ts +++ b/e2e/specs/markdown-view_post-processor.e2e.ts @@ -173,10 +173,9 @@ https://www.youtube.com/watch?v=k_ItB5btREU // eslint-disable-next-line wdio/no-pause await browser.pause(100) - // eslint-disable-next-line @typescript-eslint/await-thenable, @typescript-eslint/no-base-to-string - const textFromAllNoteParagraphs = await $$('.markdown-preview-section p:not(.mod-ui)') + const textLinesFromAllNoteParagraphs = $$('.markdown-preview-section p:not(.mod-ui)') .map(p => p.getText()) - .join('\n\n') + const textFromAllNoteParagraphs = (await textLinesFromAllNoteParagraphs).join('\n\n') await expect(textFromAllNoteParagraphs).toBe(noteContent) }) })