The string "<a href="[sitetree_link,id=3]#youranchor"><img src="file1.jpg" alt=""></a>" should be found in the HTML of the element matching name "Content". Actual content: "<p><a href="[sitetree_link,id=3]#youranchor"><img src="file1.jpg"></a></p>"
Note the missing alt attribute in the actual content. This is because the extended_valid_elements and valid_elements config both had img with different allowed attributes, which caused problems. I've moved that all to be in valid_elements now.
Fixes https://github.com/silverstripe/recipe-kitchen-sink/actions/runs/10033713755/job/27727409397 and https://github.com/silverstripe/recipe-kitchen-sink/actions/runs/10033713755/job/27727409547 which are variations of
Note the missing
alt
attribute in the actual content. This is because theextended_valid_elements
andvalid_elements
config both hadimg
with different allowed attributes, which caused problems. I've moved that all to be invalid_elements
now.Issue