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

export function AudioViewUniDriver(base: UniDriver, _body: UniDriver) {
  return {
    ...baseUniDriverFactory(base),
    hasTag: () => base.$('[data-hook="audio-cell-tag"]').exists(),
    getTitle: async () => {
      const tag = base.$('[data-hook="audio-cell-tag"]');
      return tag.text();
    },
  };
}
