Skip to content

Show warning on generation when leave out .url attribute for amOnPage #55

Closed
@okolesnyk

Description

@okolesnyk

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

  1. Create test with amOnPage action:
    <amOnPage url="{{AdminLoginPage}}" stepKey="goToAdminLoginPage"/>
  2. Generate tests by running: vendor/bin/robo generate:tests

Expected result

  1. Warning message appears: Can not resolve argument on url attribute for amOnPage action. Step Key: "goToAdminLoginPage".

Actual result

  1. Tests successfully generated and action amOnPage looks like this:
    $I->amOnPage("{{AdminLoginPage}}");

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions