DEV: Add tests for create-invite modal (PR #12535)

GitHub

Can we make this a class instead? I worry that #show-advanced is too global an id otherwise and might conflict with some other HTML. Additionally you could name it #invite-show-advanced

Very nice to see more tests.