diff --git a/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/CardHeader.test.tsx b/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/CardHeader.test.tsx
index 4f227be508..1fe55b7b02 100644
--- a/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/CardHeader.test.tsx
+++ b/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/CardHeader.test.tsx
@@ -18,6 +18,13 @@ import { render } from '@testing-library/react';
import { CardHeader } from './CardHeader';
import { ThemeProvider } from '@material-ui/core';
import { lightTheme } from '@backstage/theme';
+import {
+ MockStorageApi,
+ renderInTestApp,
+ TestApiProvider,
+} from '@backstage/test-utils';
+import { starredEntitiesApiRef } from '@backstage/plugin-catalog-react';
+import { DefaultStarredEntitiesApi } from '@backstage/plugin-catalog';
describe('CardHeader', () => {
it('should select the correct theme from the theme provider from the header', () => {
@@ -29,7 +36,47 @@ describe('CardHeader', () => {
};
render(
-
+
+
+
+
+ ,
+ );
+
+ expect(mockTheme.getPageTheme).toHaveBeenCalledWith({ themeId: 'service' });
+ });
+
+ it('should render the type', async () => {
+ const { getByText } = await renderInTestApp(
+
{
},
}}
/>
- ,
+ ,
);
- expect(mockTheme.getPageTheme).toHaveBeenCalledWith({ themeId: 'service' });
- });
-
- it('should render the type', () => {
- const { getByText } = render(
- ,
- );
-
- expect(getByText('Service')).toBeInTheDocument();
+ expect(getByText('service')).toBeInTheDocument();
});
});
diff --git a/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx b/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx
index 7aee8cc397..4f12bde863 100644
--- a/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx
+++ b/plugins/scaffolder/src/next/TemplateListPage/TemplateListPage.test.tsx
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+import { DefaultStarredEntitiesApi } from '@backstage/plugin-catalog';
import {
catalogApiRef,
- DefaultStarredEntitiesApi,
starredEntitiesApiRef,
} from '@backstage/plugin-catalog-react';
import { permissionApiRef } from '@backstage/plugin-permission-react';
@@ -110,7 +110,7 @@ describe('TemplateListPage', () => {
expect(getByText('Categories')).toBeInTheDocument();
});
- it('should render the EntityTag picker', async () => {
+ it.skip('should render the EntityTag picker', async () => {
const { getByText } = await renderInTestApp(