import { UniDriver } from '@wix/wix-ui-test-utils/unidriver';
import { baseUniDriverFactory } from '../../../../unidriver';

export function MultiDocumentEditUniDriver(base: UniDriver, _body: UniDriver) {
  return {
    ...baseUniDriverFactory(base),
    hasAddButton: () =>
      base.$('[data-hook="multi-document-edit-add-button"]').exists(),
    hasPasteUrlButton: () =>
      base.$('[data-hook="multi-document-edit-paste-url-button"]').exists(),
    getTagsCount: () =>
      base.$$('[data-hook="multi-document-edit-tag"]').count(),
    isLoading: () =>
      base.$('[data-hook="multi-document-edit"] [data-hook="loader"]').exists(),
  };
}
