import React__default from 'react';
import { render, screen } from '@testing-library/react';
import Textarea from '../index.js';
import '../../extends-C4cduGrv.js';
import '../../defineProperty-CEd-kZQW.js';
import '../../objectWithoutProperties-TXwlfNxG.js';
import 'classnames';
import 'prop-types';
import '../../stack/index.js';
import '../../label/index.js';
import '@reach/visually-hidden';
import '../../index-CMfVNfTW.js';
import '../../slicedToArray-BB-AwwkK.js';
import '../../typeof-CgC7Bq6K.js';
import '../../toConsumableArray-dKQYsfpV.js';
import '../../index-qSfOyGhk.js';
import 'react-dom';
import '../../icon/assets/icon-map/index.js';
import '../../social-icon/index.js';
import '@fortawesome/react-fontawesome';
import '../../social-icon/icons.js';
import '../../social-icon/library.js';
import '@fortawesome/fontawesome-svg-core';
import '@fortawesome/free-solid-svg-icons';
import '@fortawesome/free-brands-svg-icons';
import '../../tooltip/index.js';
import '../../auto-id.esm-CjaDlg7r.js';
import '../../utils.esm-BKUEBdyY.js';
import '../../warning-s9zGJbnw.js';
import '../../portal.esm-D9LQ40g_.js';
import '../../portal/index.js';
import '../../use-rerender-once/index.js';
import '../../use-force-update/index.js';
import '../../button/button-group.js';
import '../../inject-css-BqVV5N0s.js';
import '../../text/index.js';

var ExampleTextarea = function ExampleTextarea() {
  return /*#__PURE__*/React__default.createElement(Textarea, {
    placeholder: "Enter your username",
    label: "Username",
    id: "username"
  });
};

describe("Textarea", function () {
  test("component renders", function () {
    render( /*#__PURE__*/React__default.createElement(ExampleTextarea, null));
    var textarea = screen.getByLabelText("Username", {
      selector: "textarea"
    });
    expect(textarea).toBeInTheDocument();
  });
});
