@bigbinary/neeto-playwright-commons 4.1.6 → 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.
Files changed (2) hide show
  1. package/index.js +12 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4388,7 +4388,11 @@ const genKeccak = (suffix, blockLen, outputLen, info = {})=>createHasher(()=>new
4388
4388
 
4389
4389
  const initializeTotp = ({ issuer, secret, }) => {
4390
4390
  if (isNotPresent(secret)) {
4391
- throw new Error("Secret for TOTP generation is not defined.");
4391
+ // Set dummy 2FA secret in dev env to prevent TOTP init from throwing error
4392
+ if (IS_DEV_ENV)
4393
+ secret = "JBSWY3DPEHPK3PXP";
4394
+ else
4395
+ throw new Error("Secret for TOTP generation is not defined.");
4392
4396
  }
4393
4397
  return new TOTP({
4394
4398
  issuer,
@@ -119492,7 +119496,10 @@ class Member {
119492
119496
  .poll(async () => {
119493
119497
  const jobResponse = await this.memberApis.jobStatus(jobId);
119494
119498
  const responseBodyBuffer = await jobResponse?.body();
119495
- 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
+ }
119496
119503
  return isCompleted;
119497
119504
  }, { timeout: 60_000 })
119498
119505
  .toBe(true);
@@ -125305,9 +125312,9 @@ const REFRESH_TOKEN_ENV_KEYS = {
125305
125312
  outlook: "EMAIL_DELIVERY_OUTLOOK_REFRESH_TOKEN",
125306
125313
  };
125307
125314
  const FROM_EMAIL_ENV_KEYS = {
125308
- gmail: "EMAIL_DELIVERY_CONNECTED_GMAIL",
125309
- outlook: "EMAIL_DELIVERY_CONNECTED_OUTLOOK",
125310
- sparkpost: "EMAIL_DELIVERY_CONNECTED_SPARKPOST",
125315
+ gmail: "GOOGLE_LOGIN_EMAIL",
125316
+ outlook: "MICROSOFT_LOGIN_EMAIL",
125317
+ sparkpost: "SPARKPOST_EMAIL",
125311
125318
  };
125312
125319
  class EmailDeliveryUtils {
125313
125320
  neetoPlaywrightUtilities;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.1.6",
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",