Skip to content

Commit fb88297

Browse files
committed
cmt
1 parent 7d80cca commit fb88297

File tree

1 file changed

+14
-33
lines changed

1 file changed

+14
-33
lines changed

static/app/views/settings/projectUserFeedback/index.spec.tsx

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ describe('ProjectUserFeedback', function () {
5151
})
5252
);
5353
});
54+
55+
it('cannot toggle spam detection', function () {
56+
render(
57+
<ProjectUserFeedback
58+
{...routerProps}
59+
organization={organization}
60+
project={project}
61+
/>
62+
);
63+
64+
expect(
65+
screen.queryByRole('checkbox', {name: 'Enable Spam Detection'})
66+
).not.toBeInTheDocument();
67+
});
5468
});
5569

5670
describe('ProjectUserFeedbackProcessing', function () {
@@ -102,36 +116,3 @@ describe('ProjectUserFeedbackProcessing', function () {
102116
);
103117
});
104118
});
105-
106-
describe('ProjectUserFeedbackProcessingNoSpamDetection', function () {
107-
const {routerProps, organization, project} = initializeOrg();
108-
const url = `/projects/${organization.slug}/${project.slug}/`;
109-
110-
beforeEach(function () {
111-
MockApiClient.clearMockResponses();
112-
MockApiClient.addMockResponse({
113-
url,
114-
method: 'GET',
115-
body: ProjectFixture(),
116-
});
117-
MockApiClient.addMockResponse({
118-
url: `${url}keys/`,
119-
method: 'GET',
120-
body: [],
121-
});
122-
});
123-
124-
it('cannot toggle spam detection', function () {
125-
render(
126-
<ProjectUserFeedback
127-
{...routerProps}
128-
organization={organization}
129-
project={project}
130-
/>
131-
);
132-
133-
expect(
134-
screen.queryByRole('checkbox', {name: 'Enable Spam Detection'})
135-
).not.toBeInTheDocument();
136-
});
137-
});

0 commit comments

Comments
 (0)