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

export function AudioEditUniDriver(base: UniDriver, _body: UniDriver) {
  return {
    ...baseUniDriverFactory(base),
    hasAddButton: () => base.$('[data-hook="audio-edit-add-button"]').exists(),
    hasTag: () => base.$('[data-hook="audio-edit-tag"]').exists(),
    hasMoreButton: () =>
      base.$('[data-hook="audio-edit-more-button"]').exists(),
    isLoading: () =>
      base.$('[data-hook="audio-edit"] [data-hook="loader"]').exists(),
  };
}
