Class: SemanticStepMatch

Inherits:
Cucumber::StepMatch
  • Object
show all
Defined in:
lib/botrytis/cucumber.rb

Overview

Custom StepMatch class for semantic matches that avoids display corruption The core issue is that Cucumber tries to highlight parameters in step text based on parameter positions from the constructed text, but the positions don’t align with the original step text, causing garbled display.

Instance Method Summary collapse

Instance Method Details

#replace_arguments(step_name, format, colour) ⇒ Object



140
141
142
143
144
145
# File 'lib/botrytis/cucumber.rb', line 140

def replace_arguments(step_name, format, colour)
  # For semantic matches, don't try to replace/highlight arguments
  # Just return the original step name to avoid garbled text from
  # parameter position mismatches
  step_name
end