kibana/x-pack/test/security_solution_endpoint/page_objects/fleet_integrations_page.ts
Paul Tavares 8fc36d3fac
[Security_Solution][Endpoint] Register Custom tab into Fleet Endpoint Integration Detail (#85643) (#85877)
* Fleet: add component props to the Package Custom UI extension
* Endpoint: Register UI Extension with fleet for endpoint custom content
* Endpoint: UI for Trusted Apps custom entry

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 16:39:10 -05:00

32 lines
1.2 KiB
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { FtrProviderContext } from '../ftr_provider_context';
import { PLUGIN_ID } from '../../../plugins/fleet/common';
// NOTE: import path below should be the deep path to the actual module - else we get CI errors
import { pagePathGetters } from '../../../plugins/fleet/public/applications/fleet/constants/page_paths';
export function FleetIntegrations({ getService, getPageObjects }: FtrProviderContext) {
const pageObjects = getPageObjects(['common']);
const testSubjects = getService('testSubjects');
return {
async navigateToIntegrationDetails(pkgkey: string) {
await pageObjects.common.navigateToApp(PLUGIN_ID, {
hash: pagePathGetters.integration_details({ pkgkey }),
});
},
async integrationDetailCustomTabExistsOrFail() {
await testSubjects.existOrFail('tab-custom');
},
async findIntegrationDetailCustomTab() {
return await testSubjects.find('tab-custom');
},
};
}