wix-style-react
Version:
wix-style-react
27 lines • 828 B
JavaScript
import { baseUniDriverFactory } from '../test-utils/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(),
/**
* Gets the message
* @returns {Promise<string>}
*/
getMessage: async () => base.text(),
/**
* Gets the role
* @returns {Promise<string>}
*/
getRole: async () => base.attr('role'),
};
};
//# sourceMappingURL=LiveRegion.uni.driver.js.map