From cd5ddf946a08a3b2c6aea9b3713c361e89b5802f Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Fri, 9 May 2025 15:34:12 -0400 Subject: [PATCH] Updates report configuration and project name Updates the report configuration to adjust folder paths, logo locations, and the project name, ensuring correct paths and the proper project is referenced in reports. --- playwright-tests/impl/reporter/JiraWritebackReporter.ts | 4 ++-- playwright-tests/playwright.config.ts | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/playwright-tests/impl/reporter/JiraWritebackReporter.ts b/playwright-tests/impl/reporter/JiraWritebackReporter.ts index b94d2315e..6f228be00 100644 --- a/playwright-tests/impl/reporter/JiraWritebackReporter.ts +++ b/playwright-tests/impl/reporter/JiraWritebackReporter.ts @@ -18,12 +18,12 @@ const reportName = `ortoni_report_${currentDate}.html`; const reportConfig: OrtoniReportConfig = { port: 1994, open: "never", - folderPath: "artifacts/test-results", + folderPath: "ortoni-report", filename: reportName, logo: 'playwright-tests/business-logic/data/logo.png', title: "Test Report", showProject: false, - projectName: "FMG-Nextgen-Playwright-Report", + projectName: "ISS-Nextgen-Playwright-Report", testType: `E2E- Environment: ${process.env.NODE_ENV} `, preferredTheme: "light", base64Image: true, diff --git a/playwright-tests/playwright.config.ts b/playwright-tests/playwright.config.ts index 93de9ce98..10bde4030 100644 --- a/playwright-tests/playwright.config.ts +++ b/playwright-tests/playwright.config.ts @@ -32,12 +32,13 @@ if (!process.env.CI) { /** * See https://playwright.dev/docs/test-configuration. */ +// Ortoni config const reportConfig: OrtoniReportConfig = { port: 1994, open: "never", - folderPath: "artifacts/test-results", + folderPath: "test-results", filename: "index.html", - logo: "../data/logo.png", + logo: "../business-logic/data/logo.png", title: "Test Report", showProject: false, projectName: "FMG-Nextgen-Playwright-Report", @@ -46,6 +47,7 @@ const reportConfig: OrtoniReportConfig = { base64Image: true, }; + export default defineConfig({ testDir: './tests', /* Run tests in files in parallel */