{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/cucumber-js/issues/648","repository_url":"https://api.github.com/repos/cucumber/cucumber-js","labels_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/648/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/648/comments","events_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/648/events","html_url":"https://github.com/cucumber/cucumber-js/issues/648","id":180010331,"node_id":"MDU6SXNzdWUxODAwMTAzMzE=","number":648,"title":"Failed assertions in the loops are marked as successful","user":{"login":"kotvertolet","id":9266437,"node_id":"MDQ6VXNlcjkyNjY0Mzc=","avatar_url":"https://avatars3.githubusercontent.com/u/9266437?v=4","gravatar_id":"","url":"https://api.github.com/users/kotvertolet","html_url":"https://github.com/kotvertolet","followers_url":"https://api.github.com/users/kotvertolet/followers","following_url":"https://api.github.com/users/kotvertolet/following{/other_user}","gists_url":"https://api.github.com/users/kotvertolet/gists{/gist_id}","starred_url":"https://api.github.com/users/kotvertolet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotvertolet/subscriptions","organizations_url":"https://api.github.com/users/kotvertolet/orgs","repos_url":"https://api.github.com/users/kotvertolet/repos","events_url":"https://api.github.com/users/kotvertolet/events{/privacy}","received_events_url":"https://api.github.com/users/kotvertolet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-29T10:24:26Z","updated_at":"2018-10-25T08:15:14Z","closed_at":"2016-11-23T17:27:10Z","author_association":"NONE","body":"I have faced with the problem that assertions placed in the loop doesn't work properly, like in this case:\n\n```\n    this.Then(\"I see the total amount displayed\", function () {\n        transactionSteps.isTotalAmountDisplayed().each((element)=> {\n            element.getText().then((text) => {\n                this.expect(text).to.have.length.of.at.least(1);\n            })\n        })\n    });`\n```\n\n> And the output of this:\n> \n>  Scenario: Displaying transaction summary\n>   ✓ Given I load the loginForm widget\n>   ✓ And I am logged in as an admin with password admin\n>   ✓ When I load the transaction widget\n>   ✓ Then I see the transaction summary with transaction list displayed\n>   ✓ And I see the transaction date displayed\n>   ✓ And I see the transaction name displayed\n>   ✓ **And I see the total amount displayed**\n> \n> 1 scenario (1 passed)\n> 7 steps (7 passed)\n> 0m03.158s\n> [11:39:25] E/launcher - expected '' to have a length at least 1 but got 0\n> [11:39:25] E/launcher - AssertionError: expected '' to have a length at least 1 but got 0\n\nAs you see, scenario looks successful, but actually it's failed\n"},"comment":{"url":"https://api.github.com/repos/cucumber/cucumber-js/issues/comments/432956951","html_url":"https://github.com/cucumber/cucumber-js/issues/648#issuecomment-432956951","issue_url":"https://api.github.com/repos/cucumber/cucumber-js/issues/648","id":432956951,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjk1Njk1MQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-10-25T08:15:14Z","updated_at":"2018-10-25T08:15:14Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.\n"}}
{"actor":{"display_login":"lock"}}