Browse Source

ref(assistant): Disable superuser guides in acceptance tests (#33388)

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Evan Purkhiser 2 years ago
parent
commit
5566f6d37d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      static/app/stores/guideStore.tsx

+ 2 - 1
static/app/stores/guideStore.tsx

@@ -5,6 +5,7 @@ import GuideActions from 'sentry/actions/guideActions';
 import OrganizationsActions from 'sentry/actions/organizationsActions';
 import getGuidesContent from 'sentry/components/assistant/getGuidesContent';
 import {Guide, GuidesContent, GuidesServerData} from 'sentry/components/assistant/types';
+import {IS_ACCEPTANCE_TEST} from 'sentry/constants';
 import ConfigStore from 'sentry/stores/configStore';
 import {trackAnalyticsEvent} from 'sentry/utils/analytics';
 import {
@@ -255,7 +256,7 @@ const storeConfig: GuideStoreDefinition = {
         if (seen) {
           return false;
         }
-        if (user?.isSuperuser) {
+        if (user?.isSuperuser && !IS_ACCEPTANCE_TEST) {
           return true;
         }
         if (dateThreshold) {