Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/js/spec/components/textCopyInput.spec.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {mountWithTheme} from 'sentry-test/enzyme';
import {mountWithTheme, screen} from 'sentry-test/reactTestingLibrary';

import TextCopyInput from 'app/views/settings/components/forms/textCopyInput';

describe('TextCopyInput', function () {
it('renders', function () {
const wrapper = mountWithTheme(<TextCopyInput>Text to Copy</TextCopyInput>);
expect(wrapper).toSnapshot();
const {container} = mountWithTheme(<TextCopyInput>Text to Copy</TextCopyInput>);
expect(container).toSnapshot();
expect(screen.getByDisplayValue('Text to Copy')).toBeInTheDocument();
});
});
7 changes: 4 additions & 3 deletions tests/js/spec/components/toolbarHeader.spec.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {mountWithTheme} from 'sentry-test/enzyme';
import {mountWithTheme, screen} from 'sentry-test/reactTestingLibrary';

import ToolbarHeader from 'app/components/toolbarHeader';

Expand All @@ -8,11 +8,12 @@ describe('ToolbarHeader', function () {
afterEach(function () {});

it('renders', function () {
const wrapper = mountWithTheme(
const {container} = mountWithTheme(
<ToolbarHeader>
<div>Toolbar Header</div>
</ToolbarHeader>
);
expect(wrapper).toSnapshot();
expect(screen.getByText('Toolbar Header')).toBeInTheDocument();
expect(container).toSnapshot();
});
});