From cd55891e6bbf6ef57a8a195accd997ceddd51c02 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Mon, 22 May 2023 11:01:16 +0200 Subject: [PATCH] EntityProcessingStatusPicker: remove mocked backendEntities from tests Signed-off-by: Vincenzo Scamporlino --- .../EntityProcessingStatusPicker.test.tsx | 42 +------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/plugins/catalog-react/src/components/EntityProcessingStatusPicker/EntityProcessingStatusPicker.test.tsx b/plugins/catalog-react/src/components/EntityProcessingStatusPicker/EntityProcessingStatusPicker.test.tsx index 00d36e5e13..3321db6d96 100644 --- a/plugins/catalog-react/src/components/EntityProcessingStatusPicker/EntityProcessingStatusPicker.test.tsx +++ b/plugins/catalog-react/src/components/EntityProcessingStatusPicker/EntityProcessingStatusPicker.test.tsx @@ -14,48 +14,16 @@ * limitations under the License. */ -import { Entity } from '@backstage/catalog-model'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; import { EntityErrorFilter, EntityOrphanFilter } from '../../filters'; import { MockEntityListContextProvider } from '../../testUtils/providers'; import { EntityProcessingStatusPicker } from './EntityProcessingStatusPicker'; -const orphanAnnotation: Record = {}; -orphanAnnotation['backstage.io/orphan'] = 'true'; - -const sampleEntities: Entity[] = [ - { - apiVersion: '1', - kind: 'Component', - metadata: { - name: 'valid-component', - }, - }, - { - apiVersion: '1', - kind: 'Component', - metadata: { - name: 'orphan-component', - annotations: orphanAnnotation, - }, - }, - { - apiVersion: '1', - kind: 'Component', - metadata: { - name: 'error-component', - tags: ['Invalid Tag'], - }, - }, -]; - describe('', () => { it('renders all processing status options', () => { render( - + , ); @@ -71,8 +39,6 @@ describe('', () => { render( @@ -92,8 +58,6 @@ describe('', () => { render( @@ -113,8 +77,6 @@ describe('', () => { render( @@ -134,8 +96,6 @@ describe('', () => { render(