"Here's a massive bunch of AI generated code. LGTM. Let me know if there are any problems"
Tests is just one part of QA. Code review is another.
You ask the AI to fix it and hope, or you start again from scratch - which if an AI is making the code, might be just fine.
But I think you still need a type of task AI can do well - something which lends itself to auto-complete.
"Here's a massive bunch of AI generated code. LGTM. Let me know if there are any problems"