|
@@ -33,9 +33,7 @@ describe('Organization Developer Settings', function () {
|
|
url: `/organizations/${org.slug}/sentry-apps/`,
|
|
url: `/organizations/${org.slug}/sentry-apps/`,
|
|
body: [],
|
|
body: [],
|
|
});
|
|
});
|
|
- const {container} = render(
|
|
|
|
- <OrganizationDeveloperSettings params={{orgId: org.slug}} organization={org} />
|
|
|
|
- );
|
|
|
|
|
|
+ const {container} = render(<OrganizationDeveloperSettings organization={org} />);
|
|
await waitFor(() => {
|
|
await waitFor(() => {
|
|
expect(
|
|
expect(
|
|
screen.getByText('No internal integrations have been created yet.')
|
|
screen.getByText('No internal integrations have been created yet.')
|
|
@@ -54,10 +52,7 @@ describe('Organization Developer Settings', function () {
|
|
});
|
|
});
|
|
|
|
|
|
it('internal integrations list is empty', () => {
|
|
it('internal integrations list is empty', () => {
|
|
- render(
|
|
|
|
- <OrganizationDeveloperSettings params={{orgId: org.slug}} organization={org} />,
|
|
|
|
- {organization: org}
|
|
|
|
- );
|
|
|
|
|
|
+ render(<OrganizationDeveloperSettings organization={org} />, {organization: org});
|
|
expect(
|
|
expect(
|
|
screen.getByText('No internal integrations have been created yet.')
|
|
screen.getByText('No internal integrations have been created yet.')
|
|
).toBeInTheDocument();
|
|
).toBeInTheDocument();
|
|
@@ -66,7 +61,6 @@ describe('Organization Developer Settings', function () {
|
|
it('public integrations list contains 1 item', () => {
|
|
it('public integrations list contains 1 item', () => {
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: org.slug}}
|
|
|
|
organization={org}
|
|
organization={org}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>,
|
|
/>,
|
|
@@ -84,7 +78,6 @@ describe('Organization Developer Settings', function () {
|
|
});
|
|
});
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: org.slug}}
|
|
|
|
organization={org}
|
|
organization={org}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>
|
|
/>
|
|
@@ -115,7 +108,6 @@ describe('Organization Developer Settings', function () {
|
|
|
|
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: org.slug}}
|
|
|
|
organization={org}
|
|
organization={org}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>
|
|
/>
|
|
@@ -180,7 +172,6 @@ describe('Organization Developer Settings', function () {
|
|
it('shows the published status', () => {
|
|
it('shows the published status', () => {
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: org.slug}}
|
|
|
|
organization={org}
|
|
organization={org}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>
|
|
/>
|
|
@@ -191,7 +182,6 @@ describe('Organization Developer Settings', function () {
|
|
it('trash button is disabled', async () => {
|
|
it('trash button is disabled', async () => {
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: org.slug}}
|
|
|
|
organization={org}
|
|
organization={org}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>
|
|
/>
|
|
@@ -203,7 +193,6 @@ describe('Organization Developer Settings', function () {
|
|
it('publish button is disabled', async () => {
|
|
it('publish button is disabled', async () => {
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: org.slug}}
|
|
|
|
organization={org}
|
|
organization={org}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>
|
|
/>
|
|
@@ -224,17 +213,13 @@ describe('Organization Developer Settings', function () {
|
|
});
|
|
});
|
|
|
|
|
|
it('allows deleting', async () => {
|
|
it('allows deleting', async () => {
|
|
- render(
|
|
|
|
- <OrganizationDeveloperSettings params={{orgId: org.slug}} organization={org} />
|
|
|
|
- );
|
|
|
|
|
|
+ render(<OrganizationDeveloperSettings organization={org} />);
|
|
const deleteButton = await screen.findByRole('button', {name: 'Delete'});
|
|
const deleteButton = await screen.findByRole('button', {name: 'Delete'});
|
|
expect(deleteButton).toHaveAttribute('aria-disabled', 'false');
|
|
expect(deleteButton).toHaveAttribute('aria-disabled', 'false');
|
|
});
|
|
});
|
|
|
|
|
|
it('publish button does not exist', () => {
|
|
it('publish button does not exist', () => {
|
|
- render(
|
|
|
|
- <OrganizationDeveloperSettings params={{orgId: org.slug}} organization={org} />
|
|
|
|
- );
|
|
|
|
|
|
+ render(<OrganizationDeveloperSettings organization={org} />);
|
|
expect(screen.queryByText('Publish')).not.toBeInTheDocument();
|
|
expect(screen.queryByText('Publish')).not.toBeInTheDocument();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -250,7 +235,6 @@ describe('Organization Developer Settings', function () {
|
|
it('trash button is disabled', async () => {
|
|
it('trash button is disabled', async () => {
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: newOrg.slug}}
|
|
|
|
organization={newOrg}
|
|
organization={newOrg}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>
|
|
/>
|
|
@@ -262,7 +246,6 @@ describe('Organization Developer Settings', function () {
|
|
it('publish button is disabled', async () => {
|
|
it('publish button is disabled', async () => {
|
|
render(
|
|
render(
|
|
<OrganizationDeveloperSettings
|
|
<OrganizationDeveloperSettings
|
|
- params={{orgId: newOrg.slug}}
|
|
|
|
organization={newOrg}
|
|
organization={newOrg}
|
|
location={{query: {type: 'public'}}}
|
|
location={{query: {type: 'public'}}}
|
|
/>
|
|
/>
|