import { baseUniDriverFactory as createBaseUniDriver } from '@wix/wix-ui-test-utils/base-driver';
export const headingUniDriverFactory = (base) => {
    const baseUniDriver = createBaseUniDriver(base);
    return {
        ...baseUniDriver,
        /** Gets text content */
        getText: () => base.prop('innerHTML'),
        /** Gets heading appearance */
        getAppearance: () => base.attr('data-appearance'),
        /** Gets heading size */
        getSize: () => base.attr('data-size'),
        /** Gets heading tag name */
        getTagName: async () => baseUniDriver.element().then(el => el.tagName),
        /** Checks whether heading is light */
        isLight: async () => (await base.attr('data-light')) === 'true',
        /** Checks if heading has masking classNames */
        isMasked: async () => (await base.attr('data-mask')) === 'true',
        /** Gets heading id */
        getId: () => base.attr('data-id'),
    };
};
//# sourceMappingURL=Heading.uni.driver.js.map