Skip to content

Fix Vue3 tests failures

What does this MR do and why?

Fix specs for Vue 3 migration

The code changes involve refactoring the time_to_restore_service_charts.vue component. The main change is in the way the CiCdAnalyticsCharts component is used. Instead of using a custom stub, the component is now rendered with a template that includes a slot for the metrics. This allows the component to be more flexible and reusable.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

***NO VISUAL CHANGES***

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Run test locally VUE_VERSION=3 yarn jest --watch ee/spec/frontend/on_demand_scans/components/on_demand_scans_spec.js
  2. Checkout branch
  3. Run test locally VUE_VERSION=3 yarn jest --watch ee/spec/frontend/on_demand_scans/components/on_demand_scans_spec.js

Related to #481592 (closed)

Merge request reports

Loading