Handling indentation in Testing Library assertions
One of the most common tasks in tests written with Testing Library is asserting the presence of dynamic text in the document. But what if the text were indented? How can you ensure that both the text and the indentation are correct?