@umbraco/playwright-testhelpers 17.0.21 → 17.0.22

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.
@@ -463,4 +463,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
463
463
  isInlineBlockPropertyVisibleForBlockWithName(blockName: string, propertyName: string, isVisible?: boolean, index?: number): Promise<void>;
464
464
  enterInlineBlockPropertyValue(propertyName: string, value: string, index?: number): Promise<void>;
465
465
  doesInlineBlockPropertyHaveValue(propertyName: string, value: string, index?: number): Promise<void>;
466
+ removeNotFoundContentPickerWithId(contentPickerId?: string): Promise<void>;
466
467
  }
@@ -1612,6 +1612,13 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
1612
1612
  const propertyLocator = this.blockListEntry.nth(index).locator(this.blockProperty).filter({ hasText: propertyName }).locator('input');
1613
1613
  await (0, test_1.expect)(propertyLocator).toHaveValue(value);
1614
1614
  }
1615
+ async removeNotFoundContentPickerWithId(contentPickerId) {
1616
+ const hasText = contentPickerId ? contentPickerId : 'Not found';
1617
+ const contentPickerLocator = this.entityItem.filter({ hasText: hasText });
1618
+ await contentPickerLocator.hover();
1619
+ await contentPickerLocator.getByLabel('Remove').click();
1620
+ await this.clickConfirmRemoveButton();
1621
+ }
1615
1622
  }
1616
1623
  exports.ContentUiHelper = ContentUiHelper;
1617
1624
  //# sourceMappingURL=ContentUiHelper.js.map