Broken master: Jest failures
Jest is throwing a lot of failures :
# ...
● ProductivityApp component › template › with a group being selected › user has access to the group › when the main chart finished loading › and has data › MR table › when table finished loading › and the table doesn't have any data › doesn`t render the sort dropdown and button
[vue-test-utils]: find did not return .js-mr-table-sort, cannot call find() on empty Wrapper
58 | const findCommitBasedMetricChart = () => wrapper.find({ ref: 'commitBasedChart' });
59 | const findMrTableSortSection = () => wrapper.find('.js-mr-table-sort');
> 60 | const findSortFieldDropdown = () => findMrTableSortSection().find(GlDropdown);
| ^
61 | const findSortOrderToggle = () => findMrTableSortSection().find(GlButton);
62 | const findMrTableSection = () => wrapper.find('.js-mr-table');
63 | const findMrTable = () => findMrTableSection().find(MergeRequestTable);
at throwError (node_modules/@vue/test-utils/dist/vue-test-utils.js:11:9)
at ErrorWrapper.find (node_modules/@vue/test-utils/dist/vue-test-utils.js:736:3)
at find (ee/spec/frontend/analytics/productivity_analytics/components/app_spec.js:60:64)
at Object.findSortFieldDropdown (ee/spec/frontend/analytics/productivity_analytics/components/app_spec.js:341:28)
● ProductivityApp component › template › with a group being selected › user has access to the group › when the main chart finished loading › and has data › MR table › when table finished loading › and the table doesn't have any data › doesn`t render the sort dropdown and button
expect.hasAssertions()
Expected at least one assertion to be called but received none.
99 | // see https://jestjs.io/docs/en/expect#expecthasassertions
100 | beforeEach(() => {
> 101 | expect.hasAssertions();
| ^
102 | });
103 |
at Object.hasAssertions (spec/frontend/test_setup.js:101:10)
Test Suites: 1 failed, 452 passed, 453 total
Tests: 22 failed, 1 skipped, 4048 passed, 4071 total
Snapshots: 112 passed, 112 total
Time: 380.519s
Build example: https://gitlab.com/gitlab-org/gitlab/-/jobs/302953960