import {render, screen} from 'sentry-test/reactTestingLibrary';
import MutedBox from 'sentry/components/mutedBox';
describe('MutedBox', function () {
describe('render()', function () {
it('handles ignoreUntil', function () {
const {container} = render(
);
expect(screen.getByText(/This issue has been ignored until/)).toBeInTheDocument();
expect(container).toSnapshot();
});
it('handles ignoreCount', function () {
const {container} = render();
expect(
screen.getByText(/This issue has been ignored until it affects/)
).toBeInTheDocument();
expect(container).toSnapshot();
});
it('handles ignoreCount with ignoreWindow', function () {
const {container} = render(
);
expect(
screen.getByText(/This issue has been ignored until it occurs/)
).toBeInTheDocument();
expect(container).toSnapshot();
});
it('handles ignoreUserCount', function () {
const {container} = render();
expect(
screen.getByText(/This issue has been ignored until it affects/)
).toBeInTheDocument();
expect(container).toSnapshot();
});
it('handles ignoreUserCount with ignoreUserWindow', function () {
const {container} = render(
);
expect(
screen.getByText(/This issue has been ignored until it affects/)
).toBeInTheDocument();
expect(container).toSnapshot();
});
it('handles default', function () {
const {container} = render();
expect(screen.getByText(/This issue has been ignored/)).toBeInTheDocument();
expect(container).toSnapshot();
});
});
});