import React from "react";
import "@testing-library/jest-dom/extend-expect";
import { render, fireEvent } from "@testing-library/react";
import { Select, SelectItem } from "../..";

test("should open and close dropdown", () => {
  const { queryByTestId } = render(
    <Select header="Select Project" data-testid="select-test-id">
      <SelectItem onClick={() => {}}>Lorem ipsum</SelectItem>
      <SelectItem isActive={true}>Lorem</SelectItem>
    </Select>
  );

  expect(queryByTestId("select-test-id")).not.toBeNull();
});
