I'm completely new to protractor, and I've been setting up the browser.get(URL) command within my first 'it' statement. Then, in my afterEach
statement, I navigate back to the homepage.
I'm curious if there is a more efficient place to put the browser.get statement to improve the modularity of my tests. I experimented with placing it in a beforeEach statement, but I don't want a new browser to open for every single test I run. Are there better locations for these pre-condition tasks?
If anyone has any tips for a beginner like me, please feel free to share them. I welcome any advice!