@shopware-ag/acceptance-test-suite 6.0.0 → 7.0.0

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.
package/dist/index.d.mts CHANGED
@@ -328,6 +328,20 @@ type CmsPage = components['schemas']['CmsPage'] & {
328
328
  type CustomerGroup = components['schemas']['CustomerGroup'] & {
329
329
  id: string;
330
330
  };
331
+ interface RegistrationData {
332
+ salutation: string;
333
+ firstName: string;
334
+ lastName: string;
335
+ email: string;
336
+ password: string;
337
+ street: string;
338
+ city: string;
339
+ country: string;
340
+ postalCode: string;
341
+ company: string;
342
+ department: string;
343
+ vatRegNo: string;
344
+ }
331
345
 
332
346
  interface CreatedRecord {
333
347
  resource: string;
@@ -878,6 +892,7 @@ declare class TestDataService {
878
892
  getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
879
893
  getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
880
894
  getBasicCustomerGroupStruct(overrides?: Partial<CustomerGroup>): Partial<CustomerGroup>;
895
+ clearCaches(): Promise<void>;
881
896
  }
882
897
 
883
898
  interface TestDataFixtureTypes {
@@ -1080,6 +1095,8 @@ declare class AccountLogin implements PageObject {
1080
1095
  readonly successAlert: Locator;
1081
1096
  readonly personalFormArea: Locator;
1082
1097
  readonly billingAddressFormArea: Locator;
1098
+ readonly accountTypeSelect: Locator;
1099
+ readonly salutationSelect: Locator;
1083
1100
  readonly firstNameInput: Locator;
1084
1101
  readonly lastNameInput: Locator;
1085
1102
  readonly companyInput: Locator;
@@ -1172,6 +1189,28 @@ declare class CustomRegister extends AccountLogin implements PageObject {
1172
1189
  url(customCustomerGroupName?: string): string;
1173
1190
  }
1174
1191
 
1192
+ declare class CheckoutOrderEdit implements PageObject {
1193
+ readonly page: Page;
1194
+ readonly completePaymentButton: Locator;
1195
+ readonly orderCancelButton: Locator;
1196
+ readonly dialogOrderCancel: Locator;
1197
+ readonly dialogOrderCancelButton: Locator;
1198
+ readonly dialogBackButton: Locator;
1199
+ /**
1200
+ * Payment options
1201
+ */
1202
+ readonly paymentCashOnDelivery: Locator;
1203
+ readonly paymentPaidInAdvance: Locator;
1204
+ readonly paymentInvoice: Locator;
1205
+ /**
1206
+ * Shipping options
1207
+ */
1208
+ readonly shippingStandard: Locator;
1209
+ readonly shippingExpress: Locator;
1210
+ constructor(page: Page);
1211
+ url(orderUuid: string): string;
1212
+ }
1213
+
1175
1214
  interface StorefrontPageTypes {
1176
1215
  StorefrontHome: Home;
1177
1216
  StorefrontProductDetail: ProductDetail$1;
@@ -1190,6 +1229,7 @@ interface StorefrontPageTypes {
1190
1229
  StorefrontSearch: Search;
1191
1230
  StorefrontSearchSuggest: SearchSuggest;
1192
1231
  StorefrontCustomRegister: CustomRegister;
1232
+ StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
1193
1233
  }
1194
1234
  declare const StorefrontPageObjects: {
1195
1235
  Home: typeof Home;
@@ -1209,6 +1249,7 @@ declare const StorefrontPageObjects: {
1209
1249
  Search: typeof Search;
1210
1250
  SearchSuggest: typeof SearchSuggest;
1211
1251
  CustomRegister: typeof CustomRegister;
1252
+ CheckoutOrderEdit: typeof CheckoutOrderEdit;
1212
1253
  };
1213
1254
 
1214
1255
  declare class ProductDetail implements PageObject {
@@ -1812,6 +1853,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1812
1853
  ExpectNotification: Task;
1813
1854
  } & {
1814
1855
  CreateLinkTypeCategory: Task;
1856
+ } & {
1857
+ SetSystemConfigValues: Task;
1815
1858
  } & {
1816
1859
  Login: Task;
1817
1860
  } & {
@@ -1852,4 +1895,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1852
1895
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
1853
1896
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
1854
1897
 
1855
- export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
1898
+ export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
package/dist/index.d.ts CHANGED
@@ -328,6 +328,20 @@ type CmsPage = components['schemas']['CmsPage'] & {
328
328
  type CustomerGroup = components['schemas']['CustomerGroup'] & {
329
329
  id: string;
330
330
  };
331
+ interface RegistrationData {
332
+ salutation: string;
333
+ firstName: string;
334
+ lastName: string;
335
+ email: string;
336
+ password: string;
337
+ street: string;
338
+ city: string;
339
+ country: string;
340
+ postalCode: string;
341
+ company: string;
342
+ department: string;
343
+ vatRegNo: string;
344
+ }
331
345
 
332
346
  interface CreatedRecord {
333
347
  resource: string;
@@ -878,6 +892,7 @@ declare class TestDataService {
878
892
  getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
879
893
  getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
880
894
  getBasicCustomerGroupStruct(overrides?: Partial<CustomerGroup>): Partial<CustomerGroup>;
895
+ clearCaches(): Promise<void>;
881
896
  }
882
897
 
883
898
  interface TestDataFixtureTypes {
@@ -1080,6 +1095,8 @@ declare class AccountLogin implements PageObject {
1080
1095
  readonly successAlert: Locator;
1081
1096
  readonly personalFormArea: Locator;
1082
1097
  readonly billingAddressFormArea: Locator;
1098
+ readonly accountTypeSelect: Locator;
1099
+ readonly salutationSelect: Locator;
1083
1100
  readonly firstNameInput: Locator;
1084
1101
  readonly lastNameInput: Locator;
1085
1102
  readonly companyInput: Locator;
@@ -1172,6 +1189,28 @@ declare class CustomRegister extends AccountLogin implements PageObject {
1172
1189
  url(customCustomerGroupName?: string): string;
1173
1190
  }
1174
1191
 
1192
+ declare class CheckoutOrderEdit implements PageObject {
1193
+ readonly page: Page;
1194
+ readonly completePaymentButton: Locator;
1195
+ readonly orderCancelButton: Locator;
1196
+ readonly dialogOrderCancel: Locator;
1197
+ readonly dialogOrderCancelButton: Locator;
1198
+ readonly dialogBackButton: Locator;
1199
+ /**
1200
+ * Payment options
1201
+ */
1202
+ readonly paymentCashOnDelivery: Locator;
1203
+ readonly paymentPaidInAdvance: Locator;
1204
+ readonly paymentInvoice: Locator;
1205
+ /**
1206
+ * Shipping options
1207
+ */
1208
+ readonly shippingStandard: Locator;
1209
+ readonly shippingExpress: Locator;
1210
+ constructor(page: Page);
1211
+ url(orderUuid: string): string;
1212
+ }
1213
+
1175
1214
  interface StorefrontPageTypes {
1176
1215
  StorefrontHome: Home;
1177
1216
  StorefrontProductDetail: ProductDetail$1;
@@ -1190,6 +1229,7 @@ interface StorefrontPageTypes {
1190
1229
  StorefrontSearch: Search;
1191
1230
  StorefrontSearchSuggest: SearchSuggest;
1192
1231
  StorefrontCustomRegister: CustomRegister;
1232
+ StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
1193
1233
  }
1194
1234
  declare const StorefrontPageObjects: {
1195
1235
  Home: typeof Home;
@@ -1209,6 +1249,7 @@ declare const StorefrontPageObjects: {
1209
1249
  Search: typeof Search;
1210
1250
  SearchSuggest: typeof SearchSuggest;
1211
1251
  CustomRegister: typeof CustomRegister;
1252
+ CheckoutOrderEdit: typeof CheckoutOrderEdit;
1212
1253
  };
1213
1254
 
1214
1255
  declare class ProductDetail implements PageObject {
@@ -1812,6 +1853,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1812
1853
  ExpectNotification: Task;
1813
1854
  } & {
1814
1855
  CreateLinkTypeCategory: Task;
1856
+ } & {
1857
+ SetSystemConfigValues: Task;
1815
1858
  } & {
1816
1859
  Login: Task;
1817
1860
  } & {
@@ -1852,4 +1895,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1852
1895
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
1853
1896
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
1854
1897
 
1855
- export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
1898
+ export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
package/dist/index.mjs CHANGED
@@ -385,16 +385,16 @@ const test$c = test$e.extend({
385
385
  ]
386
386
  });
387
387
 
388
- var __defProp$M = Object.defineProperty;
389
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
390
- var __publicField$M = (obj, key, value) => {
391
- __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
388
+ var __defProp$N = Object.defineProperty;
389
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
390
+ var __publicField$N = (obj, key, value) => {
391
+ __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
392
392
  return value;
393
393
  };
394
394
  const _AdminApiContext = class _AdminApiContext {
395
395
  constructor(context, options) {
396
- __publicField$M(this, "context");
397
- __publicField$M(this, "options");
396
+ __publicField$N(this, "context");
397
+ __publicField$N(this, "options");
398
398
  this.context = context;
399
399
  this.options = options;
400
400
  }
@@ -486,7 +486,7 @@ const _AdminApiContext = class _AdminApiContext {
486
486
  return this.context.head(url, options);
487
487
  }
488
488
  };
489
- __publicField$M(_AdminApiContext, "defaultOptions", {
489
+ __publicField$N(_AdminApiContext, "defaultOptions", {
490
490
  app_url: process.env["APP_URL"],
491
491
  client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
492
492
  client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
@@ -496,16 +496,16 @@ __publicField$M(_AdminApiContext, "defaultOptions", {
496
496
  });
497
497
  let AdminApiContext = _AdminApiContext;
498
498
 
499
- var __defProp$L = Object.defineProperty;
500
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
501
- var __publicField$L = (obj, key, value) => {
502
- __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
499
+ var __defProp$M = Object.defineProperty;
500
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
501
+ var __publicField$M = (obj, key, value) => {
502
+ __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
503
503
  return value;
504
504
  };
505
505
  const _StoreApiContext = class _StoreApiContext {
506
506
  constructor(context, options) {
507
- __publicField$L(this, "context");
508
- __publicField$L(this, "options");
507
+ __publicField$M(this, "context");
508
+ __publicField$M(this, "options");
509
509
  this.context = context;
510
510
  this.options = options;
511
511
  }
@@ -564,21 +564,21 @@ const _StoreApiContext = class _StoreApiContext {
564
564
  return this.context.head(url, options);
565
565
  }
566
566
  };
567
- __publicField$L(_StoreApiContext, "defaultOptions", {
567
+ __publicField$M(_StoreApiContext, "defaultOptions", {
568
568
  app_url: process.env["APP_URL"],
569
569
  ignoreHTTPSErrors: true
570
570
  });
571
571
  let StoreApiContext = _StoreApiContext;
572
572
 
573
- var __defProp$K = Object.defineProperty;
574
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
575
- var __publicField$K = (obj, key, value) => {
576
- __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
573
+ var __defProp$L = Object.defineProperty;
574
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
575
+ var __publicField$L = (obj, key, value) => {
576
+ __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
577
577
  return value;
578
578
  };
579
579
  class MailpitApiContext {
580
580
  constructor(context) {
581
- __publicField$K(this, "context");
581
+ __publicField$L(this, "context");
582
582
  this.context = context;
583
583
  }
584
584
  /**
@@ -875,17 +875,17 @@ const test$a = test$e.extend({
875
875
  }
876
876
  });
877
877
 
878
- var __defProp$J = Object.defineProperty;
879
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
880
- var __publicField$J = (obj, key, value) => {
881
- __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
878
+ var __defProp$K = Object.defineProperty;
879
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
880
+ var __publicField$K = (obj, key, value) => {
881
+ __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
882
882
  return value;
883
883
  };
884
884
  class Actor {
885
885
  constructor(name, page) {
886
- __publicField$J(this, "page");
887
- __publicField$J(this, "name");
888
- __publicField$J(this, "expects", expect);
886
+ __publicField$K(this, "page");
887
+ __publicField$K(this, "name");
888
+ __publicField$K(this, "expects", expect);
889
889
  this.name = name;
890
890
  this.page = page;
891
891
  }
@@ -934,31 +934,31 @@ function createRandomImage(width = 800, height = 600) {
934
934
  return new Image(width, height, buffer);
935
935
  }
936
936
 
937
- var __defProp$I = Object.defineProperty;
938
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
939
- var __publicField$I = (obj, key, value) => {
940
- __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
937
+ var __defProp$J = Object.defineProperty;
938
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
939
+ var __publicField$J = (obj, key, value) => {
940
+ __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
941
941
  return value;
942
942
  };
943
943
  class TestDataService {
944
944
  constructor(AdminApiClient, IdProvider, options) {
945
- __publicField$I(this, "AdminApiClient");
946
- __publicField$I(this, "IdProvider");
947
- __publicField$I(this, "namePrefix", "Test-");
948
- __publicField$I(this, "nameSuffix", "");
949
- __publicField$I(this, "defaultSalesChannel");
950
- __publicField$I(this, "defaultTaxId");
951
- __publicField$I(this, "defaultCurrencyId");
952
- __publicField$I(this, "defaultCategoryId");
953
- __publicField$I(this, "defaultLanguageId");
954
- __publicField$I(this, "defaultCountryId");
955
- __publicField$I(this, "defaultCustomerGroupId");
945
+ __publicField$J(this, "AdminApiClient");
946
+ __publicField$J(this, "IdProvider");
947
+ __publicField$J(this, "namePrefix", "Test-");
948
+ __publicField$J(this, "nameSuffix", "");
949
+ __publicField$J(this, "defaultSalesChannel");
950
+ __publicField$J(this, "defaultTaxId");
951
+ __publicField$J(this, "defaultCurrencyId");
952
+ __publicField$J(this, "defaultCategoryId");
953
+ __publicField$J(this, "defaultLanguageId");
954
+ __publicField$J(this, "defaultCountryId");
955
+ __publicField$J(this, "defaultCustomerGroupId");
956
956
  /**
957
957
  * Configures if an automated cleanup of the data should be executed.
958
958
  *
959
959
  * @private
960
960
  */
961
- __publicField$I(this, "shouldCleanUp", true);
961
+ __publicField$J(this, "shouldCleanUp", true);
962
962
  /**
963
963
  * Configuration of higher priority entities for the cleanup operation.
964
964
  * These entities will be deleted before others.
@@ -966,19 +966,19 @@ class TestDataService {
966
966
  *
967
967
  * @private
968
968
  */
969
- __publicField$I(this, "highPriorityEntities", ["order", "product", "landing_page"]);
969
+ __publicField$J(this, "highPriorityEntities", ["order", "product", "landing_page"]);
970
970
  /**
971
971
  * A registry of all created records.
972
972
  *
973
973
  * @private
974
974
  */
975
- __publicField$I(this, "createdRecords", []);
975
+ __publicField$J(this, "createdRecords", []);
976
976
  /**
977
977
  * Function that generates combinations from n number of arrays
978
978
  * with m number of elements in them.
979
979
  * @param array
980
980
  */
981
- __publicField$I(this, "combineAll", (array) => {
981
+ __publicField$J(this, "combineAll", (array) => {
982
982
  const result = [];
983
983
  const max = array.length - 1;
984
984
  const helper = (tmpArray, i) => {
@@ -1539,6 +1539,7 @@ class TestDataService {
1539
1539
  expect(response.ok()).toBeTruthy();
1540
1540
  const { data: systemConfigEntry } = await response.json();
1541
1541
  this.addCreatedRecord("system_config", systemConfigEntry.id);
1542
+ await this.clearCaches();
1542
1543
  return systemConfigEntry;
1543
1544
  }
1544
1545
  /**
@@ -2651,6 +2652,9 @@ class TestDataService {
2651
2652
  };
2652
2653
  return Object.assign({}, basicCustomerGroup, overrides);
2653
2654
  }
2655
+ async clearCaches() {
2656
+ await this.AdminApiClient.delete("_action/cache");
2657
+ }
2654
2658
  }
2655
2659
 
2656
2660
  const test$8 = test$e.extend({
@@ -2669,16 +2673,16 @@ const test$8 = test$e.extend({
2669
2673
  }
2670
2674
  });
2671
2675
 
2672
- var __defProp$H = Object.defineProperty;
2673
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2674
- var __publicField$H = (obj, key, value) => {
2675
- __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
2676
+ var __defProp$I = Object.defineProperty;
2677
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2678
+ var __publicField$I = (obj, key, value) => {
2679
+ __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
2676
2680
  return value;
2677
2681
  };
2678
2682
  class IdProvider {
2679
2683
  constructor(workerIndex, seed) {
2680
- __publicField$H(this, "workerIndex");
2681
- __publicField$H(this, "seed");
2684
+ __publicField$I(this, "workerIndex");
2685
+ __publicField$I(this, "seed");
2682
2686
  this.workerIndex = workerIndex;
2683
2687
  this.seed = seed;
2684
2688
  }
@@ -2752,29 +2756,29 @@ const test$7 = test$e.extend({
2752
2756
  ]
2753
2757
  });
2754
2758
 
2755
- var __defProp$G = Object.defineProperty;
2756
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2757
- var __publicField$G = (obj, key, value) => {
2758
- __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
2759
+ var __defProp$H = Object.defineProperty;
2760
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2761
+ var __publicField$H = (obj, key, value) => {
2762
+ __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
2759
2763
  return value;
2760
2764
  };
2761
2765
  class Home {
2762
2766
  constructor(page) {
2763
2767
  this.page = page;
2764
- __publicField$G(this, "productImages");
2765
- __publicField$G(this, "productListItems");
2766
- __publicField$G(this, "languagesDropdown");
2767
- __publicField$G(this, "currenciesDropdown");
2768
- __publicField$G(this, "consentOnlyTechnicallyRequiredButton");
2769
- __publicField$G(this, "consentConfigureButton");
2770
- __publicField$G(this, "consentAcceptAllCookiesButton");
2771
- __publicField$G(this, "consentCookiePreferences");
2772
- __publicField$G(this, "consentCookiePermissionContent");
2773
- __publicField$G(this, "consentDialog");
2774
- __publicField$G(this, "consentDialogTechnicallyRequiredCheckbox");
2775
- __publicField$G(this, "consentDialogAcceptAllCookiesButton");
2776
- __publicField$G(this, "consentDialogSaveButton");
2777
- __publicField$G(this, "consentCookieBannerContainer");
2768
+ __publicField$H(this, "productImages");
2769
+ __publicField$H(this, "productListItems");
2770
+ __publicField$H(this, "languagesDropdown");
2771
+ __publicField$H(this, "currenciesDropdown");
2772
+ __publicField$H(this, "consentOnlyTechnicallyRequiredButton");
2773
+ __publicField$H(this, "consentConfigureButton");
2774
+ __publicField$H(this, "consentAcceptAllCookiesButton");
2775
+ __publicField$H(this, "consentCookiePreferences");
2776
+ __publicField$H(this, "consentCookiePermissionContent");
2777
+ __publicField$H(this, "consentDialog");
2778
+ __publicField$H(this, "consentDialogTechnicallyRequiredCheckbox");
2779
+ __publicField$H(this, "consentDialogAcceptAllCookiesButton");
2780
+ __publicField$H(this, "consentDialogSaveButton");
2781
+ __publicField$H(this, "consentCookieBannerContainer");
2778
2782
  this.productImages = page.locator(".product-image-link");
2779
2783
  this.productListItems = page.getByRole("listitem");
2780
2784
  this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
@@ -2818,26 +2822,26 @@ class Home {
2818
2822
  }
2819
2823
  }
2820
2824
 
2821
- var __defProp$F = Object.defineProperty;
2822
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2823
- var __publicField$F = (obj, key, value) => {
2824
- __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
2825
+ var __defProp$G = Object.defineProperty;
2826
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2827
+ var __publicField$G = (obj, key, value) => {
2828
+ __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
2825
2829
  return value;
2826
2830
  };
2827
2831
  let ProductDetail$1 = class ProductDetail {
2828
2832
  constructor(page) {
2829
2833
  this.page = page;
2830
- __publicField$F(this, "addToCartButton");
2831
- __publicField$F(this, "quantitySelect");
2832
- __publicField$F(this, "productSingleImage");
2833
- __publicField$F(this, "productSinglePrice");
2834
- __publicField$F(this, "productPriceRangesRow");
2835
- __publicField$F(this, "offCanvasCartTitle");
2836
- __publicField$F(this, "offCanvasCart");
2837
- __publicField$F(this, "offCanvasCartGoToCheckoutButton");
2838
- __publicField$F(this, "offCanvasLineItemImages");
2839
- __publicField$F(this, "offCanvasSummaryTotalPrice");
2840
- __publicField$F(this, "offCanvas");
2834
+ __publicField$G(this, "addToCartButton");
2835
+ __publicField$G(this, "quantitySelect");
2836
+ __publicField$G(this, "productSingleImage");
2837
+ __publicField$G(this, "productSinglePrice");
2838
+ __publicField$G(this, "productPriceRangesRow");
2839
+ __publicField$G(this, "offCanvasCartTitle");
2840
+ __publicField$G(this, "offCanvasCart");
2841
+ __publicField$G(this, "offCanvasCartGoToCheckoutButton");
2842
+ __publicField$G(this, "offCanvasLineItemImages");
2843
+ __publicField$G(this, "offCanvasSummaryTotalPrice");
2844
+ __publicField$G(this, "offCanvas");
2841
2845
  this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
2842
2846
  this.quantitySelect = page.getByLabel("Quantity", { exact: true });
2843
2847
  this.productSingleImage = page.locator(".gallery-slider-single-image");
@@ -2859,18 +2863,18 @@ let ProductDetail$1 = class ProductDetail {
2859
2863
  }
2860
2864
  };
2861
2865
 
2862
- var __defProp$E = Object.defineProperty;
2863
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2864
- var __publicField$E = (obj, key, value) => {
2865
- __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
2866
+ var __defProp$F = Object.defineProperty;
2867
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2868
+ var __publicField$F = (obj, key, value) => {
2869
+ __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
2866
2870
  return value;
2867
2871
  };
2868
2872
  class Category {
2869
2873
  constructor(page) {
2870
2874
  this.page = page;
2871
- __publicField$E(this, "sortingSelect");
2872
- __publicField$E(this, "firstProductBuyButton");
2873
- __publicField$E(this, "noProductsFoundAlert");
2875
+ __publicField$F(this, "sortingSelect");
2876
+ __publicField$F(this, "firstProductBuyButton");
2877
+ __publicField$F(this, "noProductsFoundAlert");
2874
2878
  this.sortingSelect = page.getByLabel("Sorting");
2875
2879
  this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
2876
2880
  this.noProductsFoundAlert = page.getByText("No products found.");
@@ -2880,24 +2884,24 @@ class Category {
2880
2884
  }
2881
2885
  }
2882
2886
 
2883
- var __defProp$D = Object.defineProperty;
2884
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2885
- var __publicField$D = (obj, key, value) => {
2886
- __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
2887
+ var __defProp$E = Object.defineProperty;
2888
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2889
+ var __publicField$E = (obj, key, value) => {
2890
+ __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
2887
2891
  return value;
2888
2892
  };
2889
2893
  class CheckoutCart {
2890
2894
  constructor(page) {
2891
2895
  this.page = page;
2892
- __publicField$D(this, "headline");
2893
- __publicField$D(this, "goToCheckoutButton");
2894
- __publicField$D(this, "enterPromoInput");
2895
- __publicField$D(this, "grandTotalPrice");
2896
- __publicField$D(this, "emptyCartAlert");
2897
- __publicField$D(this, "stockReachedAlert");
2898
- __publicField$D(this, "cartLineItemImages");
2899
- __publicField$D(this, "unitPriceInfo");
2900
- __publicField$D(this, "cartQuantityNumber");
2896
+ __publicField$E(this, "headline");
2897
+ __publicField$E(this, "goToCheckoutButton");
2898
+ __publicField$E(this, "enterPromoInput");
2899
+ __publicField$E(this, "grandTotalPrice");
2900
+ __publicField$E(this, "emptyCartAlert");
2901
+ __publicField$E(this, "stockReachedAlert");
2902
+ __publicField$E(this, "cartLineItemImages");
2903
+ __publicField$E(this, "unitPriceInfo");
2904
+ __publicField$E(this, "cartQuantityNumber");
2901
2905
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
2902
2906
  this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
2903
2907
  this.enterPromoInput = page.getByLabel("Promo code");
@@ -2938,25 +2942,25 @@ class CheckoutCart {
2938
2942
  }
2939
2943
  }
2940
2944
 
2941
- var __defProp$C = Object.defineProperty;
2942
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2943
- var __publicField$C = (obj, key, value) => {
2944
- __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
2945
+ var __defProp$D = Object.defineProperty;
2946
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2947
+ var __publicField$D = (obj, key, value) => {
2948
+ __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
2945
2949
  return value;
2946
2950
  };
2947
2951
  class OffCanvasCart {
2948
2952
  constructor(page) {
2949
2953
  this.page = page;
2950
- __publicField$C(this, "headline");
2951
- __publicField$C(this, "itemCount");
2952
- __publicField$C(this, "goToCheckoutButton");
2953
- __publicField$C(this, "goToCartButton");
2954
- __publicField$C(this, "continueShoppingButton");
2955
- __publicField$C(this, "enterPromoInput");
2956
- __publicField$C(this, "submitDiscountButton");
2957
- __publicField$C(this, "subTotalPrice");
2958
- __publicField$C(this, "shippingCosts");
2959
- __publicField$C(this, "cartQuantityNumber");
2954
+ __publicField$D(this, "headline");
2955
+ __publicField$D(this, "itemCount");
2956
+ __publicField$D(this, "goToCheckoutButton");
2957
+ __publicField$D(this, "goToCartButton");
2958
+ __publicField$D(this, "continueShoppingButton");
2959
+ __publicField$D(this, "enterPromoInput");
2960
+ __publicField$D(this, "submitDiscountButton");
2961
+ __publicField$D(this, "subTotalPrice");
2962
+ __publicField$D(this, "shippingCosts");
2963
+ __publicField$D(this, "cartQuantityNumber");
2960
2964
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
2961
2965
  this.itemCount = page.locator(".offcanvas-cart-header-count");
2962
2966
  this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
@@ -2998,36 +3002,36 @@ class OffCanvasCart {
2998
3002
  }
2999
3003
  }
3000
3004
 
3001
- var __defProp$B = Object.defineProperty;
3002
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3003
- var __publicField$B = (obj, key, value) => {
3004
- __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
3005
+ var __defProp$C = Object.defineProperty;
3006
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3007
+ var __publicField$C = (obj, key, value) => {
3008
+ __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
3005
3009
  return value;
3006
3010
  };
3007
3011
  class CheckoutConfirm {
3008
3012
  constructor(page) {
3009
3013
  this.page = page;
3010
- __publicField$B(this, "headline");
3011
- __publicField$B(this, "termsAndConditionsCheckbox");
3012
- __publicField$B(this, "immediateAccessToDigitalProductCheckbox");
3013
- __publicField$B(this, "grandTotalPrice");
3014
- __publicField$B(this, "taxPrice");
3015
- __publicField$B(this, "submitOrderButton");
3014
+ __publicField$C(this, "headline");
3015
+ __publicField$C(this, "termsAndConditionsCheckbox");
3016
+ __publicField$C(this, "immediateAccessToDigitalProductCheckbox");
3017
+ __publicField$C(this, "grandTotalPrice");
3018
+ __publicField$C(this, "taxPrice");
3019
+ __publicField$C(this, "submitOrderButton");
3016
3020
  /**
3017
3021
  * Payment options
3018
3022
  */
3019
- __publicField$B(this, "paymentCashOnDelivery");
3020
- __publicField$B(this, "paymentPaidInAdvance");
3021
- __publicField$B(this, "paymentInvoice");
3023
+ __publicField$C(this, "paymentCashOnDelivery");
3024
+ __publicField$C(this, "paymentPaidInAdvance");
3025
+ __publicField$C(this, "paymentInvoice");
3022
3026
  /**
3023
3027
  * Shipping options
3024
3028
  */
3025
- __publicField$B(this, "shippingStandard");
3026
- __publicField$B(this, "shippingExpress");
3029
+ __publicField$C(this, "shippingStandard");
3030
+ __publicField$C(this, "shippingExpress");
3027
3031
  /**
3028
3032
  * Product details
3029
3033
  */
3030
- __publicField$B(this, "cartLineItemImages");
3034
+ __publicField$C(this, "cartLineItemImages");
3031
3035
  this.headline = page.getByRole("heading", { name: "Complete order" });
3032
3036
  this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
3033
3037
  this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
@@ -3046,21 +3050,21 @@ class CheckoutConfirm {
3046
3050
  }
3047
3051
  }
3048
3052
 
3049
- var __defProp$A = Object.defineProperty;
3050
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3051
- var __publicField$A = (obj, key, value) => {
3052
- __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
3053
+ var __defProp$B = Object.defineProperty;
3054
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3055
+ var __publicField$B = (obj, key, value) => {
3056
+ __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
3053
3057
  return value;
3054
3058
  };
3055
3059
  class CheckoutFinish {
3056
3060
  constructor(page) {
3057
3061
  this.page = page;
3058
- __publicField$A(this, "headline");
3059
- __publicField$A(this, "orderNumberText");
3060
- __publicField$A(this, "grandTotalPrice");
3061
- __publicField$A(this, "taxPrice");
3062
- __publicField$A(this, "cartLineItemImages");
3063
- __publicField$A(this, "orderNumberRegex", /Your order number: #(\d+)/);
3062
+ __publicField$B(this, "headline");
3063
+ __publicField$B(this, "orderNumberText");
3064
+ __publicField$B(this, "grandTotalPrice");
3065
+ __publicField$B(this, "taxPrice");
3066
+ __publicField$B(this, "cartLineItemImages");
3067
+ __publicField$B(this, "orderNumberRegex", /Your order number: #(\d+)/);
3064
3068
  this.headline = page.getByRole("heading", { name: "Thank you for your order" });
3065
3069
  this.orderNumberText = page.getByText(this.orderNumberRegex);
3066
3070
  this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
@@ -3089,16 +3093,16 @@ class CheckoutFinish {
3089
3093
  }
3090
3094
  }
3091
3095
 
3092
- var __defProp$z = Object.defineProperty;
3093
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3094
- var __publicField$z = (obj, key, value) => {
3095
- __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3096
+ var __defProp$A = Object.defineProperty;
3097
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3098
+ var __publicField$A = (obj, key, value) => {
3099
+ __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
3096
3100
  return value;
3097
3101
  };
3098
3102
  class CheckoutRegister {
3099
3103
  constructor(page) {
3100
3104
  this.page = page;
3101
- __publicField$z(this, "cartLineItemImages");
3105
+ __publicField$A(this, "cartLineItemImages");
3102
3106
  this.cartLineItemImages = page.locator(".line-item-img-link");
3103
3107
  }
3104
3108
  url() {
@@ -3106,23 +3110,23 @@ class CheckoutRegister {
3106
3110
  }
3107
3111
  }
3108
3112
 
3109
- var __defProp$y = Object.defineProperty;
3110
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3111
- var __publicField$y = (obj, key, value) => {
3112
- __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3113
+ var __defProp$z = Object.defineProperty;
3114
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3115
+ var __publicField$z = (obj, key, value) => {
3116
+ __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3113
3117
  return value;
3114
3118
  };
3115
3119
  class Account {
3116
3120
  constructor(page) {
3117
3121
  this.page = page;
3118
- __publicField$y(this, "headline");
3119
- __publicField$y(this, "personalDataCardTitle");
3120
- __publicField$y(this, "paymentMethodCardTitle");
3121
- __publicField$y(this, "billingAddressCardTitle");
3122
- __publicField$y(this, "shippingAddressCardTitle");
3123
- __publicField$y(this, "newsletterCheckbox");
3124
- __publicField$y(this, "newsletterRegistrationSuccessMessage");
3125
- __publicField$y(this, "customerGroupRequestMessage");
3122
+ __publicField$z(this, "headline");
3123
+ __publicField$z(this, "personalDataCardTitle");
3124
+ __publicField$z(this, "paymentMethodCardTitle");
3125
+ __publicField$z(this, "billingAddressCardTitle");
3126
+ __publicField$z(this, "shippingAddressCardTitle");
3127
+ __publicField$z(this, "newsletterCheckbox");
3128
+ __publicField$z(this, "newsletterRegistrationSuccessMessage");
3129
+ __publicField$z(this, "customerGroupRequestMessage");
3126
3130
  this.headline = page.getByRole("heading", { name: "Overview" });
3127
3131
  this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
3128
3132
  this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
@@ -3140,41 +3144,45 @@ class Account {
3140
3144
  }
3141
3145
  }
3142
3146
 
3143
- var __defProp$x = Object.defineProperty;
3144
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3145
- var __publicField$x = (obj, key, value) => {
3146
- __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3147
+ var __defProp$y = Object.defineProperty;
3148
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3149
+ var __publicField$y = (obj, key, value) => {
3150
+ __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3147
3151
  return value;
3148
3152
  };
3149
3153
  class AccountLogin {
3150
3154
  constructor(page) {
3151
3155
  this.page = page;
3152
- __publicField$x(this, "emailInput");
3153
- __publicField$x(this, "passwordInput");
3154
- __publicField$x(this, "loginButton");
3155
- __publicField$x(this, "logoutLink");
3156
- __publicField$x(this, "successAlert");
3156
+ __publicField$y(this, "emailInput");
3157
+ __publicField$y(this, "passwordInput");
3158
+ __publicField$y(this, "loginButton");
3159
+ __publicField$y(this, "logoutLink");
3160
+ __publicField$y(this, "successAlert");
3157
3161
  // Inputs for registration
3158
- __publicField$x(this, "personalFormArea");
3159
- __publicField$x(this, "billingAddressFormArea");
3160
- __publicField$x(this, "firstNameInput");
3161
- __publicField$x(this, "lastNameInput");
3162
- __publicField$x(this, "companyInput");
3163
- __publicField$x(this, "departmentInput");
3164
- __publicField$x(this, "vatRegNoInput");
3165
- __publicField$x(this, "registerEmailInput");
3166
- __publicField$x(this, "registerPasswordInput");
3167
- __publicField$x(this, "streetAddressInput");
3168
- __publicField$x(this, "cityInput");
3169
- __publicField$x(this, "countryInput");
3170
- __publicField$x(this, "postalCodeInput");
3171
- __publicField$x(this, "registerButton");
3162
+ __publicField$y(this, "personalFormArea");
3163
+ __publicField$y(this, "billingAddressFormArea");
3164
+ __publicField$y(this, "accountTypeSelect");
3165
+ __publicField$y(this, "salutationSelect");
3166
+ __publicField$y(this, "firstNameInput");
3167
+ __publicField$y(this, "lastNameInput");
3168
+ __publicField$y(this, "companyInput");
3169
+ __publicField$y(this, "departmentInput");
3170
+ __publicField$y(this, "vatRegNoInput");
3171
+ __publicField$y(this, "registerEmailInput");
3172
+ __publicField$y(this, "registerPasswordInput");
3173
+ __publicField$y(this, "streetAddressInput");
3174
+ __publicField$y(this, "cityInput");
3175
+ __publicField$y(this, "countryInput");
3176
+ __publicField$y(this, "postalCodeInput");
3177
+ __publicField$y(this, "registerButton");
3172
3178
  this.emailInput = page.getByLabel("Your email address");
3173
3179
  this.passwordInput = page.getByLabel("Your password");
3174
3180
  this.loginButton = page.getByRole("button", { name: "Log in" });
3175
3181
  this.logoutLink = page.getByRole("link", { name: "Log out" });
3176
3182
  this.personalFormArea = page.locator(".register-personal");
3177
3183
  this.billingAddressFormArea = page.locator(".register-billing");
3184
+ this.accountTypeSelect = this.personalFormArea.locator("#accountType");
3185
+ this.salutationSelect = this.personalFormArea.locator("#personalSalutation");
3178
3186
  this.firstNameInput = this.personalFormArea.getByLabel("First name*");
3179
3187
  this.lastNameInput = this.personalFormArea.getByLabel("Last name*");
3180
3188
  this.companyInput = this.personalFormArea.getByPlaceholder("Enter company...");
@@ -3195,29 +3203,29 @@ class AccountLogin {
3195
3203
  }
3196
3204
  }
3197
3205
 
3198
- var __defProp$w = Object.defineProperty;
3199
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3200
- var __publicField$w = (obj, key, value) => {
3201
- __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3206
+ var __defProp$x = Object.defineProperty;
3207
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3208
+ var __publicField$x = (obj, key, value) => {
3209
+ __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3202
3210
  return value;
3203
3211
  };
3204
3212
  class AccountProfile {
3205
3213
  constructor(page) {
3206
3214
  this.page = page;
3207
- __publicField$w(this, "salutationSelect");
3208
- __publicField$w(this, "firstNameInput");
3209
- __publicField$w(this, "lastNameInput");
3210
- __publicField$w(this, "saveProfileButton");
3211
- __publicField$w(this, "changeEmailButton");
3212
- __publicField$w(this, "emailAddressInput");
3213
- __publicField$w(this, "emailAddressConfirmInput");
3214
- __publicField$w(this, "emailConfirmPasswordInput");
3215
- __publicField$w(this, "saveEmailAddressButton");
3216
- __publicField$w(this, "changePasswordButton");
3217
- __publicField$w(this, "newPasswordInput");
3218
- __publicField$w(this, "newPasswordConfirmInput");
3219
- __publicField$w(this, "currentPasswordInput");
3220
- __publicField$w(this, "saveNewPasswordButton");
3215
+ __publicField$x(this, "salutationSelect");
3216
+ __publicField$x(this, "firstNameInput");
3217
+ __publicField$x(this, "lastNameInput");
3218
+ __publicField$x(this, "saveProfileButton");
3219
+ __publicField$x(this, "changeEmailButton");
3220
+ __publicField$x(this, "emailAddressInput");
3221
+ __publicField$x(this, "emailAddressConfirmInput");
3222
+ __publicField$x(this, "emailConfirmPasswordInput");
3223
+ __publicField$x(this, "saveEmailAddressButton");
3224
+ __publicField$x(this, "changePasswordButton");
3225
+ __publicField$x(this, "newPasswordInput");
3226
+ __publicField$x(this, "newPasswordConfirmInput");
3227
+ __publicField$x(this, "currentPasswordInput");
3228
+ __publicField$x(this, "saveNewPasswordButton");
3221
3229
  this.salutationSelect = page.getByLabel("Salutation");
3222
3230
  this.firstNameInput = page.getByPlaceholder("Enter first name...");
3223
3231
  this.lastNameInput = page.getByPlaceholder("Enter last name...");
@@ -3238,22 +3246,22 @@ class AccountProfile {
3238
3246
  }
3239
3247
  }
3240
3248
 
3241
- var __defProp$v = Object.defineProperty;
3242
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3243
- var __publicField$v = (obj, key, value) => {
3244
- __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3249
+ var __defProp$w = Object.defineProperty;
3250
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3251
+ var __publicField$w = (obj, key, value) => {
3252
+ __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3245
3253
  return value;
3246
3254
  };
3247
3255
  class AccountOrder {
3248
3256
  constructor(page) {
3249
3257
  this.page = page;
3250
- __publicField$v(this, "cartLineItemImages");
3251
- __publicField$v(this, "orderExpandButton");
3252
- __publicField$v(this, "digitalProductDownloadButton");
3253
- __publicField$v(this, "dialogOrderCancel");
3254
- __publicField$v(this, "dialogOrderCancelButton");
3255
- __publicField$v(this, "dialogBackButton");
3256
- __publicField$v(this, "getViewSubscriptionLink", (orderNumber) => {
3258
+ __publicField$w(this, "cartLineItemImages");
3259
+ __publicField$w(this, "orderExpandButton");
3260
+ __publicField$w(this, "digitalProductDownloadButton");
3261
+ __publicField$w(this, "dialogOrderCancel");
3262
+ __publicField$w(this, "dialogOrderCancelButton");
3263
+ __publicField$w(this, "dialogBackButton");
3264
+ __publicField$w(this, "getViewSubscriptionLink", (orderNumber) => {
3257
3265
  const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
3258
3266
  return orderContainer.getByText("View Subscription");
3259
3267
  });
@@ -3298,20 +3306,20 @@ class AccountOrder {
3298
3306
  }
3299
3307
  }
3300
3308
 
3301
- var __defProp$u = Object.defineProperty;
3302
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3303
- var __publicField$u = (obj, key, value) => {
3304
- __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3309
+ var __defProp$v = Object.defineProperty;
3310
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3311
+ var __publicField$v = (obj, key, value) => {
3312
+ __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3305
3313
  return value;
3306
3314
  };
3307
3315
  class AccountAddresses {
3308
3316
  constructor(page) {
3309
3317
  this.page = page;
3310
- __publicField$u(this, "addNewAddressButton");
3311
- __publicField$u(this, "editBillingAddressButton");
3312
- __publicField$u(this, "editShippingAddressButton");
3313
- __publicField$u(this, "useDefaultBillingAddressButton");
3314
- __publicField$u(this, "useDefaultShippingAddressButton");
3318
+ __publicField$v(this, "addNewAddressButton");
3319
+ __publicField$v(this, "editBillingAddressButton");
3320
+ __publicField$v(this, "editShippingAddressButton");
3321
+ __publicField$v(this, "useDefaultBillingAddressButton");
3322
+ __publicField$v(this, "useDefaultShippingAddressButton");
3315
3323
  this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
3316
3324
  this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
3317
3325
  this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
@@ -3323,19 +3331,19 @@ class AccountAddresses {
3323
3331
  }
3324
3332
  }
3325
3333
 
3326
- var __defProp$t = Object.defineProperty;
3327
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3328
- var __publicField$t = (obj, key, value) => {
3329
- __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
3334
+ var __defProp$u = Object.defineProperty;
3335
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3336
+ var __publicField$u = (obj, key, value) => {
3337
+ __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3330
3338
  return value;
3331
3339
  };
3332
3340
  class AccountPayment {
3333
3341
  constructor(page) {
3334
3342
  this.page = page;
3335
- __publicField$t(this, "cashOnDeliveryOption");
3336
- __publicField$t(this, "paidInAdvanceOption");
3337
- __publicField$t(this, "invoiceOption");
3338
- __publicField$t(this, "changeDefaultPaymentButton");
3343
+ __publicField$u(this, "cashOnDeliveryOption");
3344
+ __publicField$u(this, "paidInAdvanceOption");
3345
+ __publicField$u(this, "invoiceOption");
3346
+ __publicField$u(this, "changeDefaultPaymentButton");
3339
3347
  this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
3340
3348
  this.paidInAdvanceOption = page.getByLabel("Paid in advance");
3341
3349
  this.invoiceOption = page.getByLabel("Invoice");
@@ -3346,17 +3354,17 @@ class AccountPayment {
3346
3354
  }
3347
3355
  }
3348
3356
 
3349
- var __defProp$s = Object.defineProperty;
3350
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3351
- var __publicField$s = (obj, key, value) => {
3352
- __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
3357
+ var __defProp$t = Object.defineProperty;
3358
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3359
+ var __publicField$t = (obj, key, value) => {
3360
+ __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
3353
3361
  return value;
3354
3362
  };
3355
3363
  class Search {
3356
3364
  constructor(page) {
3357
3365
  this.page = page;
3358
- __publicField$s(this, "headline");
3359
- __publicField$s(this, "productImages");
3366
+ __publicField$t(this, "headline");
3367
+ __publicField$t(this, "productImages");
3360
3368
  this.headline = page.locator("h1.search-headline");
3361
3369
  this.productImages = page.locator(".product-image-link");
3362
3370
  }
@@ -3365,16 +3373,16 @@ class Search {
3365
3373
  }
3366
3374
  }
3367
3375
 
3368
- var __defProp$r = Object.defineProperty;
3369
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3370
- var __publicField$r = (obj, key, value) => {
3371
- __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
3376
+ var __defProp$s = Object.defineProperty;
3377
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3378
+ var __publicField$s = (obj, key, value) => {
3379
+ __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
3372
3380
  return value;
3373
3381
  };
3374
3382
  class SearchSuggest {
3375
3383
  constructor(page) {
3376
3384
  this.page = page;
3377
- __publicField$r(this, "searchSuggestLineItemImages");
3385
+ __publicField$s(this, "searchSuggestLineItemImages");
3378
3386
  this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
3379
3387
  }
3380
3388
  url(searchTerm) {
@@ -3392,6 +3400,47 @@ class CustomRegister extends AccountLogin {
3392
3400
  }
3393
3401
  }
3394
3402
 
3403
+ var __defProp$r = Object.defineProperty;
3404
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3405
+ var __publicField$r = (obj, key, value) => {
3406
+ __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
3407
+ return value;
3408
+ };
3409
+ class CheckoutOrderEdit {
3410
+ constructor(page) {
3411
+ this.page = page;
3412
+ __publicField$r(this, "completePaymentButton");
3413
+ __publicField$r(this, "orderCancelButton");
3414
+ __publicField$r(this, "dialogOrderCancel");
3415
+ __publicField$r(this, "dialogOrderCancelButton");
3416
+ __publicField$r(this, "dialogBackButton");
3417
+ /**
3418
+ * Payment options
3419
+ */
3420
+ __publicField$r(this, "paymentCashOnDelivery");
3421
+ __publicField$r(this, "paymentPaidInAdvance");
3422
+ __publicField$r(this, "paymentInvoice");
3423
+ /**
3424
+ * Shipping options
3425
+ */
3426
+ __publicField$r(this, "shippingStandard");
3427
+ __publicField$r(this, "shippingExpress");
3428
+ this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
3429
+ this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
3430
+ this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
3431
+ this.dialogOrderCancelButton = this.dialogOrderCancel.getByRole("button", { name: "Cancel order" });
3432
+ this.dialogBackButton = this.dialogOrderCancel.getByRole("button", { name: "Back" });
3433
+ this.paymentCashOnDelivery = page.getByLabel("Cash on delivery");
3434
+ this.paymentPaidInAdvance = page.getByLabel("Paid in advance");
3435
+ this.paymentInvoice = page.getByLabel("Invoice");
3436
+ this.shippingStandard = page.getByLabel("Standard");
3437
+ this.shippingExpress = page.getByLabel("Express");
3438
+ }
3439
+ url(orderUuid) {
3440
+ return `account/order/edit/${orderUuid}`;
3441
+ }
3442
+ }
3443
+
3395
3444
  const StorefrontPageObjects = {
3396
3445
  Home,
3397
3446
  ProductDetail: ProductDetail$1,
@@ -3409,7 +3458,8 @@ const StorefrontPageObjects = {
3409
3458
  AccountPayment,
3410
3459
  Search,
3411
3460
  SearchSuggest,
3412
- CustomRegister
3461
+ CustomRegister,
3462
+ CheckoutOrderEdit
3413
3463
  };
3414
3464
  const test$6 = test$e.extend({
3415
3465
  StorefrontHome: async ({ StorefrontPage }, use) => {
@@ -3462,6 +3512,9 @@ const test$6 = test$e.extend({
3462
3512
  },
3463
3513
  StorefrontCustomRegister: async ({ StorefrontPage }, use) => {
3464
3514
  await use(new CustomRegister(StorefrontPage));
3515
+ },
3516
+ StorefrontCheckoutOrderEdit: async ({ StorefrontPage }, use) => {
3517
+ await use(new CheckoutOrderEdit(StorefrontPage));
3465
3518
  }
3466
3519
  });
3467
3520
 
@@ -5289,10 +5342,37 @@ const CreateLinkTypeCategory = test$e.extend({
5289
5342
  }
5290
5343
  });
5291
5344
 
5345
+ const SetSystemConfigValues = test$e.extend({
5346
+ SetSystemConfigValues: async ({ AdminApiContext, DefaultSalesChannel }, use) => {
5347
+ let defaultSettings;
5348
+ const task = (newValues, defaultValues) => {
5349
+ return async function LoginRegistration() {
5350
+ defaultSettings = defaultValues;
5351
+ const newSettings = await AdminApiContext.post("./_action/system-config/batch", {
5352
+ data: {
5353
+ null: newValues,
5354
+ [DefaultSalesChannel.salesChannel.id]: {}
5355
+ }
5356
+ });
5357
+ expect(newSettings.ok()).toBeTruthy();
5358
+ };
5359
+ };
5360
+ await use(task);
5361
+ const revertSettings = await AdminApiContext.post(`./_action/system-config/batch`, {
5362
+ data: {
5363
+ null: defaultSettings,
5364
+ [DefaultSalesChannel.salesChannel.id]: {}
5365
+ }
5366
+ });
5367
+ expect(revertSettings.ok()).toBeTruthy();
5368
+ }
5369
+ });
5370
+
5292
5371
  const test$3 = mergeTests(
5293
5372
  SaveProduct,
5294
5373
  ExpectNotification,
5295
- CreateLinkTypeCategory
5374
+ CreateLinkTypeCategory,
5375
+ SetSystemConfigValues
5296
5376
  );
5297
5377
 
5298
5378
  const Login = test$e.extend({
@@ -5326,11 +5406,13 @@ const Logout = test$e.extend({
5326
5406
  });
5327
5407
 
5328
5408
  const Register = test$e.extend({
5329
- Register: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
5330
- const registrationData = {
5409
+ Register: async ({ StorefrontAccountLogin, AdminApiContext: AdminApiContext2, IdProvider }, use) => {
5410
+ let registeredEmail = "";
5411
+ const defaultRegistrationData = {
5412
+ salutation: "Mr.",
5331
5413
  firstName: "Jeff",
5332
5414
  lastName: "Goldblum",
5333
- email: "invalid",
5415
+ email: IdProvider.getIdPair().uuid + "@test.com",
5334
5416
  password: "shopware",
5335
5417
  street: "Ebbinghof 10",
5336
5418
  city: "Sch\xF6ppingen",
@@ -5340,43 +5422,54 @@ const Register = test$e.extend({
5340
5422
  department: "Operations",
5341
5423
  vatRegNo: "DE1234567890"
5342
5424
  };
5343
- const task = (email, isCommercial) => {
5344
- return async function Register2() {
5345
- registrationData.email = email;
5425
+ const registerTask = (overrides, isCommercial) => {
5426
+ return async function() {
5427
+ const registrationData = { ...defaultRegistrationData, ...overrides };
5428
+ registeredEmail = registrationData.email;
5429
+ if (isCommercial) {
5430
+ await StorefrontAccountLogin.accountTypeSelect.selectOption("Commercial");
5431
+ }
5432
+ await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation);
5346
5433
  await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName);
5347
5434
  await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName);
5348
- await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
5349
- await StorefrontAccountLogin.registerPasswordInput.fill(registrationData.password);
5350
- await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
5351
- await StorefrontAccountLogin.cityInput.fill(registrationData.city);
5352
- await StorefrontAccountLogin.countryInput.selectOption(registrationData.country);
5353
- await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
5354
5435
  if (isCommercial) {
5355
5436
  await StorefrontAccountLogin.companyInput.fill(registrationData.company);
5356
5437
  await StorefrontAccountLogin.departmentInput.fill(registrationData.department);
5357
5438
  await StorefrontAccountLogin.vatRegNoInput.fill(registrationData.vatRegNo);
5358
5439
  }
5440
+ await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
5441
+ await StorefrontAccountLogin.registerPasswordInput.fill(registrationData.password);
5442
+ await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
5443
+ await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
5444
+ await StorefrontAccountLogin.cityInput.fill(registrationData.city);
5445
+ await StorefrontAccountLogin.countryInput.selectOption({ label: registrationData.country });
5359
5446
  await StorefrontAccountLogin.registerButton.click();
5360
5447
  };
5361
5448
  };
5362
- await use(task);
5363
- const customerResponse = await AdminApiContext.post("search/customer", {
5364
- data: {
5365
- limit: 1,
5366
- filter: [{
5449
+ await use(registerTask);
5450
+ await deleteRegisteredUser(AdminApiContext2, registeredEmail);
5451
+ }
5452
+ });
5453
+ async function deleteRegisteredUser(adminApiContext, email) {
5454
+ if (!email)
5455
+ return;
5456
+ const response = await adminApiContext.post("search/customer", {
5457
+ data: {
5458
+ limit: 1,
5459
+ filter: [
5460
+ {
5367
5461
  type: "equals",
5368
5462
  field: "email",
5369
- value: registrationData.email
5370
- }]
5371
- }
5372
- });
5373
- expect(customerResponse.ok()).toBeTruthy();
5374
- const customerResponseData = await customerResponse.json();
5375
- for (const customer of customerResponseData.data) {
5376
- await AdminApiContext.delete(`customer/${customer.id}`);
5463
+ value: email
5464
+ }
5465
+ ]
5377
5466
  }
5467
+ });
5468
+ const { data: customers } = await response.json();
5469
+ for (const customer of customers) {
5470
+ await adminApiContext.delete(`customer/${customer.id}`);
5378
5471
  }
5379
- });
5472
+ }
5380
5473
 
5381
5474
  const RegisterGuest = test$e.extend({
5382
5475
  RegisterGuest: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "6.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",