Skip to content

within() block does not end properly #79

@fabioel

Description

@fabioel

There is an issue with the within() block

Although I end the within block after executing one function, the test runner still sees the within as active.

Here an example:

within(resourcesPage.resourcesList.tileItem.firstTile.css, () => {
      I.click(resourcesPage.resourcesList.tileItem.editBtn.css);
    });
    I.waitForVisible(resourcesPage.newResourceWidget.main, 5);
    I.fillField(resourcesPage.newResourceWidget.resourceInput, 'New-Name');

and then the output:

  15) Within #resources >:nth-child(1): I.fillField({"css":"#resource_name"}, "New-Name")
  14) Within #resources >:nth-child(1): I.waitForVisible({"css":".fancybox-opened"}, 5)
  13) Within #resources >:nth-child(1): I.click(".tile-list-item-actions a[title="Edit"]")

It should only be within in the line 13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions