Browse Source

fix(js): Make transactionOverview test less flakey (#45062)

Evan Purkhiser 2 years ago
parent
commit
6257dff574

+ 5 - 5
static/app/views/performance/transactionSummary/transactionOverview/index.spec.tsx

@@ -843,17 +843,17 @@ describe('Performance > TransactionSummary', function () {
       await screen.findByText('Tag Summary');
 
       userEvent.click(
-        screen.getByLabelText(
+        await screen.findByLabelText(
           'environment, dev, 100% of all events. View events with this tag value.'
         )
       );
       userEvent.click(
-        screen.getByLabelText(
+        await screen.findByLabelText(
           'foo, bar, 100% of all events. View events with this tag value.'
         )
       );
       userEvent.click(
-        screen.getByLabelText(
+        await screen.findByLabelText(
           'user, id:100, 100% of all events. View events with this tag value.'
         )
       );
@@ -1256,12 +1256,12 @@ describe('Performance > TransactionSummary', function () {
       await screen.findByText('Tag Summary');
 
       userEvent.click(
-        screen.getByLabelText(
+        await screen.findByLabelText(
           'environment, dev, 100% of all events. View events with this tag value.'
         )
       );
       userEvent.click(
-        screen.getByLabelText(
+        await screen.findByLabelText(
           'foo, bar, 100% of all events. View events with this tag value.'
         )
       );