From c6864cce724658b5df6ae30606872cec1d207c63 Mon Sep 17 00:00:00 2001 From: kosukeKK Date: Fri, 8 Mar 2024 18:29:35 +0900 Subject: [PATCH] fix test Signed-off-by: kosukeKK --- .../src/next/TemplateWizardPage/TemplateWizardPage.test.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/scaffolder/src/next/TemplateWizardPage/TemplateWizardPage.test.tsx b/plugins/scaffolder/src/next/TemplateWizardPage/TemplateWizardPage.test.tsx index f01b0ab003..5cdae85e8a 100644 --- a/plugins/scaffolder/src/next/TemplateWizardPage/TemplateWizardPage.test.tsx +++ b/plugins/scaffolder/src/next/TemplateWizardPage/TemplateWizardPage.test.tsx @@ -30,6 +30,7 @@ import { import { TemplateWizardPage } from './TemplateWizardPage'; import { rootRouteRef } from '../../routes'; import { CatalogApi, catalogApiRef } from '@backstage/plugin-catalog-react'; +import { ANNOTATION_EDIT_URL } from '@backstage/catalog-model'; jest.mock('react-router-dom', () => { return { @@ -68,7 +69,7 @@ const entityRefResponse = { metadata: { name: 'test', annotations: { - 'backstage.io/edit-url': 'http://localhost:3000', + [ANNOTATION_EDIT_URL]: 'http://localhost:3000', }, }, spec: { @@ -147,7 +148,7 @@ describe('TemplateWizardPage', () => { metadata: { name: 'test', annotations: { - 'backstage.io/edit-url': 'http://localhost:3000', + [ANNOTATION_EDIT_URL]: 'http://localhost:3000', }, }, spec: {