Skip to main content

Function: isPramanStep()

isPramanStep(title): boolean

Defined in: src/reporters/compliance-reporter.ts:123

Determines whether a step title belongs to a Praman-managed step.

A step is considered a Praman step when it either:

  • starts with one of the known Praman action verbs, or
  • contains \> (the withStep wrapper pattern module \> action).

Parameters​

title​

string

The step title to classify.

Returns​

boolean

true if the step was produced by a Praman abstraction.

Example​

isPramanStep('Click button');       // true
isPramanStep('navigation > open'); // true
isPramanStep('page.click'); // false