"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InstallAppStep = void 0;
const MablStepV2_1 = require("../../MablStepV2");
class InstallAppStep extends MablStepV2_1.MablStepV2 {
    static stepName = 'InstallApp';
    static yamlMablScriptNames = [InstallAppStep.stepName];
    static stepVersion = 2;
    constructor(descriptor) {
        super(InstallAppStep.stepName, descriptor, 'installApp');
    }
    stepDescription() {
        if (this.descriptor.packageName) {
            return `Install app - ${this.descriptor.packageName}`;
        }
        return `Install primary app under test`;
    }
    static fromYaml(_stepName, stepDescriptor) {
        return new InstallAppStep(stepDescriptor);
    }
    static create(descriptor) {
        descriptor.id = descriptor.id ?? MablStepV2_1.MablStepV2.generateStepId();
        return new InstallAppStep(descriptor);
    }
}
exports.InstallAppStep = InstallAppStep;
