UNPKG

@wix/design-system

Version:

@wix/design-system

10 lines 446 B
import { toastDriverFactory } from '../Toast/Toast.uni.driver'; export const statusToastDriverFactory = (base) => { const getContentRoot = () => base.get('[data-hook="status-toast-root"]'); return { ...toastDriverFactory(base), getStatus: async () => (await getContentRoot()).attr('data-status'), getContent: async () => (await getContentRoot()).text(), }; }; //# sourceMappingURL=StatusToast.uni.driver.js.map