{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/118","labels_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/118/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/118/events","html_url":"https://github.com/pytest-dev/pytest-bdd/issues/118","id":85368534,"number":118,"title":"Allowing when steps to follow then steps?","user":{"login":"lrowe","id":290859,"avatar_url":"https://avatars.githubusercontent.com/u/290859?v=3","gravatar_id":"","url":"https://api.github.com/users/lrowe","html_url":"https://github.com/lrowe","followers_url":"https://api.github.com/users/lrowe/followers","following_url":"https://api.github.com/users/lrowe/following{/other_user}","gists_url":"https://api.github.com/users/lrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/lrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrowe/subscriptions","organizations_url":"https://api.github.com/users/lrowe/orgs","repos_url":"https://api.github.com/users/lrowe/repos","events_url":"https://api.github.com/users/lrowe/events{/privacy}","received_events_url":"https://api.github.com/users/lrowe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-05T01:43:08Z","updated_at":"2015-06-16T11:21:05Z","closed_at":"2015-06-16T10:55:57Z","body":"While it is generally good practice to order steps Given/When/Then it can sometimes be expedient to check conditions part way through a complex scenario (e.g. a multi-page form.)\r\n\r\nI think the ordering checks in [feature.py](https://github.com/pytest-dev/pytest-bdd/blob/2.10.0/pytest_bdd/feature.py#L222) should be relaxed.\r\n\r\nCucumber [doesn't distinguish between step types](https://github.com/cucumber/cucumber/wiki/Given-When-Then) internally and does not enforce ordering. With behave one can register for all keywords using the ``step()`` decorator and ordering is not enforced.\r\n"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/comments/112388972","html_url":"https://github.com/pytest-dev/pytest-bdd/issues/118#issuecomment-112388972","issue_url":"https://api.github.com/repos/pytest-dev/pytest-bdd/issues/118","id":112388972,"user":{"login":"bubenkoff","id":427136,"avatar_url":"https://avatars.githubusercontent.com/u/427136?v=3","gravatar_id":"","url":"https://api.github.com/users/bubenkoff","html_url":"https://github.com/bubenkoff","followers_url":"https://api.github.com/users/bubenkoff/followers","following_url":"https://api.github.com/users/bubenkoff/following{/other_user}","gists_url":"https://api.github.com/users/bubenkoff/gists{/gist_id}","starred_url":"https://api.github.com/users/bubenkoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bubenkoff/subscriptions","organizations_url":"https://api.github.com/users/bubenkoff/orgs","repos_url":"https://api.github.com/users/bubenkoff/repos","events_url":"https://api.github.com/users/bubenkoff/events{/privacy}","received_events_url":"https://api.github.com/users/bubenkoff/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T11:21:05Z","updated_at":"2015-06-16T11:21:05Z","body":"2.12.0 is out"}}