Skip to content

Commit

Permalink
Ignore ResizeObserver error caused by Cypress in Sentry (#4726)
Browse files Browse the repository at this point in the history
* Add ResizeObserver error to ignore

* Add changeset

* Fix typo
  • Loading branch information
poulch committed Mar 21, 2024
1 parent dd4e5f1 commit 1a0f380
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-rabbits-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Add "ResizeObserver loop limit exceeded" to ignored in Sentry. Error is thrown only during Cypress tests that will be soon migrated and we could remove error from ignored.
6 changes: 5 additions & 1 deletion src/services/errorTracking/adapters/Sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export const SentryAdapter = (config: Config): TrackerMethods => {
Sentry.init({
dsn: config.dsn,
environment: config.environment,
ignoreErrors: ["Editor's content can not be saved in read-only mode"],
ignoreErrors: [
"Editor's content can not be saved in read-only mode",
// TODO: rmoeve after Cypress migation
"ResizeObserver loop limit exceeded",
],
});
return true;
}
Expand Down

0 comments on commit 1a0f380

Please sign in to comment.