@wix/design-system
Version:
@wix/design-system
27 lines • 834 B
JavaScript
import { baseUniDriverFactory } from '../utils/test-utils/unidriver';
export const liveRegionDriverFactory = (base) => {
return {
...baseUniDriverFactory(base),
/**
* Checks whether the component found with the given data hook
* @returns {Promise<boolean>}
*/
exists: async () => base.exists(),
/**
* Gets the component root element
* @returns {Promise<any>}
*/
element: async () => base.getNative(),
/**
* Returns the message
* @returns {Promise<string>}
*/
getMessage: async () => base.text(),
/**
* Returns the role
* @returns {Promise<string>}
*/
getRole: async () => base.attr('role'),
};
};
//# sourceMappingURL=LiveRegion.uni.driver.js.map