We are on different versions, I’m still on whatever the maximum of 0.14 was. I don’t know if it matters, but since you are seeing a flashing cursor the difference I was worried about isn’t the issue!
For me, Templater’s processing kicks in twice, once automatically from the “Capture”, which removes the tp.file.cursor(1) nonsense and puts the cursor there, and then the second time after the two second wait when it’s explicitly invoked. I think I remember reading in the QuickAdd documentation about the automatic invoke during capture (though it cannot find the frontmatter then - I tested that earlier - due to the timing issue you identified). I’ll check at some point and edit this post.
Diversion - what does tp.file.cursor do?
I agree that the documentation for tp.file.cursor does not make much sense, but I have done a little experimenting and using it once it simply moves the cursor to the spot where the command was, just like you clicked right there. I use it in my daily notes template to put my cursor after the frontmatter and first heading; it saves me a click the first time I open the file.
The way I imagine people using the “order” argument is like those forms where you can jump to the next field by hitting the “Tab” key: if you put tp.cursor(1) tp.cursor(2) etc. on different lines of the file, you can jump to those lines sequentially by invoking the “Templater: Jump to next cursor location” command or hotkey. However, they disappear once used, so you can’t go back to the previous spot or anything flexible like that.
Back to solving your question:
More work-around for this macro, adding before your current step 2: a new step 2 with another delay (this one can be shorter, I think) and then a new step 3 another Obsidian Command “Templater: Jump to Next Cursor location” (or equivalently, “Templater: Replace templates in active file” since this is the only one there at the moment). That really should move the cursor and remove the tp.file.cursor(1) text!! If it doesn’t, I think we might need help from someone who understands the 0.15 changes.
Then after this new stuff will be your 2sec wait (currently step 2, will be step 4) where you should be able to see the cursor correctly at the bottom of the file, and last the template insert (currently step 3, will be step 5). I really hope this works…