Closed agus24 closed 1 year ago
You should escape the HTML when using assertSeeHtml
, that would fix this. Unfortunately names like these are valid and your tests should probably keep them in mind ;)
From what I see in the Livewire code, the assertSee
has an option to automatically escape text :)
Summary
i did some test using laravel with faker. but sometimes it generates name like
Ambrose O'Conner
then i assert html has that name but the html generated like thisAmbrose O'Conner
is there a way to remove special character in name? or other way to resolve this issue?Versions
fakerphp/faker
Self-enclosed code snippet for reproduction
Expected output
Actual output