@@ -74,7 +74,7 @@ describe('collectLegacyRoutes', () => {
|
||||
},
|
||||
{
|
||||
id: 'api:plugin.scoringdata.service',
|
||||
attachTo: { id: 'app', input: 'apis' },
|
||||
attachTo: { id: 'root', input: 'apis' },
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
@@ -90,7 +90,7 @@ describe('collectLegacyRoutes', () => {
|
||||
},
|
||||
{
|
||||
id: 'api:plugin.stackstorm.service',
|
||||
attachTo: { id: 'app', input: 'apis' },
|
||||
attachTo: { id: 'root', input: 'apis' },
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
@@ -112,7 +112,7 @@ describe('collectLegacyRoutes', () => {
|
||||
},
|
||||
{
|
||||
id: 'api:plugin.puppetdb.service',
|
||||
attachTo: { id: 'app', input: 'apis' },
|
||||
attachTo: { id: 'root', input: 'apis' },
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
@@ -211,7 +211,7 @@ describe('collectLegacyRoutes', () => {
|
||||
{
|
||||
id: 'api:plugin.catalog.service',
|
||||
attachTo: {
|
||||
id: 'app',
|
||||
id: 'root',
|
||||
input: 'apis',
|
||||
},
|
||||
defaultConfig: undefined,
|
||||
@@ -220,7 +220,7 @@ describe('collectLegacyRoutes', () => {
|
||||
{
|
||||
id: 'api:catalog-react.starred-entities',
|
||||
attachTo: {
|
||||
id: 'app',
|
||||
id: 'root',
|
||||
input: 'apis',
|
||||
},
|
||||
defaultConfig: undefined,
|
||||
@@ -229,7 +229,7 @@ describe('collectLegacyRoutes', () => {
|
||||
{
|
||||
id: 'api:plugin.catalog.entity-presentation',
|
||||
attachTo: {
|
||||
id: 'app',
|
||||
id: 'root',
|
||||
input: 'apis',
|
||||
},
|
||||
defaultConfig: undefined,
|
||||
@@ -242,7 +242,7 @@ describe('collectLegacyRoutes', () => {
|
||||
extensions: [
|
||||
{
|
||||
id: 'api:plugin.scoringdata.service',
|
||||
attachTo: { id: 'app', input: 'apis' },
|
||||
attachTo: { id: 'root', input: 'apis' },
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -66,7 +66,7 @@ describe('convertLegacyApp', () => {
|
||||
},
|
||||
{
|
||||
id: 'api:plugin.scoringdata.service',
|
||||
attachTo: { id: 'app', input: 'apis' },
|
||||
attachTo: { id: 'root', input: 'apis' },
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
@@ -82,7 +82,7 @@ describe('convertLegacyApp', () => {
|
||||
},
|
||||
{
|
||||
id: 'api:plugin.stackstorm.service',
|
||||
attachTo: { id: 'app', input: 'apis' },
|
||||
attachTo: { id: 'root', input: 'apis' },
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
@@ -104,7 +104,7 @@ describe('convertLegacyApp', () => {
|
||||
},
|
||||
{
|
||||
id: 'api:plugin.puppetdb.service',
|
||||
attachTo: { id: 'app', input: 'apis' },
|
||||
attachTo: { id: 'root', input: 'apis' },
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -255,28 +255,32 @@ describe('createApp', () => {
|
||||
const { tree } = appTreeApi!.getTree();
|
||||
|
||||
expect(String(tree.root)).toMatchInlineSnapshot(`
|
||||
"<app out=[core.reactElement]>
|
||||
root [
|
||||
<app/root out=[core.reactElement]>
|
||||
children [
|
||||
<app/layout out=[core.reactElement]>
|
||||
content [
|
||||
<app/routes out=[core.reactElement]>
|
||||
routes [
|
||||
<page:my-plugin out=[core.routing.path, core.reactElement] />
|
||||
"<root>
|
||||
app [
|
||||
<app out=[core.reactElement]>
|
||||
root [
|
||||
<app/root out=[core.reactElement]>
|
||||
children [
|
||||
<app/layout out=[core.reactElement]>
|
||||
content [
|
||||
<app/routes out=[core.reactElement]>
|
||||
routes [
|
||||
<page:my-plugin out=[core.routing.path, core.reactElement] />
|
||||
]
|
||||
</app/routes>
|
||||
]
|
||||
</app/routes>
|
||||
nav [
|
||||
<app/nav out=[core.reactElement] />
|
||||
]
|
||||
</app/layout>
|
||||
]
|
||||
nav [
|
||||
<app/nav out=[core.reactElement] />
|
||||
elements [
|
||||
<app-root-element:app/oauth-request-dialog out=[core.reactElement] />
|
||||
<app-root-element:app/alert-display out=[core.reactElement] />
|
||||
]
|
||||
</app/layout>
|
||||
</app/root>
|
||||
]
|
||||
elements [
|
||||
<app-root-element:app/oauth-request-dialog out=[core.reactElement] />
|
||||
<app-root-element:app/alert-display out=[core.reactElement] />
|
||||
]
|
||||
</app/root>
|
||||
</app>
|
||||
]
|
||||
apis [
|
||||
<api:app-theme out=[core.api.factory]>
|
||||
@@ -315,7 +319,7 @@ describe('createApp', () => {
|
||||
<api:core.auth.vmware-cloud out=[core.api.factory] />
|
||||
<api:plugin.permission.api out=[core.api.factory] />
|
||||
]
|
||||
</app>"
|
||||
</root>"
|
||||
`);
|
||||
});
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ describe('ApiBlueprint', () => {
|
||||
{
|
||||
"$$type": "@backstage/ExtensionDefinition",
|
||||
"attachTo": {
|
||||
"id": "app",
|
||||
"id": "root",
|
||||
"input": "apis",
|
||||
},
|
||||
"configSchema": undefined,
|
||||
@@ -87,7 +87,7 @@ describe('ApiBlueprint', () => {
|
||||
{
|
||||
"$$type": "@backstage/ExtensionDefinition",
|
||||
"attachTo": {
|
||||
"id": "app",
|
||||
"id": "root",
|
||||
"input": "apis",
|
||||
},
|
||||
"configSchema": {
|
||||
|
||||
Reference in New Issue
Block a user