This commit is contained in:
Alejandro Fernández Haro 2024-08-29 02:23:42 +02:00 committed by GitHub
parent fde3321c30
commit 454be59c14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 10 deletions

View file

@ -8,6 +8,7 @@
import path from 'path';
import expect from '@kbn/expect';
import { byIdAscComparator } from '@kbn/core-saved-objects-import-export-server-internal/src/export/utils';
import { PluginFunctionalProviderContext } from '../../services';
const fixturePaths = {
@ -47,11 +48,13 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
.expect(200)
.then((resp) => {
expect(
resp.body.saved_objects.map((obj: any) => ({
id: obj.id,
type: obj.type,
hidden: obj.meta.hiddenType,
}))
resp.body.saved_objects
.map((obj: any) => ({
id: obj.id,
type: obj.type,
hidden: obj.meta.hiddenType,
}))
.sort(byIdAscComparator)
).to.eql([
{
id: 'obj_1',

View file

@ -78,5 +78,6 @@
"@kbn/default-nav-analytics",
"@kbn/default-nav-management",
"@kbn/default-nav-devtools",
"@kbn/core-saved-objects-import-export-server-internal",
]
}

View file

@ -7,6 +7,7 @@
import path from 'path';
import expect from '@kbn/expect';
import { byIdAscComparator } from '@kbn/core-saved-objects-import-export-server-internal/src/export/utils';
import { FtrProviderContext } from '../../../ftr_provider_context';
const fixturePaths = {
@ -55,11 +56,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
.expect(200)
.then((resp) => {
expect(
resp.body.saved_objects.map((obj: any) => ({
id: obj.id,
type: obj.type,
hidden: obj.meta.hiddenType,
}))
resp.body.saved_objects
.map((obj: any) => ({
id: obj.id,
type: obj.type,
hidden: obj.meta.hiddenType,
}))
.sort(byIdAscComparator)
).to.eql([
{
id: 'obj_1',

View file

@ -98,5 +98,6 @@
"@kbn/test-suites-src",
"@kbn/console-plugin",
"@kbn/cloud-security-posture-common",
"@kbn/core-saved-objects-import-export-server-internal",
]
}