CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

within() block does not end properly

Open fabioel opened this issue 10 years ago • 0 comments

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)

fabioel avatar Mar 14 '16 14:03 fabioel