playwright-slack-report-burak 3.5.2 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -584,7 +584,11 @@ class ResultsParser {
|
|
|
584
584
|
console.log(`Uploading playwright-report to MinIO: ${destination}`);
|
|
585
585
|
// Pass credentials as separate args (not embedded in a URL) to avoid encoding issues.
|
|
586
586
|
execFileSync('mc', ['--config-dir', mcConfigDir, 'alias', 'set', MINIO_ALIAS, MINIO_ENDPOINT, MINIO_ACCESS_KEY, MINIO_SECRET_KEY], { stdio: 'ignore' });
|
|
587
|
-
execFileSync('mc', ['--config-dir', mcConfigDir, 'cp', '--recursive', `${PLAYWRIGHT_REPORT_DIR}/`, `${destination}/`], {
|
|
587
|
+
const cpOutput = execFileSync('mc', ['--config-dir', mcConfigDir, 'cp', '--recursive', `${PLAYWRIGHT_REPORT_DIR}/`, `${destination}/`], { encoding: 'utf8' });
|
|
588
|
+
const summary = cpOutput.split('\n').filter((line) => !line.includes(' -> ')).join('\n').trim();
|
|
589
|
+
if (summary) {
|
|
590
|
+
console.log(summary);
|
|
591
|
+
}
|
|
588
592
|
console.log(`Successfully uploaded playwright-report to MinIO: ${destination}`);
|
|
589
593
|
} catch (error) {
|
|
590
594
|
console.warn('Warning: Failed to push reports to MinIO. This may not affect the overall process.', error.message);
|
package/package.json
CHANGED