fix: saving e2e test report in Zephyr (#8080)

This commit is contained in:
Saturnino Abril 2024-07-12 23:37:31 +08:00 committed by GitHub
parent c3dc4c699e
commit 8fb0b32d89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,9 +139,12 @@ const saveReport = async () => {
// Create or use an existing test cycle
let testCycle = {};
if (ZEPHYR_ENABLE === true) {
if (ZEPHYR_ENABLE === 'true') {
const {start, end} = summary.stats;
testCycle = ZEPHYR_CYCLE_KEY ? {key: ZEPHYR_CYCLE_KEY} : await createTestCycle(start, end);
if (!testCycle?.key) {
console.log('Failed to create test cycle');
}
}
// Send test report to "QA: Mobile Test Automation Report" channel via webhook