@umbraco/playwright-testhelpers 16.0.55 → 16.0.57

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.
@@ -114,6 +114,7 @@ export declare class DataTypeApiHelper {
114
114
  createMultipleTextStringDataType(name: string): Promise<string | undefined>;
115
115
  createSliderDataType(name: string): Promise<string | undefined>;
116
116
  createListViewContentDataType(name?: string): Promise<string | undefined>;
117
+ createListViewContentDataTypeWithLayoutAndPageSize(name?: string, layoutAlias?: string, layoutName?: string, pageSize?: number): Promise<string | undefined>;
117
118
  createListViewContentDataTypeWithAllPermissions(name?: string): Promise<string | undefined>;
118
119
  updateListViewMediaDataType(alias: string, newValue: any): Promise<import("playwright-core").APIResponse>;
119
120
  createDefaultTiptapDataType(name: string): Promise<string | undefined>;
@@ -960,6 +960,30 @@ class DataTypeApiHelper {
960
960
  .build();
961
961
  return await this.save(dataType);
962
962
  }
963
+ async createListViewContentDataTypeWithLayoutAndPageSize(name = 'List View - Content Test', layoutAlias = 'Umb.CollectionView.Document.Table', layoutName = 'List', pageSize = 100) {
964
+ await this.ensureNameNotExists(name);
965
+ const dataType = new json_models_builders_1.ListViewDataTypeBuilder()
966
+ .withName(name)
967
+ .withPageSize(pageSize)
968
+ .withOrderDirection('asc')
969
+ .addLayout()
970
+ .withName(layoutName)
971
+ .withIcon('icon-list')
972
+ .withCollectionView(layoutAlias)
973
+ .done()
974
+ .addColumnDisplayedProperty()
975
+ .withAlias('updateDate')
976
+ .withHeader('Last edited')
977
+ .withIsSystem(true)
978
+ .done()
979
+ .addColumnDisplayedProperty()
980
+ .withAlias('creator')
981
+ .withHeader('Updated by')
982
+ .withIsSystem(true)
983
+ .done()
984
+ .build();
985
+ return await this.save(dataType);
986
+ }
963
987
  async createListViewContentDataTypeWithAllPermissions(name = 'List View - Content Test') {
964
988
  await this.ensureNameNotExists(name);
965
989
  const dataType = new json_models_builders_1.ListViewDataTypeBuilder()