wix-style-react
Version:
wix-style-react
17 lines (12 loc) • 539 B
JavaScript
import { baseUniDriverFactory } from 'wix-ui-test-utils/base-driver';
export const {%componentName%}DriverFactory = base => {
return {
...baseUniDriverFactory(base),
/** Get the current count */
getCountText: async () => base.$('[data-hook="{%componentName%}-count"]').text(),
/** Click the button */
clickButton: async () => base.$('[data-hook="{%componentName%}-button"]').click(),
/** Get the button's text */
getButtonText: async () => base.$('[data-hook="{%componentName%}-button"]').text(),
};
};