Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add tests (they don’t run on ci yet)
  • Loading branch information
Dosant committed Jun 15, 2023
commit ba2e2beb2d9a788a05ca1c25399bda86d8736a3b
10 changes: 9 additions & 1 deletion x-pack/test/cloud_integration/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,15 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
'dateFormat:tz': 'UTC',
},
},
apps: kibanaFunctionalConfig.get('apps'),
apps: {
...kibanaFunctionalConfig.get('apps'),
observability: {
pathname: '/app/observability',
},
security: {
pathname: '/app/security',
},
},
screenshots: { directory: resolve(__dirname, 'screenshots') },

junit: {
Expand Down
25 changes: 23 additions & 2 deletions x-pack/test/cloud_integration/tests/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,45 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

it('chat widget is present on integrations page', async () => {
PageObjects.common.navigateToUrl('integrations', 'browse', {
await PageObjects.common.navigateToUrl('integrations', 'browse', {
useActualUrl: true,
shouldUseHashForSubUrl: false,
});
await testSubjects.existOrFail('cloud-chat');
});

it('chat widget is present on home getting_started page', async () => {
PageObjects.common.navigateToUrl('home', '/getting_started', {
await PageObjects.common.navigateToUrl('home', '/getting_started', {
useActualUrl: true,
shouldUseHashForSubUrl: true,
});
await testSubjects.existOrFail('cloud-chat');
});

it('chat widget is present on management page', async () => {
await PageObjects.common.navigateToApp('management');
await testSubjects.existOrFail('cloud-chat');
});

it('chat widget is present on management page', async () => {
PageObjects.common.navigateToApp('management');
await testSubjects.existOrFail('cloud-chat');
});

it('chat widget is present on observability/overview page', async () => {
await PageObjects.common.navigateToUrl('observability', '/overview', {
useActualUrl: true,
shouldUseHashForSubUrl: true,
});
await testSubjects.existOrFail('cloud-chat');
});

it('chat widget is present on security/get_started page', async () => {
await PageObjects.common.navigateToUrl('security', '/get_started', {
useActualUrl: true,
shouldUseHashForSubUrl: true,
});
await testSubjects.existOrFail('cloud-chat');
});
});
}