newProject.spec.tsx 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import {OrganizationFixture} from 'sentry-fixture/organization';
  2. import {OrganizationIntegrationsFixture} from 'sentry-fixture/organizationIntegrations';
  3. import {MOCK_RESP_VERBOSE} from 'sentry-fixture/ruleConditions';
  4. import {render} from 'sentry-test/reactTestingLibrary';
  5. import NewProject from 'sentry/views/projectInstall/newProject';
  6. describe('NewProjectPlatform', function () {
  7. const organization = OrganizationFixture();
  8. const integrations = [
  9. OrganizationIntegrationsFixture({
  10. name: "Moo Deng's Workspace",
  11. status: 'active',
  12. }),
  13. ];
  14. beforeEach(() => {
  15. MockApiClient.addMockResponse({
  16. url: `/projects/org-slug/rule-conditions/`,
  17. body: MOCK_RESP_VERBOSE,
  18. });
  19. MockApiClient.addMockResponse({
  20. url: `/organizations/${organization.slug}/integrations/?integrationType=messaging`,
  21. body: integrations,
  22. });
  23. });
  24. afterEach(() => {
  25. MockApiClient.clearMockResponses();
  26. });
  27. it('should render', function () {
  28. render(<NewProject />);
  29. });
  30. });