|
@@ -565,9 +565,11 @@ describe('Performance > TransactionSummary', function () {
|
|
|
// It renders the web vitals widget
|
|
|
await screen.findByRole('heading', {name: 'Web Vitals'});
|
|
|
|
|
|
- const vitalStatues = screen.getAllByTestId('vital-status');
|
|
|
- expect(vitalStatues).toHaveLength(3);
|
|
|
+ await waitFor(() => {
|
|
|
+ expect(screen.getAllByTestId('vital-status')).toHaveLength(3);
|
|
|
+ });
|
|
|
|
|
|
+ const vitalStatues = screen.getAllByTestId('vital-status');
|
|
|
expect(vitalStatues[0]).toHaveTextContent('31%');
|
|
|
expect(vitalStatues[1]).toHaveTextContent('65%');
|
|
|
expect(vitalStatues[2]).toHaveTextContent('3%');
|