Expected data to have a content type of 'text/html' but was Expected binary contents to have content type 'text/html' but detected contents was 'text/plain'
The updated one will be:
Failed to match data to have a content type of 'text/html': Expected binary contents to have content type 'text/html' but detected contents was 'text/plain'
The old error message is a little bit confusing:
Expected data to have a content type of 'text/html' but was Expected binary contents to have content type 'text/html' but detected contents was 'text/plain'
The updated one will be:
Failed to match data to have a content type of 'text/html': Expected binary contents to have content type 'text/html' but detected contents was 'text/plain'