Details
Description
Problem Statement:
When the RegexStoryParser parses out a scenario, it attempts to remove the title from the step to get the scenario without title, but the function doesn't account for Scenario:\n before the title. I don't think this will affect anything, and I don't think anything was broken initally, I just noticed as debugging that it didn't strip out the actual title because of the Scenario keyword, newline, and space before it.
Actual Code:
RegexStoryParser line 151:
String scenarioWithoutTitle = removeStart(scenarioAsText, title);
Recommended Fix:
String scenarioWithoutTitle = removeStart(scenarioAsText, keywords.scenario() + "\n " + title);
Where "\n " can be replaced with whatever new line character is being used plus the space.
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] | |
Fix Version/s | 3.6.7 [ 18494 ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Mauro Talevi
made changes -
Fix Version/s | 3.7 [ 18390 ] |