|
@@ -600,6 +600,7 @@ class ProjectUpdateTest(APITestCase):
|
|
|
"sentry:verify_ssl": False,
|
|
|
"feedback:branding": False,
|
|
|
"filters:react-hydration-errors": True,
|
|
|
+ "filters:chunk-load-error": True,
|
|
|
}
|
|
|
with self.feature("projects:custom-inbound-filters"), outbox_runner():
|
|
|
self.get_success_response(self.org_slug, self.proj_slug, options=options)
|
|
@@ -716,6 +717,7 @@ class ProjectUpdateTest(APITestCase):
|
|
|
event=audit_log.get_event_id("PROJECT_EDIT"),
|
|
|
).exists()
|
|
|
assert project.get_option("filters:react-hydration-errors", "1")
|
|
|
+ assert project.get_option("filters:chunk-load-error", "1")
|
|
|
|
|
|
def test_bookmarks(self):
|
|
|
self.get_success_response(self.org_slug, self.proj_slug, isBookmarked="false")
|
|
@@ -855,6 +857,17 @@ class ProjectUpdateTest(APITestCase):
|
|
|
assert self.project.get_option("filters:react-hydration-errors") == value
|
|
|
assert resp.data["options"]["filters:react-hydration-errors"] == value
|
|
|
|
|
|
+ def test_chunk_load_error(self):
|
|
|
+ options = {"filters:chunk-load-error": False}
|
|
|
+ resp = self.get_success_response(self.org_slug, self.proj_slug, options=options)
|
|
|
+ assert self.project.get_option("filters:chunk-load-error") == "0"
|
|
|
+ assert resp.data["options"]["filters:chunk-load-error"] is False
|
|
|
+
|
|
|
+ options = {"filters:chunk-load-error": True}
|
|
|
+ resp = self.get_success_response(self.org_slug, self.proj_slug, options=options)
|
|
|
+ assert self.project.get_option("filters:chunk-load-error") == "1"
|
|
|
+ assert resp.data["options"]["filters:chunk-load-error"] is True
|
|
|
+
|
|
|
def test_relay_pii_config(self):
|
|
|
value = '{"applications": {"freeform": []}}'
|
|
|
resp = self.get_success_response(self.org_slug, self.proj_slug, relayPiiConfig=value)
|