(step: Step)
| 67 | * Resolves the step's `extraHighlights` option, converting any locator values to HTMLElements. |
| 68 | */ |
| 69 | export function parseExtraHighlights(step: Step): HTMLElement[] { |
| 70 | if (step.options.extraHighlights) { |
| 71 | return step.options.extraHighlights.flatMap((highlight) => { |
| 72 | return Array.from(document.querySelectorAll(highlight)) as HTMLElement[]; |
| 73 | }); |
| 74 | } |
| 75 | return []; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Checks if the step should be centered or not. Does not trigger attachTo.element evaluation, making it a pure |
no outgoing calls
no test coverage detected