Skip to content

Commit 7307f54

Browse files
author
Robert Austin
authored
[Resolver] Enable resolver test plugin tests (#81339) (#81906)
Resolver has a test plugin. It can be found in `x-pack/tests/plugin_functional`. You can try it out like this: ``` yarn start --plugin-path x-pack/test/plugin_functional/plugins/resolver_test/ ``` This PR enables automated tests for the test plugin. This ensures that the test plugin will render.
1 parent 09929a3 commit 7307f54

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

x-pack/scripts/functional_tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ require('../../src/setup_node_env');
99
require('@kbn/test').runTestsCli([
1010
require.resolve('../test/functional/config.js'),
1111
require.resolve('../test/security_solution_endpoint/config.ts'),
12+
require.resolve('../test/plugin_functional/config.ts'),
1213
require.resolve('../test/functional_with_es_ssl/config.ts'),
1314
require.resolve('../test/functional/config_security_basic.ts'),
1415
require.resolve('../test/security_functional/login_selector.config.ts'),

x-pack/test/plugin_functional/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
5959
apps: {
6060
...xpackFunctionalConfig.get('apps'),
6161
resolverTest: {
62-
pathname: '/app/resolver_test',
62+
pathname: '/app/resolverTest',
6363
},
6464
},
6565

x-pack/test/plugin_functional/test_suites/global_search/global_search_bar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import expect from '@kbn/expect';
88
import { FtrProviderContext } from '../../ftr_provider_context';
99

1010
export default function ({ getPageObjects, getService }: FtrProviderContext) {
11-
describe('GlobalSearchBar', function () {
11+
// See: https://github.com/elastic/kibana/issues/81397
12+
describe.skip('GlobalSearchBar', function () {
1213
const { common } = getPageObjects(['common']);
1314
const find = getService('find');
1415
const testSubjects = getService('testSubjects');

x-pack/test/plugin_functional/test_suites/global_search/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import { FtrProviderContext } from '../../ftr_provider_context';
88

99
export default function ({ loadTestFile }: FtrProviderContext) {
10-
describe('GlobalSearch API', function () {
10+
// See https://github.com/elastic/kibana/issues/81397
11+
describe.skip('GlobalSearch API', function () {
1112
this.tags('ciGroup7');
1213
loadTestFile(require.resolve('./global_search_api'));
1314
loadTestFile(require.resolve('./global_search_providers'));

x-pack/test/plugin_functional/test_suites/resolver/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
1010
const pageObjects = getPageObjects(['common']);
1111
const testSubjects = getService('testSubjects');
1212

13-
describe('Resolver embeddable test app', function () {
13+
describe('Resolver test app', function () {
1414
this.tags('ciGroup7');
1515

1616
beforeEach(async function () {
1717
await pageObjects.common.navigateToApp('resolverTest');
1818
});
1919

20-
it('renders a container div for the embeddable', async function () {
21-
await testSubjects.existOrFail('resolverEmbeddableContainer');
22-
});
23-
it('renders resolver', async function () {
24-
await testSubjects.existOrFail('resolverEmbeddable');
20+
it('renders at least one node, one node-list, one edge line, and graph controls', async function () {
21+
await testSubjects.existOrFail('resolver:node');
22+
await testSubjects.existOrFail('resolver:node-list');
23+
await testSubjects.existOrFail('resolver:graph:edgeline');
24+
await testSubjects.existOrFail('resolver:graph-controls');
2525
});
2626
});
2727
}

0 commit comments

Comments
 (0)