@umbraco/playwright-testhelpers 16.0.7 → 16.0.9

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.
@@ -168,4 +168,6 @@ export declare class DataTypeApiHelper {
168
168
  createDefaultTrueFalseDataType(name: string): Promise<string | undefined>;
169
169
  createBlockListDataTypeWithInlineEditingModeAndABlock(blockListName: string, contentElementTypeId: string, inlineEditing?: boolean): Promise<string | undefined>;
170
170
  createBlockGridWithABlockWithInlineEditingMode(blockGridName: string, contentElementTypeId: string, inlineEditing?: boolean): Promise<string | undefined>;
171
+ createTiptapDataTypeWithWordCountStatusbar(name: string): Promise<string | undefined>;
172
+ createTiptapDataTypeWithElementPathStatusbar(name: string): Promise<string | undefined>;
171
173
  }
@@ -1450,6 +1450,29 @@ class DataTypeApiHelper {
1450
1450
  .build();
1451
1451
  return await this.save(blockGrid);
1452
1452
  }
1453
+ async createTiptapDataTypeWithWordCountStatusbar(name) {
1454
+ await this.ensureNameNotExists(name);
1455
+ const dataType = new json_models_builders_1.TiptapDataTypeBuilder()
1456
+ .withName(name)
1457
+ .addExtension()
1458
+ .withWordCount(true)
1459
+ .done()
1460
+ .addStatusbar()
1461
+ .withWordCount(true)
1462
+ .done()
1463
+ .build();
1464
+ return await this.save(dataType);
1465
+ }
1466
+ async createTiptapDataTypeWithElementPathStatusbar(name) {
1467
+ await this.ensureNameNotExists(name);
1468
+ const dataType = new json_models_builders_1.TiptapDataTypeBuilder()
1469
+ .withName(name)
1470
+ .addStatusbar()
1471
+ .withElementPath(true)
1472
+ .done()
1473
+ .build();
1474
+ return await this.save(dataType);
1475
+ }
1453
1476
  }
1454
1477
  exports.DataTypeApiHelper = DataTypeApiHelper;
1455
1478
  //# sourceMappingURL=DataTypeApiHelper.js.map