Use grammatically correct French Gherkin keyword "Étant donné que"
Update all 26 feature files to use proper French grammar with the subordinating conjunction "que" after "Étant donné". Also update the parser to recognize both "Étant donné que " and "Étant donné qu'" (elision before vowels), while maintaining backwards compatibility with the original form. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -140,7 +140,7 @@ function parseGherkinContent(content: string, filePath: string): ParsedFeature |
|
||||
}
|
||||
|
||||
// Parse steps
|
||||
const stepKeywords = ['Étant donné', 'Etant donné', 'Quand', 'Lorsque', 'Alors', 'Et', 'Mais'];
|
||||
const stepKeywords = ['Étant donné que ', "Étant donné qu'", 'Étant donné', 'Etant donné que ', "Etant donné qu'", 'Etant donné', 'Quand', 'Lorsque', 'Alors', 'Et', 'Mais'];
|
||||
for (const keyword of stepKeywords) {
|
||||
if (trimmed.startsWith(keyword)) {
|
||||
const step: ParsedStep = {
|
||||
|
||||
Reference in New Issue
Block a user