Selenium screenshots in VSTS (Azure DevOps)
This is a known issue and Microsoft says it is fixed but pending release in a future update: Azure DevOps build test results missing attachments from tests
The work-around in the response notes says to use the option to Rerun failed tests.