Flaky spec: ee/spec/frontend/on_demand_scans/components/tabs/saved_spec.js
Summary
- https://gitlab.com/gitlab-org/gitlab/-/jobs/3746891944
- gitlab-org/quality/engineering-productivity/master-broken-incidents#865 (closed)
FAIL ee/spec/frontend/on_demand_scans/components/tabs/saved_spec.js
● Saved tab › verify button › mobile layout › renders the button
Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.Error: Timeout - Async callback was not invoked within the 5000 ms timeout specified by jest.setTimeout.
at mapper (node_modules/jest-jasmine2/build/queueRunner.js:28:45)
● Saved tab › verify button › mobile layout › renders the button
TypeError: Cannot read properties of undefined (reading 'exists')
294 |
295 | it('renders the button', () => {
> 296 | expect(verifyButton.exists()).toBe(true);
| ^
297 | });
298 |
299 | it('should open verification drawer', async () => {
at Object.exists (ee/spec/frontend/on_demand_scans/components/tabs/saved_spec.js:296:29)
● Saved tab › verify button › mobile layout › renders the button
expect.hasAssertions()
Expected at least one assertion to be called but received none.
66 | // see https://jestjs.io/docs/en/expect#expecthasassertions
67 | // eslint-disable-next-line jest/no-standalone-expect
> 68 | expect.hasAssertions();
| ^
69 |
70 | // Reset the mocked window.location. This ensures tests don't interfere with
71 | // each other, and removes the need to tidy up if it was changed for a given
at Object.hasAssertions (spec/frontend/__helpers__/shared_test_setup.js:68:10)
Test Suites: 1 failed, 511 passed, 512 total
Tests: 1 failed, 6090 passed, 6091 total
Snapshots: 52 passed, 52 total
Time: 1070.566 s
Ran all test suites.
error Command failed with exit code 1.
Steps to reproduce
Please refer to Flaky tests documentation to learn more about how to reproduce them.
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.