import * as React from 'react';
import CreditCardIcon from './CreditCardIcon';
import BaseDriver from '../../../../test/BaseDriver';

export default class CashierPaymentsDriver extends BaseDriver {
  component: any;

  when = {
    render: () => {
      this.component = this._render(<CreditCardIcon />);
      return this;
    },
  };

  has = {
    root: () => this.get.root().exists(),
  };

  get = {
    root: () => this.findByDataHook(`wcn-credit-card-icon`),
  };
}
