Failing test: ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
Job #895190578 failed for b4c3ebcd:
FAIL ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
● OnDemandScansForm › when there is a single scanner profile › automatically selects the only available profile
[vue-test-utils]: find did not return Component, cannot call attributes() on empty Wrapper
335 |
336 | it('automatically selects the only available profile', () => {
> 337 | expect(subject.find(selector).attributes('value')).toBe(profile.id);
| ^
338 | });
339 | });
340 | });
at throwError (node_modules/@vue/test-utils/dist/vue-test-utils.js:1462:9)
at ErrorWrapper.attributes (node_modules/@vue/test-utils/dist/vue-test-utils.js:8357:3)
at Object.<anonymous> (ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js:337:37)
● OnDemandScansForm › when there is a single scanner profile › automatically selects the only available profile
expect.hasAssertions()
Expected at least one assertion to be called but received none.
80 | // see https://jestjs.io/docs/en/expect#expecthasassertions
81 | beforeEach(() => {
> 82 | expect.hasAssertions();
| ^
83 | });
84 |
at Object.<anonymous> (spec/frontend/test_setup.js:82:10)
● OnDemandScansForm › when there is a single site profile › automatically selects the only available profile
[vue-test-utils]: find did not return Component, cannot call attributes() on empty Wrapper
335 |
336 | it('automatically selects the only available profile', () => {
> 337 | expect(subject.find(selector).attributes('value')).toBe(profile.id);
| ^
338 | });
339 | });
340 | });
at throwError (node_modules/@vue/test-utils/dist/vue-test-utils.js:1462:9)
at ErrorWrapper.attributes (node_modules/@vue/test-utils/dist/vue-test-utils.js:8357:3)
at Object.<anonymous> (ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js:337:37)
● OnDemandScansForm › when there is a single site profile › automatically selects the only available profile
expect.hasAssertions()
Expected at least one assertion to be called but received none.
80 | // see https://jestjs.io/docs/en/expect#expecthasassertions
81 | beforeEach(() => {
> 82 | expect.hasAssertions();
| ^
83 | });
84 |
at Object.<anonymous> (spec/frontend/test_setup.js:82:10)