This step navigates to the homepage during the action phase of a scenario. It is identical in behaviour to the Given I am on homepage step but is used as a When or And keyword to describe an action the user takes mid-scenario. The step loads the root launch URL, waits for the body to attach, and then waits for the page to settle.
Both homepage and frontpage are accepted. The pronoun prefix (I go, I navigate, we go, we navigate, navigating, or none) and the optional article the are interchangeable and have no effect on the navigation target.
Accepted phrasings
When I go to homepage
When I go to the homepage
When I navigate to the homepage
When navigating to the homepage
When navigating to homepage
When navigating to the frontpage
When we go to the homepage
When we navigate to the homepage
Examples
When I go to homepage
When I navigate to the homepage
When navigating to the frontpage
When we go to the homepage
In a real scenario
Scenario: The sticky header is enabled by default on the homepage
Given I am an anonymous user
When I go to the homepage
And wait
Then I see visible site header
And the "site header" should be sticky