A warning occurs on yarn jest ee/spec/frontend/security_orchestration/components/policies/instance_project_selector_spec.js
Summary
- on
yarn jest ee/spec/frontend/security_orchestration/components/policies/instance_project_selector_spec.js
a warning occurs
Steps to reproduce
- Run
yarn jest ee/spec/frontend/security_orchestration/components/policies/instance_project_selector_spec.js
in the terminal
What is the current bug behavior?
A warning appears
What is the expected correct behavior?
A warning does not appear
Relevant logs and/or screenshots
➜ gitlab git:(master) yarn jest ee/spec/frontend/security_orchestration/components/policies/instance_project_selector_spec.js
yarn run v1.22.19
$ yarn check-dependencies
$ scripts/frontend/check_dependencies.sh
$ jest --config jest.config.js ee/spec/frontend/security_orchestration/components/policies/instance_project_selector_spec.js
console.error
[Vue warn]: Invalid prop: custom validator check failed for prop "items".
found in
---> <GlCollapsibleListbox>
<Anonymous>
<Root>
47 | });
48 |
> 49 | const { IS_EE } = projectConfig.testEnvironmentOptions;
| ^
50 |
51 | this.global.IS_EE = IS_EE;
52 |
at console.error (spec/frontend/environment.js:49:27)
at warn (node_modules/vue/dist/vue.runtime.common.dev.js:4552:21)
at assertProp (node_modules/vue/dist/vue.runtime.common.dev.js:5109:13)
at validateProp (node_modules/vue/dist/vue.runtime.common.dev.js:5042:9)
at updateChildComponent (node_modules/vue/dist/vue.runtime.common.dev.js:3919:26)
at prepatch (node_modules/vue/dist/vue.runtime.common.dev.js:4363:9)
at patchVnode (node_modules/vue/dist/vue.runtime.common.dev.js:6822:13)
at VueComponent.patch [as __patch__] (node_modules/vue/dist/vue.runtime.common.dev.js:7001:17)
at VueComponent.Vue._update (node_modules/vue/dist/vue.runtime.common.dev.js:3722:25)
at VueComponent.updateComponent (node_modules/vue/dist/vue.runtime.common.dev.js:3828:16)
at Watcher.get (node_modules/vue/dist/vue.runtime.common.dev.js:3400:33)
at Watcher.run (node_modules/vue/dist/vue.runtime.common.dev.js:3476:32)
at flushSchedulerQueue (node_modules/vue/dist/vue.runtime.common.dev.js:4077:17)
PASS ee/spec/frontend/security_orchestration/components/policies/instance_project_selector_spec.js
InstanceProjectSelector Component
default
✓ renders the project selector (15 ms)
✓ renders custom header (7 ms)
✓ does not query when the search query is less than three characters (3 ms)
✓ does query when the search query is more than three characters (15 ms)
✓ does query when the bottom is reached (31 ms)
✓ emits on "projectClicked" (7 ms)
other states
✓ notifies project selector of search error (8 ms)
✓ notifies project selector of no results (5 ms)
Test Suites: 1 passed, 1 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 2.251 s
Ran all test suites matching /ee\/spec\/frontend\/security_orchestration\/components\/policies\/instance_project_selector_spec.js/i.
✨ Done in 3.48s.
➜ gitlab git:(master)
Possible fixes
-
frontend I looked into it briefly and I think we need to mock a graphql refetch or something 🤷