@bigbinary/neeto-playwright-commons 5.2.0 → 5.2.2

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 (3) hide show
  1. package/index.d.ts +18 -3
  2. package/index.js +11 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4536,9 +4536,15 @@ declare class CustomDomainPage {
4536
4536
  connectCustomDomainOnReviewApp: () => Promise<void>;
4537
4537
  /**
4538
4538
  *
4539
- * Validates the custom domain via UI. Clicks Validate once, then polls
4539
+ * Validates the custom domain via UI. Clicks Validate, then polls
4540
4540
  *
4541
- * GET /api/v1/custom_domains until the domain status is active. Skips the
4541
+ * GET /api/v1/custom_domains until the domain status is active, re-issuing
4542
+ *
4543
+ * PATCH /api/v1/custom_domains/validate_domain on each attempt that is not yet
4544
+ *
4545
+ * active — the backend only re-evaluates a domain pending certificate
4546
+ *
4547
+ * propagation when validation is invoked again. Skips the
4542
4548
  *
4543
4549
  * test when certificate infrastructure is outside the suite's control (Let's
4544
4550
  *
@@ -6256,10 +6262,16 @@ declare const fixedMenuSelector: (selector: string) => string;
6256
6262
  *
6257
6263
  * editorMediaUploaderTab: Selector for the media upload tab.
6258
6264
  *
6259
- * commandListItem: Selector for slash command menu buttons.
6265
+ * commandListItem(index: number): Method that generates a selector for slash command menu buttons based on the index.
6260
6266
  *
6261
6267
  * itemBlockHeading: Selector for list item block heading.
6262
6268
  *
6269
+ * addLinkOpenInNewTabCheckbox: Selector for the "Open in new tab" switch in the add link popover.
6270
+ *
6271
+ * linkPopoverEditButton: Selector for the edit button in the link popover.
6272
+ *
6273
+ * editLinkSubmitButton: Selector for the submit button of the edit link flow.
6274
+ *
6263
6275
  */
6264
6276
  declare const NEETO_EDITOR_SELECTORS: {
6265
6277
  fontSize: string;
@@ -6297,6 +6309,9 @@ declare const NEETO_EDITOR_SELECTORS: {
6297
6309
  linkOption: string;
6298
6310
  addLinkUrlInput: string;
6299
6311
  addLinkDoneButton: string;
6312
+ addLinkOpenInNewTabCheckbox: string;
6313
+ linkPopoverEditButton: string;
6314
+ editLinkSubmitButton: string;
6300
6315
  unlinkButton: string;
6301
6316
  editorAttachmentsButton: string;
6302
6317
  attachmentPreviewDeleteButton: string;
package/index.js CHANGED
@@ -2339,6 +2339,9 @@ const NEETO_EDITOR_SELECTORS = {
2339
2339
  linkOption: optionSelector("link"),
2340
2340
  addLinkUrlInput: "neeto-editor-add-link-url-input",
2341
2341
  addLinkDoneButton: "neeto-editor-add-link",
2342
+ addLinkOpenInNewTabCheckbox: "neeto-editor-add-link-open-in-new-tab-switch",
2343
+ linkPopoverEditButton: "neeto-editor-link-popover-edit",
2344
+ editLinkSubmitButton: "neeto-editor-edit-link",
2342
2345
  unlinkButton: "neeto-editor-link-popover-unlink",
2343
2346
  editorAttachmentsButton: optionSelector("attachments"),
2344
2347
  attachmentPreviewDeleteButton: "neeto-editor-preview-delete-button",
@@ -6435,7 +6438,14 @@ class CustomDomainPage {
6435
6438
  skipReason = await this.getCertificateInfrastructureSkipReason();
6436
6439
  if (skipReason)
6437
6440
  return;
6438
- expect(await this.getDomainStatus(domain, baseURL)).toBe("active");
6441
+ const status = await this.getDomainStatus(domain, baseURL);
6442
+ // The backend only re-evaluates a domain that is pending certificate
6443
+ // propagation when `validate_domain` is called again; a GET just reads the
6444
+ // stored status. Without this nudge the loop waits on a value that the
6445
+ // single Validate click above can no longer change.
6446
+ if (status !== "active")
6447
+ await this.customDomainApi.validate(baseURL);
6448
+ expect(status).toBe("active");
6439
6449
  }).toPass({ timeout: 2 * 60_000, intervals: [5_000] });
6440
6450
  await this.closeValidationPane();
6441
6451
  if (skipReason) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
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",