From 6ed60fccb21e67a540ec524c54fd2594057c61bd Mon Sep 17 00:00:00 2001 From: Oleksandr Pelykh Date: Thu, 10 Oct 2024 15:39:53 +0300 Subject: [PATCH] fix: artifact uploading prevents playwright run status update --- lib/adapter/playwright.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/adapter/playwright.js b/lib/adapter/playwright.js index c97479d1..10398dee 100644 --- a/lib/adapter/playwright.js +++ b/lib/adapter/playwright.js @@ -104,6 +104,7 @@ class PlaywrightReporter { if (!this.client) return; await Promise.all(reportTestPromises); + await this.client.updateRunStatus(checkStatus(result.status)); if (!this.uploads.length) return; @@ -135,8 +136,6 @@ class PlaywrightReporter { ); } await Promise.all(promises); - - await this.client.updateRunStatus(checkStatus(result.status)); } }