I am appending my steps to a given scenario, despite passing step type it is not being rendered in the report:
private static ExtentTest _extentScenario;
....
[AfterStep]
public void AfterStep(ScenarioContext scenarioContext)
{
var stepType = ScenarioStepContext.Current.StepInfo.StepDefinitionType.ToString();
var scenarioStepContext = scenarioContext.StepContext;
_extentScenario.CreateNode(new GherkinKeyword(stepType), scenarioStepContext.StepInfo.Text); //step type has correct value
I am appending my steps to a given scenario, despite passing step type it is not being rendered in the report:
enforcing the step type also doesn't do anything
This is what I get, but I expect to
Given,When,Then,And
to be rendered.and this is what I want:
Furthermore we can see that proper classes are added: