There's a VS Code extension that records the steps you took and creates the test for you. But more often than not, you would have to make some changes too.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments