## Description - Adds validations for Oracle Ds to run in Hosted instance - Trial fix for EmbedSettings/EmbedSettings_spec.js (checking the Appsmith is starting page goes away on its own) - Block_Execution.ts - updated to use Oracle mock data - Oracle tests [TC #2354](https://github.com/appsmithorg/TestSmith/issues/2354), [TC #2355](https://github.com/appsmithorg/TestSmith/issues/2355), [TC #2356](https://github.com/appsmithorg/TestSmith/issues/2356), [TC #2357](https://github.com/appsmithorg/TestSmith/issues/2357) Automated - Set Commit Message update for Hosted runs since now Airtable, ElasticSearch are also part along with GSheet cases - SMTP added verification on mail details (from, to, status, msg body etc) - Widgets/WidgetPropertySetters_spec.ts - Lint error case flaky fix #### Type of change - Script fix (non-breaking change which fixes an issue) ## Testing > #### How Has This Been Tested? - [X] Cypress CI runs ## Checklist: #### QA activity: - [X] Added `Test Plan Approved` label after Cypress tests were reviewed
63 lines
1.9 KiB
TypeScript
63 lines
1.9 KiB
TypeScript
import { defineConfig } from "cypress";
|
|
import fs from "fs";
|
|
|
|
export default defineConfig({
|
|
defaultCommandTimeout: 30000,
|
|
requestTimeout: 60000,
|
|
responseTimeout: 60000,
|
|
pageLoadTimeout: 60000,
|
|
videoUploadOnPasses: false,
|
|
numTestsKeptInMemory: 5,
|
|
experimentalMemoryManagement: true,
|
|
reporter: "cypress-mochawesome-reporter",
|
|
reporterOptions: {
|
|
reportDir: "results",
|
|
charts: true,
|
|
reportPageTitle: "Cypress-report",
|
|
videoOnFailOnly: true,
|
|
embeddedScreenshots: true,
|
|
inlineAssets: true,
|
|
saveAllAttempts: true,
|
|
},
|
|
chromeWebSecurity: false,
|
|
viewportHeight: 1200,
|
|
viewportWidth: 1400,
|
|
scrollBehavior: "center",
|
|
retries: {
|
|
runMode: 1,
|
|
openMode: 0,
|
|
},
|
|
e2e: {
|
|
baseUrl: "http://localhost/",
|
|
setupNodeEvents(on, config) {
|
|
require("cypress-mochawesome-reporter/plugin")(on);
|
|
on(
|
|
"after:spec",
|
|
(spec: Cypress.Spec, results: CypressCommandLine.RunResult) => {
|
|
if (results && results.video) {
|
|
// Do we have failures for any retry attempts?
|
|
const failures = results.tests.some((test) =>
|
|
test.attempts.some((attempt) => attempt.state === "failed"),
|
|
);
|
|
if (!failures) {
|
|
// delete the video if the spec passed and no tests retried
|
|
fs.unlinkSync(results.video);
|
|
}
|
|
}
|
|
},
|
|
);
|
|
return require("./cypress/plugins/index.js")(on, config);
|
|
},
|
|
specPattern: "cypress/e2e/**/*.{js,ts}",
|
|
testIsolation: false,
|
|
excludeSpecPattern: [
|
|
"cypress/e2e/**/spec_utility.ts",
|
|
"cypress/e2e/GSheet/**/**/*",
|
|
"cypress/e2e/Sanity/Datasources/Airtable_Basic_Spec.ts",
|
|
"cypress/e2e/EE/Enterprise/MultipleEnv/ME_airtable_spec.ts",
|
|
"cypress/e2e/Regression/ServerSide/Datasources/ElasticSearch_Basic_Spec.ts",
|
|
"cypress/e2e/Regression/ServerSide/Datasources/Oracle_Spec.ts",
|
|
],
|
|
},
|
|
});
|