textCopyInput.spec.jsx 394 B

1234567891011
  1. import {render, screen} from 'sentry-test/reactTestingLibrary';
  2. import TextCopyInput from 'sentry/components/textCopyInput';
  3. describe('TextCopyInput', function () {
  4. it('renders', function () {
  5. const {container} = render(<TextCopyInput>Text to Copy</TextCopyInput>);
  6. expect(container).toSnapshot();
  7. expect(screen.getByDisplayValue('Text to Copy')).toBeInTheDocument();
  8. });
  9. });