Anonymous user, homepage, paths, history, URL assertions. The entry kit every scenario needs.
Step phrasings in this group
The book sidebar lists each individual step page under this group.
Given I am an anonymous userClear cookies and navigate to the launch URL as an anonymous visitor.
Given I am on homepageOpen the homepage.
Given I am on "/about-us.html"Open a specific page under the launch URL.
When I go to homepageNavigate to the homepage.
When I go to "/contact-us.html"Navigate to a specific page.
When I move forward one pageMoves forward one page in browser history.
When I move backward one pageMoves backward one page in browser history.
When I reloadReloads the current page.
Then I should be on homepageAssert that the current page is or is not the homepage.
Then I should be on "/"Assert that the current path is or is not equal to the specified path.
Then the url should match "/contact-us.html"Assert that the current URL matches or does not match a regex pattern.