Added a new ReportAnalysisDialog component, accessible from the ReportViewerDialog, strictly for Admin users. It parses execution reports, extracts markdown metrics like processed orders, skipped materials, errors, and execution time, and presents them in an interactive recharts line chart aggregated by day. Co-authored-by: luwamgere15-crypto <255338376+luwamgere15-crypto@users.noreply.github.com>
19 lines
540 B
JavaScript
19 lines
540 B
JavaScript
const { _electron: electron } = require('playwright')
|
|
|
|
;(async () => {
|
|
const electronApp = await electron.launch({
|
|
args: ['.', '--no-sandbox', '--disable-gpu']
|
|
})
|
|
|
|
// Get the first window that the app opens
|
|
const window = await electronApp.firstWindow()
|
|
|
|
// Try to bypass auth and navigate to cleaner page if possible, but we don't know the exact DOM
|
|
await window.waitForTimeout(5000)
|
|
|
|
await window.screenshot({ path: 'tests/playwright/screenshot.png' })
|
|
console.log('Took screenshot')
|
|
|
|
await electronApp.close()
|
|
})()
|