When I log in to the administrator panel as "admin" with password "Admin123456789!"

Fill in and submit the Joomla administrator login form (#form-login) with the given username and password, then wait for the page to settle on either the Dashboard or the login error message.

Examples

When I log in to the administrator panel as "admin" with password "Admin123456789!"
When I log into the administrator panel as "admin" with password "Admin123456789!"
When we log in to the administrator panel as "manager" with password "Manager123456789!"
And I log in to the administrator panel as "admin" with password "wrong-password"
When I log into the administrator panel as "admin" with password "WrongPass1!"

Pattern

When(/^(I |we )*log in(?:to| to) the administrator panel as "([^"]*)?" with password "([^"]*)?"$/, …)

Part of @webship-js/joomla-steps (github.com/webship/joomla-steps), a step pack for Webship-js 2.0.x.