mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
This PR addresses Cypress parallelisation in Security Solution scope. It is a first step in improving e2e tests reliability and gives us a solid foundation for further work on flakiness and run times. With this PR each CI job starts 3 instances of ES, kibana and Cypress runner in isolation. Other issues addressed in this PR: - Use click() instead of trigger('click') in all Cypress tests. - Use testIsolation in all Cypress tests. - login before each test to ensure that the correct user is always logged in. Also, with test isolation enabled, login should be required before each test. - use visit() instead of cy.visit() in some cases so that tests wait for the page to fully load before executing. - Cypress e2e tests are no longer compatible with Firefox (or any non-Chromium based browser) due to using cypress-real-events - Removes uses of cypress-pipe. Tests that used cypress-pipe in order to retry click events will no longer retry click events. - Fixes an error related to test files being overwritten by Webpack file processing --------- Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
60 lines
1.7 KiB
TypeScript
60 lines
1.7 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
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
export { KbnClientRequesterError } from './src/kbn_client/kbn_client_requester_error';
|
|
|
|
// @internal
|
|
export { startServersCli, startServers } from './src/functional_tests/start_servers';
|
|
|
|
// @internal
|
|
export { runTestsCli, runTests } from './src/functional_tests/run_tests';
|
|
|
|
export { runElasticsearch, runKibanaServer } from './src/functional_tests/lib';
|
|
export { getKibanaCliArg, getKibanaCliLoggers } from './src/functional_tests/lib/kibana_cli_args';
|
|
|
|
export type {
|
|
CreateTestEsClusterOptions,
|
|
EsTestCluster,
|
|
ICluster,
|
|
EsClientForTestingOptions,
|
|
} from './src/es';
|
|
export {
|
|
esTestConfig,
|
|
createTestEsCluster,
|
|
createEsClientForTesting,
|
|
createEsClientForFtrConfig,
|
|
createRemoteEsClientForFtrConfig,
|
|
} from './src/es';
|
|
|
|
export { kbnTestConfig } from './kbn_test_config';
|
|
|
|
export {
|
|
kibanaServerTestUser,
|
|
kibanaTestUser,
|
|
adminTestUser,
|
|
systemIndicesSuperuser,
|
|
} from './src/kbn';
|
|
|
|
// @internal
|
|
export { setupJUnitReportGeneration, escapeCdata } from './src/mocha';
|
|
|
|
export { CI_PARALLEL_PROCESS_PREFIX } from './src/ci_parallel_process_prefix';
|
|
|
|
export * from './src/functional_test_runner';
|
|
|
|
export { getUrl } from './src/jest/get_url';
|
|
|
|
export { runCheckJestConfigsCli } from './src/jest/run_check_jest_configs_cli';
|
|
|
|
export { runJest } from './src/jest/run';
|
|
|
|
export * from './src/kbn_archiver_cli';
|
|
|
|
export * from './src/kbn_client';
|
|
|
|
export * from './src/find_test_plugin_paths';
|