Test count displays differente values for jest job

Summary

When I navigate between the list of jobs and the detail of a jobs on the Test Report I see two different counts of tests which makes me question the accuracy of any of the data.

This bug is affecting only the jest job.

Steps to reproduce

  1. Navigate to a project with 10s of thousands of tests like gitlab.
  2. Navigate to a pipeline that ran all the tests
  3. Click on the test report tab
  4. Note the number of tests
  5. Click on a job

Example Project

https://gitlab.com/gitlab-org/gitlab/-/pipelines/169603204/test_report

What is the expected correct behavior?

Numbers match.

What is the current bug behavior?

The numbers are different, see the images below.

Relevant logs and/or screenshots

Screenshot_2020-07-23_15.32.01

Screenshot_2020-07-23_15.32.09

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by Max Orefice