VS
\nWhen I visit :content_type content page with title :title\n
I maintain a library of Behat steps and currently is in the process of formalising the \"language\".
\nI would really appreciate some direction please.
\nThank you
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"@AlexSkrypnyk that's a good question...
\nI think it slightly depends on the domain? I think these mean different things:
\nSo personally I would probably want to be explicit about that. But whether to use a
or the
depends on the step, for example (thinking quickly):
Given no existing pages\nAnd \"Brian\" creates a page with:\n | title | Widgets |\nWhen I visit the page with the title \"Widgets\"\nThen I should see that Brian authored the page
I also think if the goal is \"natural language\" specifications then the article is usually necessary to make the sentence read correctly?
","upvoteCount":1,"url":"https://github.com/Behat/Behat/discussions/1621#discussioncomment-12838799"}}}-
What is the recommended language to use in the step definitions when it comes to articles Example:
VS
I maintain a library of Behat steps and currently is in the process of formalising the "language". I would really appreciate some direction please. Thank you |
Beta Was this translation helpful? Give feedback.
-
@AlexSkrypnyk that's a good question... I think it slightly depends on the domain? I think these mean different things:
So personally I would probably want to be explicit about that. But whether to use Given no existing pages
And "Brian" creates a page with:
| title | Widgets |
When I visit the page with the title "Widgets"
Then I should see that Brian authored the page I also think if the goal is "natural language" specifications then the article is usually necessary to make the sentence read correctly? |
Beta Was this translation helpful? Give feedback.
-
@AlexSkrypnyk I'd be interested to hear other people's opinions, but I'm going to convert this to a discussion to keep the issues list tidy. |
Beta Was this translation helpful? Give feedback.
@AlexSkrypnyk that's a good question...
I think it slightly depends on the domain? I think these mean different things:
So personally I would probably want to be explicit about that. But whether to use
a
orthe
depends on the step, for example (thinking quickly):