From 146116abcb410f9ca2baf32a967567aa133ea37d Mon Sep 17 00:00:00 2001 From: Pushpam Saxena <43639045+pushpam5@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:21:58 +0530 Subject: [PATCH] fix: added comments (#240) * fix: added comments * Create great-dingos-wink.md --- .changeset/great-dingos-wink.md | 5 +++++ src/providers/browserstack/index.ts | 1 + src/providers/lambdatest/index.ts | 1 + 3 files changed, 7 insertions(+) create mode 100644 .changeset/great-dingos-wink.md diff --git a/.changeset/great-dingos-wink.md b/.changeset/great-dingos-wink.md new file mode 100644 index 0000000..18d8266 --- /dev/null +++ b/.changeset/great-dingos-wink.md @@ -0,0 +1,5 @@ +--- +"appwright": patch +--- + +fix: added comments diff --git a/src/providers/browserstack/index.ts b/src/providers/browserstack/index.ts index 229a55d..b59a29b 100644 --- a/src/providers/browserstack/index.ts +++ b/src/providers/browserstack/index.ts @@ -198,6 +198,7 @@ export class BrowserStackDeviceProvider implements DeviceProvider { */ await new Promise((resolve) => setTimeout(resolve, 10_000)); const fileStream = fs.createWriteStream(tempPathForWriting); + //To catch the browserstack error in case all retries fails try { if (videoURL) { await retry( diff --git a/src/providers/lambdatest/index.ts b/src/providers/lambdatest/index.ts index 7855ba7..321f8a6 100644 --- a/src/providers/lambdatest/index.ts +++ b/src/providers/lambdatest/index.ts @@ -181,6 +181,7 @@ export class LambdaTestDeviceProvider implements DeviceProvider { const dir = path.dirname(pathToTestVideo); fs.mkdirSync(dir, { recursive: true }); const fileStream = fs.createWriteStream(tempPathForWriting); + //To catch the lambdatest error in case all retries fails try { if (videoURL) { await retry(