From 71fe3cc0950e74629abc81717cb72e0638999559 Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Wed, 15 Nov 2023 16:51:53 +0800 Subject: [PATCH] feat: use cypress.config.js Signed-off-by: SuZhou-Joe --- cypress.config.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 cypress.config.js diff --git a/cypress.config.js b/cypress.config.js new file mode 100644 index 000000000..e4e84c810 --- /dev/null +++ b/cypress.config.js @@ -0,0 +1,34 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ +const { defineConfig } = require('cypress'); + +module.exports = defineConfig({ + e2e: { + defaultCommandTimeout: 60000, + requestTimeout: 60000, + responseTimeout: 60000, + baseUrl: 'http://localhost:5601', + reporter: 'cypress-multi-reporters', + reporterOptions: { + configFile: 'reporter-config.json', + }, + viewportWidth: 2000, + viewportHeight: 1320, + env: { + openSearchUrl: 'http://localhost:9200', + SECURITY_ENABLED: false, + AGGREGATION_VIEW: false, + username: 'admin', + password: 'admin', + ENDPOINT_WITH_PROXY: false, + MANAGED_SERVICE_ENDPOINT: false, + VISBUILDER_ENABLED: true, + DATASOURCE_MANAGEMENT_ENABLED: false, + ML_COMMONS_DASHBOARDS_ENABLED: true, + WAIT_FOR_LOADER_BUFFER_MS: 0, + NO_COMMAND_LOG: 1, + }, + }, +});