mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
basic smoke test for Fleet installation package (#145475)
covers https://github.com/elastic/kibana/pull/144899 checks `Elastic Synthetics` shows up when navigated to Installed Integrations <img width="1616" alt="Screen Shot 2022-11-16 at 3 16 32 PM" src="https://user-images.githubusercontent.com/11466284/202315280-d5b1d730-df82-4dbb-9da1-35b001683b27.png">
This commit is contained in:
parent
7e5bf37e79
commit
6d4cadaeac
3 changed files with 35 additions and 0 deletions
|
@ -12,5 +12,6 @@ export default function (providerContext: FtrProviderContext) {
|
|||
|
||||
describe('endpoint', function () {
|
||||
loadTestFile(require.resolve('./agents_page'));
|
||||
loadTestFile(require.resolve('./integration_smoke'));
|
||||
});
|
||||
}
|
||||
|
|
30
x-pack/test/fleet_functional/apps/fleet/integration_smoke.ts
Normal file
30
x-pack/test/fleet_functional/apps/fleet/integration_smoke.ts
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||
const PageObjects = getPageObjects(['common']);
|
||||
const testSubjects = getService('testSubjects');
|
||||
|
||||
describe('Elastic synthetics integration', function () {
|
||||
this.tags(['smoke']);
|
||||
before(async () => {
|
||||
await PageObjects.common.navigateToUrl('management', 'integrations/installed', {
|
||||
ensureCurrentUrl: false,
|
||||
shouldLoginIfPrompted: false,
|
||||
shouldUseHashForSubUrl: false,
|
||||
});
|
||||
});
|
||||
|
||||
// This is a basic smoke test to cover Fleet package installed logic
|
||||
// https://github.com/elastic/kibana/pull/144899
|
||||
it('should show the Elastic synthetics integration', async () => {
|
||||
await testSubjects.exists('integration-card:epr:synthetics');
|
||||
});
|
||||
});
|
||||
}
|
|
@ -34,6 +34,9 @@ export default async ({ readConfigFile }) => {
|
|||
const xpackFunctionalConfig = await readConfigFile(
|
||||
require.resolve('../../functional/config.ccs.ts')
|
||||
);
|
||||
const fleetFunctionalConfig = await readConfigFile(
|
||||
require.resolve('../../fleet_functional/config.ts')
|
||||
);
|
||||
process.env.stack_functional_integration = true;
|
||||
logAll(log);
|
||||
|
||||
|
@ -42,6 +45,7 @@ export default async ({ readConfigFile }) => {
|
|||
pageObjects: {
|
||||
triggersActionsUI: TriggersActionsPageProvider,
|
||||
...xpackFunctionalConfig.get('pageObjects'),
|
||||
...fleetFunctionalConfig.get('pageObjects'),
|
||||
},
|
||||
apps: {
|
||||
...xpackFunctionalConfig.get('apps'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue