From 4b1d4e03e4800c4cfd8cb49b5e29ce628d4f9250 Mon Sep 17 00:00:00 2001
From: Samantha Ming <sming@gitlab.com>
Date: Thu, 20 Jul 2023 19:09:34 +0200
Subject: [PATCH] Fix image_list_row_spec.js

Fix spec violation in preparation for Vue 3.
---
 .../explorer/components/list_page/image_list_row_spec.js        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/frontend/packages_and_registries/container_registry/explorer/components/list_page/image_list_row_spec.js b/spec/frontend/packages_and_registries/container_registry/explorer/components/list_page/image_list_row_spec.js
index 5d8df45415ef..b7a995c96eee 100644
--- a/spec/frontend/packages_and_registries/container_registry/explorer/components/list_page/image_list_row_spec.js
+++ b/spec/frontend/packages_and_registries/container_registry/explorer/components/list_page/image_list_row_spec.js
@@ -82,7 +82,7 @@ describe('Image List Row', () => {
 
       const trackingSpy = mockTracking(undefined, wrapper.element, jest.spyOn);
       const mockFocusFn = jest.fn();
-      wrapper.vm.$refs.imageName.$el.focus = mockFocusFn;
+      wrapper.findComponent(RouterLink).element.focus = mockFocusFn;
 
       await findShowFullPathButton().trigger('click');
 
-- 
GitLab