From 2e514c8671e1bad04ac49339a40e4bc552ab5e24 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Wed, 9 Jul 2025 13:09:15 -0400 Subject: [PATCH] Updates test report folder path Updates the folder path for test reports to be 'ortoni-report' in CI environments, otherwise defaults to 'test-results'. The conditional logic ensures that test results are stored in a dedicated 'ortoni-report' folder during CI runs, enabling more manageable reports. The changes related to jiraCreationPermissions are commented out as TODOs and will be changed back in the future. --- playwright-tests/playwright.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwright-tests/playwright.config.ts b/playwright-tests/playwright.config.ts index 90a7183eb..5d3be4118 100644 --- a/playwright-tests/playwright.config.ts +++ b/playwright-tests/playwright.config.ts @@ -37,7 +37,7 @@ if (!process.env.CI) { // Ortoni config const ortoniReportConfig: OrtoniReportConfig = { open: "never", - folderPath: 'playwright-tests/test-results', + folderPath: process.env.CI? 'ortoni-report': 'test-results', title: "Test Report", filename: `ortoni_report_${formatDateForFilename(new Date())}.html`, showProject: false, @@ -61,8 +61,8 @@ const jiraReportConfig: JiraReporterConfig = { jiraBoardId: process.env.JIRA_BOARD_ID || '' }, jiraCreationPermissions: { - isCreateTestSubtasks: false, - isCreateBugs: false + isCreateTestSubtasks: false, // TODO: Change back to process.env.IS_REGRESSION !== 'true', + isCreateBugs: false // TODO: Change back to process.env.IS_REGRESSION !== 'true' }, // Wrapped ortoni config ...ortoniReportConfig