In Playwright, if you want to customize the error message when an expect assertion fails, you can use the message option available in many of the exp