import React from "react";
import "@testing-library/jest-dom";
import { render, fireEvent } from "@testing-library/react-native";
import { MoleculeInputCopy } from "./index";

jest.mock("react-native/Libraries/EventEmitter/NativeEventEmitter");

describe("[Native] MoleculeInputCopy", () => {
  it("Render MoleculeInputCopy", () => {
    // let component = render(
    //     <MoleculeInputCopy
    //         copyMessage={'copied'}
    //         value={''}
    //     />
    // )
    // const element = component.getByTestId('input');
    // expect(element.props.style[0].borderColor).toEqual('#BDCCD1');
  });

  // it('MoleculeInputCopy Press copy button', () => {
  //     let component = render(
  //         <MoleculeInputCopy
  //             copyMessage={'copied'}
  //             value={''}
  //         />
  //     )
  //     const inputCopyButton = component.getByTestId('inputCopy');
  //     fireEvent.press(inputCopyButton);
  //     fireEvent.press(inputCopyButton);
  //     expect(inputCopyButton).not.toBeNull();
  // });

  // it('MoleculeInputCopy change text', () => {
  //     let component = render(
  //         <MoleculeInputCopy
  //             copyMessage={'copied'}
  //             value={''}
  //         />
  //     )
  //     const input = component.getByTestId('input');
  //     fireEvent.changeText(input, 'query');
  // });

  // it('MoleculeInputCopy change text with default props', () => {
  //     let component = render(
  //         <MoleculeInputCopy
  //         />
  //     )
  //     const input = component.getByTestId('input');
  //     fireEvent.changeText(input, 'query');
  // });
});
