mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
CCS Console test for integration test framework (#144477)
* Removed comment of the issue that was referenced for the skip. But the tests were already skipped. * Added a describe block for the tests that involve space b. There is an accessibility issue that causes one test to fail and then the subsequent test fails. The issue has been logged. The rest of the tests have been unskipped. * Added CCS Test for integration test. * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' Co-authored-by: cuffs <cuffs@cuffss-Office-MacBook-Pro.local> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
56e8555d8b
commit
f84b88bd58
2 changed files with 42 additions and 0 deletions
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* 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 expect from '@kbn/expect';
|
||||
|
||||
export default function ({ getService, getPageObjects }) {
|
||||
const retry = getService('retry');
|
||||
const log = getService('log');
|
||||
const PageObjects = getPageObjects(['common', 'console']);
|
||||
|
||||
describe('Integration Tests - Console App CCS', function describeIndexTests() {
|
||||
this.tags('includeFirefox');
|
||||
before(async () => {
|
||||
log.debug('navigateTo console');
|
||||
await PageObjects.common.navigateToApp('console');
|
||||
await retry.try(async () => {
|
||||
await PageObjects.console.collapseHelp();
|
||||
});
|
||||
});
|
||||
|
||||
describe('Perform CCS Search in Console', () => {
|
||||
before(async () => {
|
||||
await PageObjects.console.clearTextArea();
|
||||
});
|
||||
it('it should be able to access remote data', async () => {
|
||||
await PageObjects.console.enterRequest(
|
||||
'\nGET data:makelogs工程-*/_search\n {\n "query": {\n "bool": {\n "must": [\n {"match": {"extension" : "jpg"'
|
||||
);
|
||||
await PageObjects.console.clickPlay();
|
||||
await retry.try(async () => {
|
||||
const actualResponse = await PageObjects.console.getResponse();
|
||||
expect(actualResponse).to.contain('"_index": "data:makelogs工程-0"');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
|
@ -8,5 +8,6 @@
|
|||
export default function ({ loadTestFile }) {
|
||||
describe('ccs test', function () {
|
||||
loadTestFile(require.resolve('./ccs_discover'));
|
||||
loadTestFile(require.resolve('./ccs_console'));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue