Closed
Description
General summary
We noticed on our team after 2.1.0 release that amOnPage
action previously assumed the .url
attribute from the page, but then after needed to be explicitly included (all our tests failed).
Steps to reproduce
- Create test with
amOnPage
action:
<amOnPage url="{{AdminLoginPage}}" stepKey="goToAdminLoginPage"/>
- Generate tests by running:
vendor/bin/robo generate:tests
Expected result
- Warning message appears:
Can not resolve argument on url attribute for amOnPage action. Step Key: "goToAdminLoginPage".
Actual result
- Tests successfully generated and action
amOnPage
looks like this:
$I->amOnPage("{{AdminLoginPage}}");