Well theoretically you can also do E2E testing where an AI agent also clicks around a user-interface and takes screenshots, which are then fed back into it.
That's just another type of test, the question was who's going to check that the tests are actually testing the correct things. Maybe look up the Therac-25 that was mentioned.