{"action":"created","issue":{"url":"https://api.github.com/repos/allure-framework/allure-js-commons/issues/6","labels_url":"https://api.github.com/repos/allure-framework/allure-js-commons/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/allure-framework/allure-js-commons/issues/6/comments","events_url":"https://api.github.com/repos/allure-framework/allure-js-commons/issues/6/events","html_url":"https://github.com/allure-framework/allure-js-commons/issues/6","id":104836112,"number":6,"title":"Approach to nested step in async tests","user":{"login":"ctapobep","id":702510,"avatar_url":"https://avatars.githubusercontent.com/u/702510?v=3","gravatar_id":"","url":"https://api.github.com/users/ctapobep","html_url":"https://github.com/ctapobep","followers_url":"https://api.github.com/users/ctapobep/followers","following_url":"https://api.github.com/users/ctapobep/following{/other_user}","gists_url":"https://api.github.com/users/ctapobep/gists{/gist_id}","starred_url":"https://api.github.com/users/ctapobep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctapobep/subscriptions","organizations_url":"https://api.github.com/users/ctapobep/orgs","repos_url":"https://api.github.com/users/ctapobep/repos","events_url":"https://api.github.com/users/ctapobep/events{/privacy}","received_events_url":"https://api.github.com/users/ctapobep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-04T06:14:00Z","updated_at":"2015-09-15T14:41:02Z","closed_at":"2015-09-15T14:19:52Z","body":"Currently it's impossible to nest steps in a lot of cases when async tests are used. Consider this Protractor code that uses Promises: \r\n```javascript\r\nallure.createStep('Outer step', function() {\r\n  element.click().then(function () {\r\n    allure.createStep('Step inside of promise', function () {})();\r\n  });\r\n})();\r\n```\r\nWhile the code is nested, it's actually executed in Control Flow of WebdriverJS and therefore zeroes out all the nestiness. \r\n\r\nBecause this is a usual thing in WebdriverJS I'd think on general approach to address this."},"comment":{"url":"https://api.github.com/repos/allure-framework/allure-js-commons/issues/comments/140415732","html_url":"https://github.com/allure-framework/allure-js-commons/issues/6#issuecomment-140415732","issue_url":"https://api.github.com/repos/allure-framework/allure-js-commons/issues/6","id":140415732,"user":{"login":"just-boris","id":812240,"avatar_url":"https://avatars.githubusercontent.com/u/812240?v=3","gravatar_id":"","url":"https://api.github.com/users/just-boris","html_url":"https://github.com/just-boris","followers_url":"https://api.github.com/users/just-boris/followers","following_url":"https://api.github.com/users/just-boris/following{/other_user}","gists_url":"https://api.github.com/users/just-boris/gists{/gist_id}","starred_url":"https://api.github.com/users/just-boris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/just-boris/subscriptions","organizations_url":"https://api.github.com/users/just-boris/orgs","repos_url":"https://api.github.com/users/just-boris/repos","events_url":"https://api.github.com/users/just-boris/events{/privacy}","received_events_url":"https://api.github.com/users/just-boris/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T14:41:02Z","updated_at":"2015-09-15T14:41:02Z","body":"Released as `1.1.0`. If you want to use this, you should install it aside with reporter. In package.json\r\n```\r\n{\r\n  \"dependencies\": {\r\n    \"jasmine-allure-reporter\": \"~0.2.0\"\r\n    \"allure-js-commons\": \"~1.1.0\"\r\n  }\r\n}\r\n```\r\nIf you omit explicit `allure-js-commons` dependency, you will get version derived from `jasmine-allure-reporter`. Once you will test compatibility, please bump version declaration in jasmine-adapter dependency too."}}