import {initializeOrg} from 'sentry-test/initializeOrg';
import {render, screen, waitFor} from 'sentry-test/reactTestingLibrary';
import ProjectPlugins from 'sentry/views/settings/projectPlugins/projectPlugins';
describe('ProjectPlugins', function () {
it('renders', async function () {
const {organization, routerProps, project} = initializeOrg();
const {container} = render(
);
await waitFor(() =>
expect(screen.queryByTestId('loading-indicator')).not.toBeInTheDocument()
);
expect(container).toSnapshot();
});
it('has error state when plugins=[]', async function () {
const {organization, routerProps, project} = initializeOrg();
render(
);
expect(await screen.findByText('Oops! Something went wrong')).toBeInTheDocument();
});
});