After many years with Moodle, I recommend to have a second "Student user" for creating and testing courses. And I can recommend to use two browser (not only browser windows) at the same time.
I use Firefox for the teacher role login, and Firefox private (incognito) Window for the student role login.
I use Firefox for the teacher role login, and Firefox private (incognito) Window for the student role login.