Personal automation screenshot not working
I've set up a Personal Automation event in the Shortcuts app that triggers a screenshot at a specific time. When I observed my iPhone I saw that when that time arrives, the screen flashed like if a screenshot was taken, but there was no sound (this may be by design) and what's more puzzling, there was no screenshot to be found anywhere in Photos. Is this a bug or am I doing something wrong?
I'm using iPhone SE 2020 and iPad Air 5 and it's the same on both, in iOS 15.7.1 and 16.1.1.
Can somebody try to replicate this?