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

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