Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Sep 26, 2024
1 parent e451828 commit 0ce6afa
Showing 1 changed file with 53 additions and 83 deletions.
136 changes: 53 additions & 83 deletions x-pack/test/functional_execution_context/tests/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
type: 'application',
name: 'discover',
url: '/app/discover',
page: 'app',
id: 'new',
description: 'fetch chart data and total hits',
child: {
name: 'discover',
url: '/app/discover',
type: 'application',
page: 'app',
id: 'new',
description: 'fetch chart data and total hits',
child: {
type: 'lens',
name: 'lnsXY',
id: 'unifiedHistogramLensComponent',
description: 'Edit visualization',
url: '/app/lens#/edit_by_value',
},
type: 'lens',
name: 'lnsXY',
id: 'unifiedHistogramLensComponent',
description: 'Edit visualization',
url: '/app/lens#/edit_by_value',
},
}),
});
Expand Down Expand Up @@ -190,23 +185,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await logContains({
description: 'execution context propagates to Kibana logs',
predicate: checkExecutionContextEntry({
type: 'application',
type: 'dashboard',
name: 'dashboards',
url: '/app/dashboards',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
name: 'dashboards',
url: '/app/dashboards',
type: 'dashboard',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
type: 'lens',
name: 'lnsXY',
id: '086ac2e9-dd16-4b45-92b8-1e43ff7e3f65',
description: '[Flights] Flight count',
url: '/app/lens#/edit_by_value',
},
type: 'lens',
name: 'lnsXY',
id: '086ac2e9-dd16-4b45-92b8-1e43ff7e3f65',
description: '[Flights] Flight count',
url: '/app/lens#/edit_by_value',
},
}),
});
Expand All @@ -227,23 +217,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await logContains({
description: 'execution context propagates to Kibana logs',
predicate: checkExecutionContextEntry({
type: 'dashboard',
name: 'dashboards',
url: '/app/dashboards',
type: 'application',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
name: 'dashboards',
url: '/app/dashboards',
type: 'dashboard',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
type: 'lens',
name: 'lnsMetric',
id: 'b766e3b8-4544-46ed-99e6-9ecc4847e2a2',
description: '',
url: '/app/lens#/edit_by_value',
},
type: 'lens',
name: 'lnsMetric',
id: 'b766e3b8-4544-46ed-99e6-9ecc4847e2a2',
description: '',
url: '/app/lens#/edit_by_value',
},
}),
});
Expand All @@ -264,23 +249,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await logContains({
description: 'execution context propagates to Kibana logs',
predicate: checkExecutionContextEntry({
type: 'dashboard',
name: 'dashboards',
url: '/app/dashboards',
type: 'application',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
name: 'dashboards',
url: '/app/dashboards',
type: 'dashboard',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
type: 'lens',
name: 'lnsDatatable',
id: 'fb86b32f-fb7a-45cf-9511-f366fef51bbd',
description: 'Cities by delay, cancellation',
url: '/app/lens#/edit_by_value',
},
type: 'lens',
name: 'lnsDatatable',
id: 'fb86b32f-fb7a-45cf-9511-f366fef51bbd',
description: 'Cities by delay, cancellation',
url: '/app/lens#/edit_by_value',
},
}),
});
Expand All @@ -301,23 +281,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await logContains({
description: 'execution context propagates to Kibana logs',
predicate: checkExecutionContextEntry({
type: 'dashboard',
name: 'dashboards',
url: '/app/dashboards',
type: 'application',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
name: 'dashboards',
url: '/app/dashboards',
type: 'dashboard',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
type: 'lens',
name: 'lnsPie',
id: '5d53db36-2d5a-4adc-af7b-cec4c1a294e0',
description: '[Flights] Delay Type',
url: '/app/lens#/edit_by_value',
},
type: 'lens',
name: 'lnsPie',
id: '5d53db36-2d5a-4adc-af7b-cec4c1a294e0',
description: '[Flights] Delay Type',
url: '/app/lens#/edit_by_value',
},
}),
});
Expand All @@ -339,23 +314,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await logContains({
description: 'execution context propagates to Kibana logs',
predicate: checkExecutionContextEntry({
type: 'application',
type: 'dashboard',
name: 'dashboards',
url: '/app/dashboards',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
type: 'dashboard',
name: 'dashboards',
url: '/app/dashboards',
page: 'app',
id: '7adfa750-4c81-11e8-b3d7-01146121b73d',
description: '[Flights] Global Flight Dashboard',
child: {
type: 'search',
name: 'discover',
id: '571aaf70-4c88-11e8-b3d7-01146121b73d',
description: '[Flights] Flight Log',
url: '/app/discover#/view/571aaf70-4c88-11e8-b3d7-01146121b73d',
},
type: 'search',
name: 'discover',
id: '571aaf70-4c88-11e8-b3d7-01146121b73d',
description: '[Flights] Flight Log',
url: '/app/discover#/view/571aaf70-4c88-11e8-b3d7-01146121b73d',
},
}),
});
Expand Down

0 comments on commit 0ce6afa

Please sign in to comment.