fix: saving e2e test report in Zephyr (#8080)
This commit is contained in:
parent
c3dc4c699e
commit
8fb0b32d89
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue