snapshot fixes for tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -40,11 +40,13 @@ describe('convertLegacyPlugin', () => {
|
||||
"externalRoutes": {},
|
||||
"featureFlags": [],
|
||||
"getExtension": [Function],
|
||||
"icon": undefined,
|
||||
"id": "test",
|
||||
"info": [Function],
|
||||
"infoOptions": undefined,
|
||||
"pluginId": "test",
|
||||
"routes": {},
|
||||
"title": undefined,
|
||||
"toString": [Function],
|
||||
"version": "v1",
|
||||
"withOverrides": [Function],
|
||||
|
||||
@@ -388,11 +388,13 @@ describe('createApp', () => {
|
||||
<component:app/core-progress out=[core.swappableComponent] />
|
||||
<component:app/core-not-found-error-page out=[core.swappableComponent] />
|
||||
<component:app/core-error-display out=[core.swappableComponent] />
|
||||
<component:app/core-page-layout out=[core.swappableComponent] />
|
||||
]
|
||||
</api:app/swappable-components>
|
||||
<api:app/icons out=[core.api.factory] />
|
||||
<api:app/feature-flags out=[core.api.factory] />
|
||||
<api:app/plugin-wrapper out=[core.api.factory] />
|
||||
<api:app/header-actions out=[core.api.factory] />
|
||||
<api:app/translations out=[core.api.factory] />
|
||||
<api:app/components out=[core.api.factory] />
|
||||
]
|
||||
@@ -408,7 +410,7 @@ describe('createApp', () => {
|
||||
content [
|
||||
<app/routes out=[core.reactElement]>
|
||||
routes [
|
||||
<page:my-plugin out=[core.routing.path, core.reactElement] />
|
||||
<page:my-plugin out=[core.routing.path, core.reactElement, core.title] />
|
||||
]
|
||||
</app/routes>
|
||||
]
|
||||
|
||||
@@ -56,13 +56,63 @@ describe('PageBlueprint', () => {
|
||||
"path": {
|
||||
"type": "string",
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
},
|
||||
},
|
||||
"type": "object",
|
||||
},
|
||||
},
|
||||
"disabled": false,
|
||||
"factory": [Function],
|
||||
"inputs": {},
|
||||
"inputs": {
|
||||
"pages": {
|
||||
"$$type": "@backstage/ExtensionInput",
|
||||
"config": {
|
||||
"internal": false,
|
||||
"optional": false,
|
||||
"singleton": false,
|
||||
},
|
||||
"context": {
|
||||
"input": "pages",
|
||||
"kind": "page",
|
||||
"name": "test-page",
|
||||
},
|
||||
"extensionData": [
|
||||
[Function],
|
||||
{
|
||||
"$$type": "@backstage/ExtensionDataRef",
|
||||
"config": {
|
||||
"optional": true,
|
||||
},
|
||||
"id": "core.routing.ref",
|
||||
"optional": [Function],
|
||||
"toString": [Function],
|
||||
},
|
||||
[Function],
|
||||
{
|
||||
"$$type": "@backstage/ExtensionDataRef",
|
||||
"config": {
|
||||
"optional": true,
|
||||
},
|
||||
"id": "core.title",
|
||||
"optional": [Function],
|
||||
"toString": [Function],
|
||||
},
|
||||
{
|
||||
"$$type": "@backstage/ExtensionDataRef",
|
||||
"config": {
|
||||
"optional": true,
|
||||
},
|
||||
"id": "core.icon",
|
||||
"optional": [Function],
|
||||
"toString": [Function],
|
||||
},
|
||||
],
|
||||
"replaces": undefined,
|
||||
"withContext": [Function],
|
||||
},
|
||||
},
|
||||
"kind": "page",
|
||||
"name": "test-page",
|
||||
"output": [
|
||||
@@ -77,6 +127,24 @@ describe('PageBlueprint', () => {
|
||||
"optional": [Function],
|
||||
"toString": [Function],
|
||||
},
|
||||
{
|
||||
"$$type": "@backstage/ExtensionDataRef",
|
||||
"config": {
|
||||
"optional": true,
|
||||
},
|
||||
"id": "core.title",
|
||||
"optional": [Function],
|
||||
"toString": [Function],
|
||||
},
|
||||
{
|
||||
"$$type": "@backstage/ExtensionDataRef",
|
||||
"config": {
|
||||
"optional": true,
|
||||
},
|
||||
"id": "core.icon",
|
||||
"optional": [Function],
|
||||
"toString": [Function],
|
||||
},
|
||||
],
|
||||
"override": [Function],
|
||||
"toString": [Function],
|
||||
@@ -206,6 +274,7 @@ describe('PageBlueprint', () => {
|
||||
"core.reactElement",
|
||||
"core.routing.path",
|
||||
"core.routing.ref",
|
||||
"core.title",
|
||||
],
|
||||
}
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user