@umbraco/playwright-testhelpers 16.0.30 → 16.0.32

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.
@@ -416,4 +416,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
416
416
  selectAllRTETipTapEditorText(): Promise<void>;
417
417
  waitForContentToBePublished(): Promise<void>;
418
418
  waitForRecycleBinToBeEmptied(): Promise<void>;
419
+ clickBlockElementInRTEWithName(elementTypeName: string): Promise<void>;
419
420
  }
@@ -1404,6 +1404,11 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
1404
1404
  async waitForRecycleBinToBeEmptied() {
1405
1405
  await this.waitForNetworkToBeIdle();
1406
1406
  }
1407
+ async clickBlockElementInRTEWithName(elementTypeName) {
1408
+ const blockElementLocator = this.page.locator('uui-ref-node umb-ufm-render').filter({ hasText: elementTypeName });
1409
+ await (0, test_1.expect)(blockElementLocator).toBeVisible();
1410
+ await blockElementLocator.click({ force: true });
1411
+ }
1407
1412
  }
1408
1413
  exports.ContentUiHelper = ContentUiHelper;
1409
1414
  //# sourceMappingURL=ContentUiHelper.js.map