"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractStepName = void 0;
function extractStepName(result) {
    var _a;
    const name = (_a = result.fnName) !== null && _a !== void 0 ? _a : 'Run Command';
    const selector = result.selector;
    const text = result.text;
    if (selector && text) {
        return `${name} "${text}" on "${selector}"`;
    }
    if (selector) {
        return `${name} "${selector}"`;
    }
    if (text) {
        return `${name} "${text}"`;
    }
    return `${name}`;
}
exports.extractStepName = extractStepName;
