import { iconCheckTag } from '../../../icons/check';
import { iconExclamationMarkTag } from '../../../icons/exclamation-mark';
import { iconTriangleFilledTag } from '../../../icons/triangle-filled';
/**
 * Page object base for step and anchor step
 */
export class StepBasePageObject {
    constructor(element) {
        this.element = element;
    }
    getSuccessSeverityLabel() {
        const label = this.element.shadowRoot?.querySelector(`.icon-severity ${iconCheckTag}[aria-label]`)?.ariaLabel;
        if (typeof label !== 'string') {
            throw new Error('Success severity label not found');
        }
        return label;
    }
    getErrorSeverityLabel() {
        const label = this.element.shadowRoot?.querySelector(`.icon-severity ${iconExclamationMarkTag}[aria-label]`)?.ariaLabel;
        if (typeof label !== 'string') {
            throw new Error('Error severity label not found');
        }
        return label;
    }
    getWarningSeverityLabel() {
        const label = this.element.shadowRoot?.querySelector(`.icon-severity ${iconTriangleFilledTag}[aria-label]`)?.ariaLabel;
        if (typeof label !== 'string') {
            throw new Error('Warning severity label not found');
        }
        return label;
    }
    getSelectedStateLabel() {
        const label = this.element.shadowRoot?.querySelector('.current-label')?.textContent;
        if (typeof label !== 'string') {
            throw new Error('Selected state label not found');
        }
        return label;
    }
    click() {
        this.element.control.click();
    }
}
//# sourceMappingURL=step-base.pageobject.js.map