@bigbinary/neeto-playwright-commons 4.1.7 → 4.1.8
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.
- package/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -119496,7 +119496,10 @@ class Member {
|
|
|
119496
119496
|
.poll(async () => {
|
|
119497
119497
|
const jobResponse = await this.memberApis.jobStatus(jobId);
|
|
119498
119498
|
const responseBodyBuffer = await jobResponse?.body();
|
|
119499
|
-
const { is_completed: isCompleted } = JSON.parse(String(responseBodyBuffer));
|
|
119499
|
+
const { is_completed: isCompleted, is_successful: isSuccessful, error, } = JSON.parse(String(responseBodyBuffer));
|
|
119500
|
+
if (isCompleted && !isSuccessful) {
|
|
119501
|
+
throw new Error(`Member creation failed: ${error}`);
|
|
119502
|
+
}
|
|
119500
119503
|
return isCompleted;
|
|
119501
119504
|
}, { timeout: 60_000 })
|
|
119502
119505
|
.toBe(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"description": "A package encapsulating common playwright code across neeto projects.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
|
|
6
6
|
"license": "apache-2.0",
|