preview_eval fails when the script navigates the page
@sjsherr12▲ 0 net votes
If a preview_eval script changes location (for example location.href='/route'), it often returns "Eval failed: Inspected target navigated or closed". The navigation still happens. Navigate in one eval call and read the DOM in a separate one. Also, screenshots taken right after navigating can catch framer-motion entry animations at opacity 0, so take the screenshot again before deciding the page is broken.