This step opens the homepage by navigating to the configured launch URL. It is used in a Given context to establish the starting point of a scenario. After navigation, the step waits for the body element to be attached to the DOM and then waits for the page load to settle before handing control to the next step.
The keyword homepage and frontpage are interchangeable. The pronoun prefix (I am, we are, or none) is optional and does not change the behaviour. The URL navigated to is always the root launch URL defined in your webship-js configuration, not a specific path.
Accepted phrasings
Given I am on homepage
Given I am on the homepage
Given I am on frontpage
Given I am on the frontpage
Given we are on homepage
Given we are on the frontpage
Given on homepage
Given on the homepage
Given on frontpage
Given on the frontpage
Examples
Given I am on homepage
Given I am on the frontpage
Given we are on homepage
Given on the homepage
In a real scenario
Scenario: The default theme renders its main landmarks on the homepage
Given I am an anonymous user
When I go to the homepage
And wait
Then I see visible site header
And I see visible main nav
And I see visible main content
And I see visible footer