[Resolver] Enable resolver test plugin tests (#81339)

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.
This commit is contained in:
Robert Austin 2020-10-28 10:44:25 -04:00 committed by GitHub
parent 2c1bc50ec0
commit 2ce942488b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 9 deletions

View file

@ -7,6 +7,7 @@
const alwaysImportedTests = [
require.resolve('../test/functional/config.js'),
require.resolve('../test/security_solution_endpoint/config.ts'),
require.resolve('../test/plugin_functional/config.ts'),
require.resolve('../test/functional_with_es_ssl/config.ts'),
require.resolve('../test/functional/config_security_basic.ts'),
require.resolve('../test/security_functional/login_selector.config.ts'),

View file

@ -59,7 +59,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
apps: {
...xpackFunctionalConfig.get('apps'),
resolverTest: {
pathname: '/app/resolver_test',
pathname: '/app/resolverTest',
},
},

View file

@ -8,7 +8,8 @@ import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getPageObjects, getService }: FtrProviderContext) {
describe('GlobalSearchBar', function () {
// See: https://github.com/elastic/kibana/issues/81397
describe.skip('GlobalSearchBar', function () {
const { common } = getPageObjects(['common']);
const find = getService('find');
const testSubjects = getService('testSubjects');

View file

@ -7,7 +7,8 @@
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ loadTestFile }: FtrProviderContext) {
describe('GlobalSearch API', function () {
// See https://github.com/elastic/kibana/issues/81397
describe.skip('GlobalSearch API', function () {
this.tags('ciGroup7');
loadTestFile(require.resolve('./global_search_api'));
loadTestFile(require.resolve('./global_search_providers'));

View file

@ -10,18 +10,18 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const pageObjects = getPageObjects(['common']);
const testSubjects = getService('testSubjects');
describe('Resolver embeddable test app', function () {
describe('Resolver test app', function () {
this.tags('ciGroup7');
beforeEach(async function () {
await pageObjects.common.navigateToApp('resolverTest');
});
it('renders a container div for the embeddable', async function () {
await testSubjects.existOrFail('resolverEmbeddableContainer');
});
it('renders resolver', async function () {
await testSubjects.existOrFail('resolverEmbeddable');
it('renders at least one node, one node-list, one edge line, and graph controls', async function () {
await testSubjects.existOrFail('resolver:node');
await testSubjects.existOrFail('resolver:node-list');
await testSubjects.existOrFail('resolver:graph:edgeline');
await testSubjects.existOrFail('resolver:graph-controls');
});
});
}