Skip to content

fix(DsfrNavigationMenuLink): 🐛 utilise onClick passé en prop #966

fix(DsfrNavigationMenuLink): 🐛 utilise onClick passé en prop

fix(DsfrNavigationMenuLink): 🐛 utilise onClick passé en prop #966

Triggered via pull request September 12, 2024 15:14
Status Failure
Total duration 1m 5s
Artifacts

run-tests.yml

on: pull_request
Run unit tests and CT tests
54s
Run unit tests and CT tests
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
src/components/DsfrNavigation/DsfrNavigation.spec.ts > DsfrNavigation > should render navigation menu: src/components/DsfrNavigation/DsfrNavigationMenuLink.vue#L33
TypeError: useHeader is not a function ❯ setup src/components/DsfrNavigation/DsfrNavigationMenuLink.vue:33:20 ❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ setupStatefulComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7757:25 ❯ setupComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7718:36 ❯ mountComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5075:7 ❯ processComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5041:9 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4570:11 ❯ mountChildren node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4802:7 ❯ processFragment node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4984:7 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4544:9
src/components/DsfrNavigation/DsfrNavigation.spec.ts > DsfrNavigation > should render navigation menu and expand menu on click: src/components/DsfrNavigation/DsfrNavigationMenuLink.vue#L33
TypeError: useHeader is not a function ❯ setup src/components/DsfrNavigation/DsfrNavigationMenuLink.vue:33:20 ❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ setupStatefulComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7757:25 ❯ setupComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7718:36 ❯ mountComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5075:7 ❯ processComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5041:9 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4570:11 ❯ mountChildren node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4802:7 ❯ processFragment node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4984:7 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4544:9
src/components/DsfrNavigation/DsfrNavigationMegaMenu.spec.ts > DsfrNavigationMegaMenu > should render a navigation mega menu: src/components/DsfrNavigation/DsfrNavigationMenuLink.vue#L33
TypeError: useHeader is not a function ❯ setup src/components/DsfrNavigation/DsfrNavigationMenuLink.vue:33:20 ❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ setupStatefulComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7757:25 ❯ setupComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7718:36 ❯ mountComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5075:7 ❯ processComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5041:9 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4570:11 ❯ mountChildren node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4802:7 ❯ mountElement node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4725:7 ❯ processElement node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4690:7
src/components/DsfrNavigation/DsfrNavigationMegaMenuCategory.spec.ts > DsfrNavigationMegaMenuCategory > should render a navigation mega menu: src/components/DsfrNavigation/DsfrNavigationMenuLink.vue#L33
TypeError: useHeader is not a function ❯ setup src/components/DsfrNavigation/DsfrNavigationMenuLink.vue:33:20 ❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ setupStatefulComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7757:25 ❯ setupComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7718:36 ❯ mountComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5075:7 ❯ processComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5041:9 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4570:11 ❯ mountChildren node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4802:7 ❯ mountElement node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4725:7 ❯ processElement node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4690:7
src/components/DsfrNavigation/DsfrNavigationMenu.spec.ts > DsfrNavigationMenu > should render a navigation mega menu: src/components/DsfrNavigation/DsfrNavigationMenuLink.vue#L33
TypeError: useHeader is not a function ❯ setup src/components/DsfrNavigation/DsfrNavigationMenuLink.vue:33:20 ❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ setupStatefulComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7757:25 ❯ setupComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7718:36 ❯ mountComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5075:7 ❯ processComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5041:9 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4570:11 ❯ mountChildren node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4802:7 ❯ processFragment node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4984:7 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4544:9
src/components/DsfrNavigation/DsfrNavigationMenuLink.spec.ts > DsfrNavigationMenuLink > should render a navigation menu link (internal) with icon: src/components/DsfrNavigation/DsfrNavigationMenuLink.vue#L33
TypeError: useHeader is not a function ❯ setup src/components/DsfrNavigation/DsfrNavigationMenuLink.vue:33:20 ❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ setupStatefulComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7757:25 ❯ setupComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7718:36 ❯ mountComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5075:7 ❯ processComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5041:9 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4570:11 ❯ ReactiveEffect.componentUpdateFn [as fn] node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5184:11 ❯ ReactiveEffect.run node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/reactivity/dist/reactivity.cjs.js:228:19 ❯ setupRenderEffect node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5312:5
src/components/DsfrNavigation/DsfrNavigationMenuLink.spec.ts > DsfrNavigationMenuLink > should render a navigation menu link (internal) without icon: src/components/DsfrNavigation/DsfrNavigationMenuLink.vue#L33
TypeError: useHeader is not a function ❯ setup src/components/DsfrNavigation/DsfrNavigationMenuLink.vue:33:20 ❯ callWithErrorHandling node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19 ❯ setupStatefulComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7757:25 ❯ setupComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7718:36 ❯ mountComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5075:7 ❯ processComponent node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5041:9 ❯ patch node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4570:11 ❯ ReactiveEffect.componentUpdateFn [as fn] node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5184:11 ❯ ReactiveEffect.run node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/reactivity/dist/reactivity.cjs.js:228:19 ❯ setupRenderEffect node_modules/.pnpm/@VUE[email protected]/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5312:5
Run unit tests and CT tests
Process completed with exit code 1.
Run unit tests and CT tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Run unit tests and CT tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/