diff --git a/packages/frontend-defaults/src/createApp.test.tsx b/packages/frontend-defaults/src/createApp.test.tsx index 06872a5691..899d5d1640 100644 --- a/packages/frontend-defaults/src/createApp.test.tsx +++ b/packages/frontend-defaults/src/createApp.test.tsx @@ -29,9 +29,17 @@ import { CreateAppFeatureLoader, createApp } from './createApp'; import { mockApis, renderWithEffects } from '@backstage/test-utils'; import React from 'react'; import { featureFlagsApiRef, useApi } from '@backstage/core-plugin-api'; -import appPlugin from '@backstage/plugin-app'; +import { default as appPluginOriginal } from '@backstage/plugin-app'; describe('createApp', () => { + const appPlugin = appPluginOriginal.withOverrides({ + extensions: [ + appPluginOriginal + .getExtension('sign-in-page:app') + .override({ disabled: true }), + ], + }); + it('should allow themes to be installed', async () => { const app = createApp({ configLoader: async () => ({ @@ -98,6 +106,7 @@ describe('createApp', () => { }), ], }), + appPlugin, ], }); @@ -231,6 +240,7 @@ describe('createApp', () => { const app = createApp({ configLoader: async () => ({ config: mockApis.config() }), features: [ + appPlugin, createFrontendPlugin({ id: 'my-plugin', extensions: [ @@ -277,6 +287,8 @@ describe('createApp', () => { + + themes [ @@ -317,6 +329,9 @@ describe('createApp', () => { ] + signInPage [ + + ] ] diff --git a/packages/frontend-test-utils/src/app/renderInTestApp.tsx b/packages/frontend-test-utils/src/app/renderInTestApp.tsx index e53566a118..7f03921077 100644 --- a/packages/frontend-test-utils/src/app/renderInTestApp.tsx +++ b/packages/frontend-test-utils/src/app/renderInTestApp.tsx @@ -96,6 +96,9 @@ const NavItem = (props: { const appPluginOverride = appPlugin.withOverrides({ extensions: [ + appPlugin.getExtension('sign-in-page:app').override({ + disabled: true, + }), appPlugin.getExtension('app/nav').override({ output: [coreExtensionData.reactElement], factory(_originalFactory, { inputs }) { diff --git a/yarn.lock b/yarn.lock index f8618cba94..f50c38ad17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4978,6 +4978,7 @@ __metadata: "@backstage/dev-utils": "workspace:^" "@backstage/frontend-plugin-api": "workspace:^" "@backstage/frontend-test-utils": "workspace:^" + "@backstage/integration-react": "workspace:^" "@backstage/plugin-permission-react": "workspace:^" "@backstage/theme": "workspace:^" "@material-ui/core": ^4.9.13