File tree Expand file tree Collapse file tree 1 file changed +14
-33
lines changed
static/app/views/settings/projectUserFeedback Expand file tree Collapse file tree 1 file changed +14
-33
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,20 @@ describe('ProjectUserFeedback', function () {
51
51
} )
52
52
) ;
53
53
} ) ;
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
+ } ) ;
54
68
} ) ;
55
69
56
70
describe ( 'ProjectUserFeedbackProcessing' , function ( ) {
@@ -102,36 +116,3 @@ describe('ProjectUserFeedbackProcessing', function () {
102
116
) ;
103
117
} ) ;
104
118
} ) ;
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
- } ) ;
You can’t perform that action at this time.
0 commit comments