Browse Source

feat(performance): added new badge to transaction events tab (#27630)

edwardgou-sentry 3 years ago
parent
commit
c038efe10d

+ 1 - 0
static/app/views/performance/transactionSummary/header.tsx

@@ -245,6 +245,7 @@ class TransactionHeader extends React.Component<Props> {
                 onClick={this.trackEventsTabClick}
               >
                 {t('All Events')}
+                <FeatureBadge type="new" noTooltip />
               </ListLink>
             </Feature>
           </StyledNavTabs>

+ 4 - 1
tests/js/spec/views/performance/transactionEvents.spec.tsx

@@ -164,7 +164,10 @@ describe('Performance > TransactionSummary', function () {
     wrapper.update();
 
     expect(
-      wrapper.find('NavTabs').find({children: 'All Events'}).find('Link')
+      wrapper
+        .find('NavTabs')
+        .find({children: ['All Events']})
+        .find('Link')
     ).toHaveLength(1);
     expect(wrapper.find('SentryDocumentTitle')).toHaveLength(1);
     expect(wrapper.find('SearchBar')).toHaveLength(1);