import { baseUniDriverFactory, findByHook, } from '../utils/test-utils/unidriver';
import { dataHooks } from './TopBanner.constants';
export const topBannerDriverFactory = (base) => {
    const dismissButton = findByHook(base, dataHooks.dismissButton);
    const content = findByHook(base, dataHooks.content);
    return {
        ...baseUniDriverFactory(base),
        /** Gets the content of top banner. */
        getContent: () => content.text(),
        /** Checks if the dismiss button exists. */
        hasDismissButton: () => dismissButton.exists(),
        /** Clicks the dismiss button */
        clickDismissButton: () => dismissButton.click(),
    };
};
//# sourceMappingURL=TopBanner.uni.driver.js.map