@bigbinary/neeto-playwright-commons 1.22.2 → 1.22.4

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.d.ts CHANGED
@@ -3455,21 +3455,44 @@ declare class CustomDomainPage {
3455
3455
  neetoPlaywrightUtilities,
3456
3456
  product
3457
3457
  }: CustomDomainPageProps);
3458
- private getCustomDomain;
3458
+ /**
3459
+ *
3460
+ * Generates and returns the full custom domain URL using either a provided subdomain or the user's current subdomain from global state.
3461
+ *
3462
+ * newSubdomain (optional): A string representing the subdomain to use. If not provided, the method uses the subdomainName from the global user state.
3463
+ *
3464
+ * The full custom domain URL, combining the subdomain and the constant domain suffix.
3465
+ *
3466
+ * @example
3467
+ *
3468
+ * const domain = customDomainPage.getCustomDomain("cpt-form-534343434");
3469
+ * @endexample
3470
+ */
3471
+ getCustomDomain: (newSubdomain?: string) => string;
3459
3472
  private addCustomDomain;
3460
- private validateCustomDomain;
3473
+ /**
3474
+ *
3475
+ * Validates the custom domain via UI.
3476
+ *
3477
+ * domain: The custom domain string to validate.
3478
+ *
3479
+ * @example
3480
+ *
3481
+ * await customDomainPage.validateCustomDomain("custom.aceinvoice.com");
3482
+ * @endexample
3483
+ */
3484
+ validateCustomDomain: (domain: string) => Promise<void>;
3461
3485
  private loginToCustomDomain;
3462
3486
  private waitForTrustedSSL;
3463
3487
  private saveCustomDomainState;
3488
+ private waitForDomainPropagation;
3464
3489
  /**
3465
3490
  *
3466
3491
  * Used to set up a custom domain for the given product. This method is a high-level wrapper that handles connecting to the custom domain, logging in, and saving the session state. Skips execution if custom domain setup is disabled.
3467
3492
  *
3468
- * product (required): The name of the product for which the custom domain is being set up.
3469
- *
3470
3493
  * @example
3471
3494
  *
3472
- * await customDomainPage.setupCustomDomain("form");
3495
+ * await customDomainPage.setupCustomDomain();
3473
3496
  * @endexample
3474
3497
  */
3475
3498
  setupCustomDomain: () => Promise<void>;
@@ -3477,13 +3500,11 @@ declare class CustomDomainPage {
3477
3500
  *
3478
3501
  * Connects and validates a custom domain for the specified product.
3479
3502
  *
3480
- * product (required): The name of the product.
3481
- *
3482
3503
  * subdomain (optional): The subdomain to use for generating the custom domain.
3483
3504
  *
3484
3505
  * @example
3485
3506
  *
3486
- * await customDomainPage.connectCustomDomain("form", "cpt-form-534343434");
3507
+ * await customDomainPage.connectCustomDomain("cpt-form-534343434");
3487
3508
  * @endexample
3488
3509
  */
3489
3510
  connectCustomDomain: (subdomain?: string) => Promise<void>;
@@ -3491,13 +3512,9 @@ declare class CustomDomainPage {
3491
3512
  *
3492
3513
  * Removes an existing custom domain configuration via the UI for the given product. Validates that the domain has been successfully deleted. Skips execution if custom domain setup is disabled.
3493
3514
  *
3494
- * product (required): The name of the product.
3495
- *
3496
- * subdomain (optional): The subdomain to use for generating the custom domain.
3497
- *
3498
3515
  * @example
3499
3516
  *
3500
- * await customDomainPage.disconnectCustomDomain("form", "cpt-form-534343434");
3517
+ * await customDomainPage.disconnectCustomDomain();
3501
3518
  * @endexample
3502
3519
  */
3503
3520
  disconnectCustomDomain: () => Promise<void>;