wix-style-react
Version:
wix-style-react
15 lines • 849 B
JavaScript
import { baseUniDriverFactory, countByHook, getDataAttributeValue, } from '../test-utils/utils/unidriver';
import { dataHooks } from './constants';
export const radarChartDriverFactory = (base, body) => {
return {
...baseUniDriverFactory(base, body),
/** Returns the number of scale circles */
getScaleLinesCount: () => countByHook(base, dataHooks.radarChartScaleLine),
/** Returns the number of data item points */
getDataItemsCount: () => countByHook(base, dataHooks.radarChartDataItem),
/** Checks whether the component is in the disabled state */
isDisabled: async () => (await getDataAttributeValue(base, 'data-disabled')) === 'true',
getHoverIndex: async () => await getDataAttributeValue(base, 'data-hover-index'),
};
};
//# sourceMappingURL=RadarChart.uni.driver.js.map