@umbraco/playwright-testhelpers 16.0.18 → 16.0.20

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.
@@ -170,4 +170,5 @@ export declare class DataTypeApiHelper {
170
170
  createBlockGridWithABlockWithInlineEditingMode(blockGridName: string, contentElementTypeId: string, inlineEditing?: boolean): Promise<string | undefined>;
171
171
  createTiptapDataTypeWithWordCountStatusbar(name: string): Promise<string | undefined>;
172
172
  createTiptapDataTypeWithElementPathStatusbar(name: string): Promise<string | undefined>;
173
+ createTiptapDataTypeWithStyleSelect(name: string): Promise<string | undefined>;
173
174
  }
@@ -364,6 +364,7 @@ class DataTypeApiHelper {
364
364
  .withName(blockGridName)
365
365
  .addBlock()
366
366
  .withContentElementTypeKey(contentElementTypeId)
367
+ .withAllowAtRoot(true)
367
368
  .done()
368
369
  .build();
369
370
  return await this.save(blockGrid);
@@ -1473,6 +1474,18 @@ class DataTypeApiHelper {
1473
1474
  .build();
1474
1475
  return await this.save(dataType);
1475
1476
  }
1477
+ async createTiptapDataTypeWithStyleSelect(name) {
1478
+ await this.ensureNameNotExists(name);
1479
+ const dataType = new json_models_builders_1.TiptapDataTypeBuilder()
1480
+ .withName(name)
1481
+ .addToolbarRow()
1482
+ .addToolbarGroup()
1483
+ .withStyleSelect(true)
1484
+ .done()
1485
+ .done()
1486
+ .build();
1487
+ return await this.save(dataType);
1488
+ }
1476
1489
  }
1477
1490
  exports.DataTypeApiHelper = DataTypeApiHelper;
1478
1491
  //# sourceMappingURL=DataTypeApiHelper.js.map