UNPKG

wix-style-react

Version:
15 lines 765 B
import { baseModalLayoutDriverFactory } from '../BaseModalLayout/BaseModalLayout.uni.driver'; import { textButtonDriverFactory } from '../TextButton/TextButton.uni.driver'; import { dataHooks } from './constants'; import { findByHook } from '../test-utils/utils/unidriver'; export const announcementModalLayoutDriverFactory = (base) => { const getLink = () => textButtonDriverFactory(findByHook(base, dataHooks.link)); return { ...baseModalLayoutDriverFactory(base), /** Returns if the link component text content */ getLinkText: () => getLink().getButtonTextContent(), /** Clicks the link component */ clickLink: async () => getLink().click(), }; }; //# sourceMappingURL=AnnouncementModalLayout.uni.driver.js.map