@shopware-ag/acceptance-test-suite 11.23.0 → 11.24.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.mjs CHANGED
@@ -155,16 +155,16 @@ const test$d = test$e.extend({
155
155
  ]
156
156
  });
157
157
 
158
- var __defProp$15 = Object.defineProperty;
159
- var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
160
- var __publicField$15 = (obj, key, value) => {
161
- __defNormalProp$15(obj, typeof key !== "symbol" ? key + "" : key, value);
158
+ var __defProp$16 = Object.defineProperty;
159
+ var __defNormalProp$16 = (obj, key, value) => key in obj ? __defProp$16(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
160
+ var __publicField$16 = (obj, key, value) => {
161
+ __defNormalProp$16(obj, typeof key !== "symbol" ? key + "" : key, value);
162
162
  return value;
163
163
  };
164
164
  const _AdminApiContext = class _AdminApiContext {
165
165
  constructor(context, options) {
166
- __publicField$15(this, "context");
167
- __publicField$15(this, "options");
166
+ __publicField$16(this, "context");
167
+ __publicField$16(this, "options");
168
168
  this.context = context;
169
169
  this.options = options;
170
170
  }
@@ -284,7 +284,7 @@ const _AdminApiContext = class _AdminApiContext {
284
284
  return response;
285
285
  }
286
286
  };
287
- __publicField$15(_AdminApiContext, "defaultOptions", {
287
+ __publicField$16(_AdminApiContext, "defaultOptions", {
288
288
  app_url: process.env["ADMIN_API_URL"] || process.env["APP_URL"],
289
289
  client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
290
290
  client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
@@ -294,16 +294,16 @@ __publicField$15(_AdminApiContext, "defaultOptions", {
294
294
  });
295
295
  let AdminApiContext = _AdminApiContext;
296
296
 
297
- var __defProp$14 = Object.defineProperty;
298
- var __defNormalProp$14 = (obj, key, value) => key in obj ? __defProp$14(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
299
- var __publicField$14 = (obj, key, value) => {
300
- __defNormalProp$14(obj, typeof key !== "symbol" ? key + "" : key, value);
297
+ var __defProp$15 = Object.defineProperty;
298
+ var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
299
+ var __publicField$15 = (obj, key, value) => {
300
+ __defNormalProp$15(obj, typeof key !== "symbol" ? key + "" : key, value);
301
301
  return value;
302
302
  };
303
303
  const _StoreApiContext = class _StoreApiContext {
304
304
  constructor(context, options) {
305
- __publicField$14(this, "context");
306
- __publicField$14(this, "options");
305
+ __publicField$15(this, "context");
306
+ __publicField$15(this, "options");
307
307
  this.context = context;
308
308
  this.options = options;
309
309
  }
@@ -362,21 +362,21 @@ const _StoreApiContext = class _StoreApiContext {
362
362
  return this.context.head(url, options);
363
363
  }
364
364
  };
365
- __publicField$14(_StoreApiContext, "defaultOptions", {
365
+ __publicField$15(_StoreApiContext, "defaultOptions", {
366
366
  app_url: process.env["APP_URL"],
367
367
  ignoreHTTPSErrors: true
368
368
  });
369
369
  let StoreApiContext = _StoreApiContext;
370
370
 
371
- var __defProp$13 = Object.defineProperty;
372
- var __defNormalProp$13 = (obj, key, value) => key in obj ? __defProp$13(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
373
- var __publicField$13 = (obj, key, value) => {
374
- __defNormalProp$13(obj, typeof key !== "symbol" ? key + "" : key, value);
371
+ var __defProp$14 = Object.defineProperty;
372
+ var __defNormalProp$14 = (obj, key, value) => key in obj ? __defProp$14(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
373
+ var __publicField$14 = (obj, key, value) => {
374
+ __defNormalProp$14(obj, typeof key !== "symbol" ? key + "" : key, value);
375
375
  return value;
376
376
  };
377
377
  class MailpitApiContext {
378
378
  constructor(context) {
379
- __publicField$13(this, "context");
379
+ __publicField$14(this, "context");
380
380
  this.context = context;
381
381
  }
382
382
  /**
@@ -511,6 +511,26 @@ const test$c = test$e.extend({
511
511
  ]
512
512
  });
513
513
 
514
+ const isSaaSInstance = async (adminApiContext) => {
515
+ const instanceFeatures = await adminApiContext.get("./instance/features");
516
+ return instanceFeatures.ok();
517
+ };
518
+ const isThemeCompiled = async (context, storefrontUrl) => {
519
+ const response = await context.get(storefrontUrl);
520
+ const body = (await response.body()).toString();
521
+ const matches = body.match(/.*"(https?:\/\/.*all\.css[^"]*)".*/);
522
+ if (matches && matches?.length > 1) {
523
+ const allCssUrl = matches[1];
524
+ const allCssResponse = await context.get(allCssUrl);
525
+ return allCssResponse.status() < 400;
526
+ }
527
+ return false;
528
+ };
529
+
530
+ const clearDelayedCache = async (adminApiContext) => {
531
+ await adminApiContext.delete("./_action/cache-delayed");
532
+ };
533
+
514
534
  async function mockApiCalls(page) {
515
535
  await page.route("**/api/notification/message*", (route) => route.fulfill({
516
536
  status: 200,
@@ -549,34 +569,52 @@ async function mockApiCalls(page) {
549
569
  }));
550
570
  }
551
571
 
552
- const isSaaSInstance = async (adminApiContext) => {
553
- const instanceFeatures = await adminApiContext.get("./instance/features");
554
- return instanceFeatures.ok();
555
- };
556
- const isThemeCompiled = async (context, storefrontUrl) => {
557
- const response = await context.get(storefrontUrl);
558
- const body = (await response.body()).toString();
559
- const matches = body.match(/.*"(https?:\/\/.*all\.css[^"]*)".*/);
560
- if (matches && matches?.length > 1) {
561
- const allCssUrl = matches[1];
562
- const allCssResponse = await context.get(allCssUrl);
563
- return allCssResponse.status() < 400;
572
+ async function createNewAdminPageContext(merchant, browser, SalesChannelBaseConfig, AdminApiContext) {
573
+ const context = await browser.newContext({
574
+ baseURL: SalesChannelBaseConfig.adminUrl,
575
+ serviceWorkers: "block"
576
+ });
577
+ const adminPage = await context.newPage();
578
+ await adminPage.goto("#/login");
579
+ await mockApiCalls(adminPage);
580
+ await adminPage.getByLabel(/Username|Email address/).fill(merchant.username);
581
+ await adminPage.getByLabel("Password", { exact: true }).fill(merchant.password);
582
+ const config = await (await AdminApiContext.get("./_info/config")).json();
583
+ const jsLoadingPromises = [];
584
+ for (const i in config.bundles) {
585
+ if (config.bundles[i]?.js && config.bundles[i]?.js?.length) {
586
+ const js = config?.bundles[i]?.js ?? [];
587
+ jsLoadingPromises.push(...js.map((url) => adminPage.waitForResponse(url)));
588
+ }
564
589
  }
565
- return false;
566
- };
567
-
568
- const clearDelayedCache = async (adminApiContext) => {
569
- await adminApiContext.delete("./_action/cache-delayed");
570
- };
590
+ await adminPage.getByRole("button", { name: "Log in" }).click();
591
+ await Promise.all(jsLoadingPromises);
592
+ const originalReload = adminPage.reload.bind(adminPage);
593
+ adminPage.reload = async () => {
594
+ const res = await originalReload();
595
+ await adminPage.addStyleTag({
596
+ content: `
597
+ .sf-toolbar {
598
+ width: 0 !important;
599
+ height: 0 !important;
600
+ display: none !important;
601
+ pointer-events: none !important;
602
+ }
603
+ `.trim()
604
+ });
605
+ return res;
606
+ };
607
+ await clearDelayedCache(AdminApiContext);
608
+ await expect(adminPage.locator(".sw-skeleton")).toHaveCount(0);
609
+ await adminPage.waitForURL((url) => {
610
+ return url.hash !== "#login";
611
+ });
612
+ await expect(adminPage.getByText(merchant.firstName + " " + merchant.lastName).first()).toBeVisible({ timeout: 6e4 });
613
+ return adminPage;
614
+ }
571
615
 
572
616
  const test$b = test$e.extend({
573
617
  AdminPage: async ({ IdProvider, AdminApiContext, SalesChannelBaseConfig, browser }, use) => {
574
- const context = await browser.newContext({
575
- baseURL: SalesChannelBaseConfig.adminUrl,
576
- serviceWorkers: "block"
577
- });
578
- const page = await context.newPage();
579
- await mockApiCalls(page);
580
618
  const { id, uuid } = IdProvider.getIdPair();
581
619
  const adminUser = {
582
620
  id: uuid,
@@ -593,55 +631,9 @@ const test$b = test$e.extend({
593
631
  data: adminUser
594
632
  });
595
633
  expect(response.ok()).toBeTruthy();
596
- await page.goto("#/login");
597
- await page.addStyleTag({
598
- content: `
599
- .sf-toolbar {
600
- width: 0 !important;
601
- height: 0 !important;
602
- display: none !important;
603
- pointer-events: none !important;
604
- }
605
- `.trim()
606
- });
607
- await expect(page.url()).toContain("login");
608
- await expect(page.getByLabel(/Username|Email address/)).toBeVisible({ timeout: 9e4 });
609
- await page.getByLabel(/Username|Email address/).fill(adminUser.username);
610
- await page.getByLabel("Password", { exact: true }).fill(adminUser.password);
611
- const config = await (await AdminApiContext.get("./_info/config")).json();
612
- const jsLoadingPromises = [];
613
- for (const i in config.bundles) {
614
- if (config.bundles[i]?.js && config.bundles[i]?.js?.length) {
615
- const js = config?.bundles[i]?.js ?? [];
616
- jsLoadingPromises.push(...js.map((url) => page.waitForResponse(url)));
617
- }
618
- }
619
- await page.getByRole("button", { name: "Log in" }).click();
620
- await Promise.all(jsLoadingPromises);
621
- const originalReload = page.reload.bind(page);
622
- page.reload = async () => {
623
- const res = await originalReload();
624
- await page.addStyleTag({
625
- content: `
626
- .sf-toolbar {
627
- width: 0 !important;
628
- height: 0 !important;
629
- display: none !important;
630
- pointer-events: none !important;
631
- }
632
- `.trim()
633
- });
634
- return res;
635
- };
636
- await clearDelayedCache(AdminApiContext);
637
- await expect(page.locator(".sw-skeleton")).toHaveCount(0);
638
- await page.waitForURL((url) => {
639
- return url.hash !== "#login";
640
- });
641
- await expect(page.getByText("Administrator").first()).toBeVisible({ timeout: 6e4 });
634
+ const page = await createNewAdminPageContext(adminUser, browser, SalesChannelBaseConfig, AdminApiContext);
642
635
  await use(page);
643
636
  await page.close();
644
- await context.close();
645
637
  await AdminApiContext.delete(`user/${uuid}`);
646
638
  },
647
639
  StorefrontPage: async ({ DefaultSalesChannel, SalesChannelBaseConfig, browser, AdminApiContext, InstanceMeta }, use) => {
@@ -688,18 +680,18 @@ const test$b = test$e.extend({
688
680
  }
689
681
  });
690
682
 
691
- var __defProp$12 = Object.defineProperty;
692
- var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
693
- var __publicField$12 = (obj, key, value) => {
694
- __defNormalProp$12(obj, typeof key !== "symbol" ? key + "" : key, value);
683
+ var __defProp$13 = Object.defineProperty;
684
+ var __defNormalProp$13 = (obj, key, value) => key in obj ? __defProp$13(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
685
+ var __publicField$13 = (obj, key, value) => {
686
+ __defNormalProp$13(obj, typeof key !== "symbol" ? key + "" : key, value);
695
687
  return value;
696
688
  };
697
689
  class Actor {
698
690
  constructor(name, page, baseURL) {
699
- __publicField$12(this, "page");
700
- __publicField$12(this, "name");
701
- __publicField$12(this, "baseURL");
702
- __publicField$12(this, "expects", expect);
691
+ __publicField$13(this, "page");
692
+ __publicField$13(this, "name");
693
+ __publicField$13(this, "baseURL");
694
+ __publicField$13(this, "expects", expect);
703
695
  this.name = name;
704
696
  this.page = page;
705
697
  this.baseURL = baseURL;
@@ -1035,32 +1027,37 @@ const getPromotionWithDiscount = async (promotionId, adminApiContext) => {
1035
1027
  const { data: promotion } = await resp.json();
1036
1028
  return promotion[0];
1037
1029
  };
1030
+ const updateAdminUser = async (adminUserId, adminApiContext, data) => {
1031
+ await adminApiContext.patch(`user/${adminUserId}?_response=basic`, {
1032
+ data
1033
+ });
1034
+ };
1038
1035
 
1039
- var __defProp$11 = Object.defineProperty;
1040
- var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1041
- var __publicField$11 = (obj, key, value) => {
1042
- __defNormalProp$11(obj, typeof key !== "symbol" ? key + "" : key, value);
1036
+ var __defProp$12 = Object.defineProperty;
1037
+ var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1038
+ var __publicField$12 = (obj, key, value) => {
1039
+ __defNormalProp$12(obj, typeof key !== "symbol" ? key + "" : key, value);
1043
1040
  return value;
1044
1041
  };
1045
1042
  class TestDataService {
1046
1043
  constructor(AdminApiClient, IdProvider, options) {
1047
- __publicField$11(this, "AdminApiClient");
1048
- __publicField$11(this, "IdProvider");
1049
- __publicField$11(this, "namePrefix", "Test-");
1050
- __publicField$11(this, "nameSuffix", "");
1051
- __publicField$11(this, "defaultSalesChannel");
1052
- __publicField$11(this, "defaultTaxId");
1053
- __publicField$11(this, "defaultCurrencyId");
1054
- __publicField$11(this, "defaultCategoryId");
1055
- __publicField$11(this, "defaultLanguageId");
1056
- __publicField$11(this, "defaultCountryId");
1057
- __publicField$11(this, "defaultCustomerGroupId");
1044
+ __publicField$12(this, "AdminApiClient");
1045
+ __publicField$12(this, "IdProvider");
1046
+ __publicField$12(this, "namePrefix", "Test-");
1047
+ __publicField$12(this, "nameSuffix", "");
1048
+ __publicField$12(this, "defaultSalesChannel");
1049
+ __publicField$12(this, "defaultTaxId");
1050
+ __publicField$12(this, "defaultCurrencyId");
1051
+ __publicField$12(this, "defaultCategoryId");
1052
+ __publicField$12(this, "defaultLanguageId");
1053
+ __publicField$12(this, "defaultCountryId");
1054
+ __publicField$12(this, "defaultCustomerGroupId");
1058
1055
  /**
1059
1056
  * Configures if an automated cleanup of the data should be executed.
1060
1057
  *
1061
1058
  * @private
1062
1059
  */
1063
- __publicField$11(this, "shouldCleanUp", true);
1060
+ __publicField$12(this, "shouldCleanUp", true);
1064
1061
  /**
1065
1062
  * Configuration of higher priority entities for the cleanup operation.
1066
1063
  * These entities will be deleted before others.
@@ -1068,26 +1065,39 @@ class TestDataService {
1068
1065
  *
1069
1066
  * @private
1070
1067
  */
1071
- __publicField$11(this, "highPriorityEntities", ["order", "product", "product_cross_selling", "landing_page", "shipping_method", "sales_channel_domain", "sales_channel_currency", "sales_channel_country", "sales_channel_payment_method", "customer"]);
1068
+ __publicField$12(this, "highPriorityEntities", [
1069
+ "order",
1070
+ "product",
1071
+ "product_download",
1072
+ "product_cross_selling",
1073
+ "landing_page",
1074
+ "shipping_method",
1075
+ "sales_channel_domain",
1076
+ "sales_channel_currency",
1077
+ "sales_channel_country",
1078
+ "sales_channel_payment_method",
1079
+ "customer",
1080
+ "acl_user_role"
1081
+ ]);
1072
1082
  /**
1073
1083
  * A registry of all created records.
1074
1084
  *
1075
1085
  * @private
1076
1086
  */
1077
- __publicField$11(this, "createdRecords", []);
1078
- __publicField$11(this, "restoreSystemConfig", {});
1087
+ __publicField$12(this, "createdRecords", []);
1088
+ __publicField$12(this, "restoreSystemConfig", {});
1079
1089
  /**
1080
1090
  * A registry of all created sales channel records.
1081
1091
  *
1082
1092
  * @private
1083
1093
  */
1084
- __publicField$11(this, "createdSalesChannelRecords", []);
1094
+ __publicField$12(this, "createdSalesChannelRecords", []);
1085
1095
  /**
1086
1096
  * Function that generates combinations from n number of arrays
1087
1097
  * with m number of elements in them.
1088
1098
  * @param array
1089
1099
  */
1090
- __publicField$11(this, "combineAll", (array) => {
1100
+ __publicField$12(this, "combineAll", (array) => {
1091
1101
  const result = [];
1092
1102
  const max = array.length - 1;
1093
1103
  const helper = (tmpArray, i) => {
@@ -1477,6 +1487,47 @@ class TestDataService {
1477
1487
  this.addCreatedRecord("customer", customer.id);
1478
1488
  return customer;
1479
1489
  }
1490
+ /**
1491
+ * Creates a new user for the admin with full admin permissions.
1492
+ *
1493
+ * @param overrides - Specific data overrides that will be applied to the customer data struct.
1494
+ * @param salesChannel - The sales channel for which the customer should be registered.
1495
+ */
1496
+ async createUser(overrides = {}, salesChannel = this.defaultSalesChannel) {
1497
+ const language = await this.getLanguageById(salesChannel.languageId);
1498
+ const basicUserStruct = this.getBasicUserStruct(language.localeId, overrides);
1499
+ const response = await this.AdminApiClient.post("user?_response=detail", {
1500
+ data: basicUserStruct
1501
+ });
1502
+ expect(response.ok()).toBeTruthy();
1503
+ const userData = await this.getUserById(basicUserStruct.id);
1504
+ let user;
1505
+ if (typeof basicUserStruct.password !== "string") {
1506
+ user = { ...userData };
1507
+ } else {
1508
+ user = {
1509
+ ...userData,
1510
+ password: basicUserStruct.password
1511
+ };
1512
+ }
1513
+ this.addCreatedRecord("user", user.id);
1514
+ return user;
1515
+ }
1516
+ /**
1517
+ * Creates a new AclRole for the administration with basic shop configuration privileges.
1518
+ *
1519
+ * @param overrides - Specific data overrides that will be applied to the aclRole data struct.
1520
+ */
1521
+ async createAclRole(overrides = {}) {
1522
+ const basicAclRoleStruct = this.getBasicAclRoleStruct(overrides);
1523
+ const response = await this.AdminApiClient.post("acl-role?_response=detail", {
1524
+ data: basicAclRoleStruct
1525
+ });
1526
+ expect(response.ok()).toBeTruthy();
1527
+ const aclRole = await this.getAclRoleById(basicAclRoleStruct.id);
1528
+ this.addCreatedRecord("acl_role", aclRole.id);
1529
+ return aclRole;
1530
+ }
1480
1531
  /**
1481
1532
  * Creates a new order. This order is created on pure data and prices are not guaranteed to be calculated correctly.
1482
1533
  *
@@ -1777,6 +1828,7 @@ class TestDataService {
1777
1828
  });
1778
1829
  expect(downloadResponse.ok()).toBeTruthy();
1779
1830
  const { data: productDownload } = await downloadResponse.json();
1831
+ this.addCreatedRecord("product_download", productDownload.id);
1780
1832
  return productDownload;
1781
1833
  }
1782
1834
  /**
@@ -2089,6 +2141,33 @@ class TestDataService {
2089
2141
  const { data: shippingMethodMedia } = await shippingMethodResponse.json();
2090
2142
  return shippingMethodMedia;
2091
2143
  }
2144
+ /**
2145
+ * Assigns an ACL Role to a user (user in administration).
2146
+ *
2147
+ * @param aclRoleId - The uuid of the ACL role.
2148
+ * @param adminUserId - The uuid of the admin user.
2149
+
2150
+ */
2151
+ async assignAclRoleUser(aclRoleId, adminUserId) {
2152
+ await updateAdminUser(adminUserId, this.AdminApiClient, { admin: false });
2153
+ const syncAclUserResponse = await this.AdminApiClient.post("./_action/sync", {
2154
+ data: {
2155
+ "write-acl-user-role": {
2156
+ entity: "acl_user_role",
2157
+ action: "upsert",
2158
+ payload: [
2159
+ {
2160
+ userId: adminUserId,
2161
+ aclRoleId
2162
+ }
2163
+ ]
2164
+ }
2165
+ }
2166
+ });
2167
+ expect(syncAclUserResponse.ok()).toBeTruthy();
2168
+ const { data: aclUser } = await syncAclUserResponse.json();
2169
+ return aclUser;
2170
+ }
2092
2171
  /**
2093
2172
  * Retrieves a language based on its code.
2094
2173
  * @param languageCode
@@ -2370,6 +2449,28 @@ class TestDataService {
2370
2449
  const { data: language } = await response.json();
2371
2450
  return language;
2372
2451
  }
2452
+ /**
2453
+ * Retrieves a user by its id.
2454
+ *
2455
+ * @param userId - The id of the user.
2456
+ */
2457
+ async getUserById(userId) {
2458
+ const response = await this.AdminApiClient.get(`user/${userId}`);
2459
+ expect(response.ok()).toBeTruthy();
2460
+ const { data: user } = await response.json();
2461
+ return user;
2462
+ }
2463
+ /**
2464
+ * Retrieves a AclRole by its id.
2465
+ *
2466
+ * @param aclRoleId - The id of the ACL role.
2467
+ */
2468
+ async getAclRoleById(aclRoleId) {
2469
+ const response = await this.AdminApiClient.get(`acl-role/${aclRoleId}`);
2470
+ expect(response.ok()).toBeTruthy();
2471
+ const { data: aclRole } = await response.json();
2472
+ return aclRole;
2473
+ }
2373
2474
  /**
2374
2475
  * Adds an entity reference to the registry of created records.
2375
2476
  * All entities added to the registry will be deleted by the cleanup call.
@@ -2417,6 +2518,8 @@ class TestDataService {
2417
2518
  if (!this.shouldCleanUp) {
2418
2519
  return null;
2419
2520
  }
2521
+ const deleteUserIds = [];
2522
+ const deleteAclRolesIds = [];
2420
2523
  const deleteOperations = {};
2421
2524
  const priorityDeleteOperations = {};
2422
2525
  if (this.createdSalesChannelRecords) {
@@ -2430,6 +2533,18 @@ class TestDataService {
2430
2533
  }
2431
2534
  }
2432
2535
  this.createdRecords.forEach((record) => {
2536
+ if (record.resource === "user") {
2537
+ if (!deleteUserIds.includes(record.payload.id)) {
2538
+ deleteUserIds.push(record.payload.id);
2539
+ }
2540
+ return;
2541
+ }
2542
+ if (record.resource === "acl_role") {
2543
+ if (!deleteAclRolesIds.includes(record.payload.id)) {
2544
+ deleteAclRolesIds.push(record.payload.id);
2545
+ }
2546
+ return;
2547
+ }
2433
2548
  if (this.highPriorityEntities.includes(record.resource)) {
2434
2549
  if (!priorityDeleteOperations[`delete-${record.resource}`]) {
2435
2550
  priorityDeleteOperations[`delete-${record.resource}`] = {
@@ -2450,12 +2565,24 @@ class TestDataService {
2450
2565
  deleteOperations[`delete-${record.resource}`].payload.push(record.payload);
2451
2566
  }
2452
2567
  });
2453
- await this.AdminApiClient.post("_action/sync", {
2568
+ const priorityDeleteOperationsResponse = await this.AdminApiClient.post("_action/sync", {
2454
2569
  data: priorityDeleteOperations
2455
2570
  });
2456
- await this.AdminApiClient.post(`_action/system-config?_response=detail&salesChannelId=${this.defaultSalesChannel.id}`, {
2571
+ expect(priorityDeleteOperationsResponse.ok()).toBeTruthy();
2572
+ const restoreSystemConfigResponse = await this.AdminApiClient.post(`_action/system-config?_response=detail&salesChannelId=${this.defaultSalesChannel.id}`, {
2457
2573
  data: this.restoreSystemConfig
2458
2574
  });
2575
+ expect(restoreSystemConfigResponse.ok()).toBeTruthy();
2576
+ if (deleteUserIds.length > 0) {
2577
+ for (const userId of deleteUserIds) {
2578
+ await this.AdminApiClient.delete(`user/${userId}`, {});
2579
+ }
2580
+ }
2581
+ if (deleteAclRolesIds.length > 0) {
2582
+ for (const aclRoleId of deleteAclRolesIds) {
2583
+ await this.AdminApiClient.delete(`acl-role/${aclRoleId}`, {});
2584
+ }
2585
+ }
2459
2586
  await this.clearCaches();
2460
2587
  return this.AdminApiClient.post("_action/sync", {
2461
2588
  data: deleteOperations
@@ -2753,6 +2880,53 @@ class TestDataService {
2753
2880
  };
2754
2881
  return Object.assign({}, basicCustomer, overrides);
2755
2882
  }
2883
+ getBasicUserStruct(localId, overrides = {}) {
2884
+ const { id: userId, uuid: userUuid } = this.IdProvider.getIdPair();
2885
+ const userName = `${this.namePrefix}user_${userId}${this.nameSuffix}`;
2886
+ const basicUser = {
2887
+ id: userUuid,
2888
+ username: userName,
2889
+ firstName: `${userId} user`,
2890
+ lastName: `${userId} user`,
2891
+ email: `user${userId}@example.com`,
2892
+ password: "shopware",
2893
+ localeId: localId,
2894
+ timezone: "Europe/Berlin",
2895
+ admin: true
2896
+ };
2897
+ return Object.assign({}, basicUser, overrides);
2898
+ }
2899
+ getBasicAclRoleStruct(overrides = {}) {
2900
+ const { id: aclRoleId, uuid: aclRoleUuid } = this.IdProvider.getIdPair();
2901
+ const aclRoleName = `${this.namePrefix}AclRole-${aclRoleId}${this.nameSuffix}`;
2902
+ const basicAclRole = {
2903
+ id: aclRoleUuid,
2904
+ name: aclRoleName,
2905
+ privileges: [
2906
+ "cms_page:read",
2907
+ "custom_field:read",
2908
+ "custom_field_set_relation:read",
2909
+ "language:read",
2910
+ "locale:read",
2911
+ "log_entry:create",
2912
+ "message_queue_stats:read",
2913
+ "product_sorting:create",
2914
+ "product_sorting:delete",
2915
+ "product_sorting:read",
2916
+ "product_sorting:update",
2917
+ "sales_channel:read",
2918
+ "seo_url_template:create",
2919
+ "seo_url_template:read",
2920
+ "seo_url_template:update",
2921
+ "system.system_config",
2922
+ "system_config:create",
2923
+ "system_config:delete",
2924
+ "system_config:read",
2925
+ "system_config:update"
2926
+ ]
2927
+ };
2928
+ return Object.assign({}, basicAclRole, overrides);
2929
+ }
2756
2930
  getBasicOrderDeliveryStruct(deliveryState, shippingMethod, customerAddress) {
2757
2931
  const date = /* @__PURE__ */ new Date();
2758
2932
  const shippingDate = new Date(date);
@@ -3253,16 +3427,16 @@ const test$9 = test$e.extend({
3253
3427
  }
3254
3428
  });
3255
3429
 
3256
- var __defProp$10 = Object.defineProperty;
3257
- var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3258
- var __publicField$10 = (obj, key, value) => {
3259
- __defNormalProp$10(obj, typeof key !== "symbol" ? key + "" : key, value);
3430
+ var __defProp$11 = Object.defineProperty;
3431
+ var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3432
+ var __publicField$11 = (obj, key, value) => {
3433
+ __defNormalProp$11(obj, typeof key !== "symbol" ? key + "" : key, value);
3260
3434
  return value;
3261
3435
  };
3262
3436
  class IdProvider {
3263
3437
  constructor(workerIndex, seed) {
3264
- __publicField$10(this, "workerIndex");
3265
- __publicField$10(this, "seed");
3438
+ __publicField$11(this, "workerIndex");
3439
+ __publicField$11(this, "seed");
3266
3440
  this.workerIndex = workerIndex;
3267
3441
  this.seed = seed;
3268
3442
  }
@@ -3346,83 +3520,83 @@ const test$8 = test$e.extend({
3346
3520
  ]
3347
3521
  });
3348
3522
 
3349
- var __defProp$$ = Object.defineProperty;
3350
- var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3351
- var __publicField$$ = (obj, key, value) => {
3352
- __defNormalProp$$(obj, typeof key !== "symbol" ? key + "" : key, value);
3523
+ var __defProp$10 = Object.defineProperty;
3524
+ var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3525
+ var __publicField$10 = (obj, key, value) => {
3526
+ __defNormalProp$10(obj, typeof key !== "symbol" ? key + "" : key, value);
3353
3527
  return value;
3354
3528
  };
3355
3529
  class Home {
3356
3530
  constructor(page) {
3357
- __publicField$$(this, "categoryTitle");
3358
- __publicField$$(this, "accountMenuButton");
3359
- __publicField$$(this, "closeGuestSessionButton");
3360
- __publicField$$(this, "productImages");
3361
- __publicField$$(this, "productListItems");
3362
- __publicField$$(this, "loader");
3363
- __publicField$$(this, "productVariantCharacteristicsOptions");
3531
+ __publicField$10(this, "categoryTitle");
3532
+ __publicField$10(this, "accountMenuButton");
3533
+ __publicField$10(this, "closeGuestSessionButton");
3534
+ __publicField$10(this, "productImages");
3535
+ __publicField$10(this, "productListItems");
3536
+ __publicField$10(this, "loader");
3537
+ __publicField$10(this, "productVariantCharacteristicsOptions");
3364
3538
  /**
3365
3539
  * @deprecated Use 'Header/languagesDropdown' instead
3366
3540
  */
3367
- __publicField$$(this, "languagesDropdown");
3541
+ __publicField$10(this, "languagesDropdown");
3368
3542
  /**
3369
3543
  * @deprecated Use 'Header/languagesMenuOptions' instead
3370
3544
  */
3371
- __publicField$$(this, "languagesMenuOptions");
3545
+ __publicField$10(this, "languagesMenuOptions");
3372
3546
  /**
3373
3547
  * @deprecated Use 'Header/currenciesDropdown' instead
3374
3548
  */
3375
- __publicField$$(this, "currenciesDropdown");
3549
+ __publicField$10(this, "currenciesDropdown");
3376
3550
  /**
3377
3551
  * @deprecated Use 'Header/currenciesMenuOptions' instead
3378
3552
  */
3379
- __publicField$$(this, "currenciesMenuOptions");
3380
- __publicField$$(this, "consentOnlyTechnicallyRequiredButton");
3381
- __publicField$$(this, "consentConfigureButton");
3382
- __publicField$$(this, "consentAcceptAllCookiesButton");
3383
- __publicField$$(this, "consentCookiePreferences");
3384
- __publicField$$(this, "consentCookiePermissionContent");
3385
- __publicField$$(this, "consentDialog");
3386
- __publicField$$(this, "consentDialogTechnicallyRequiredCheckbox");
3387
- __publicField$$(this, "consentDialogStatisticsCheckbox");
3553
+ __publicField$10(this, "currenciesMenuOptions");
3554
+ __publicField$10(this, "consentOnlyTechnicallyRequiredButton");
3555
+ __publicField$10(this, "consentConfigureButton");
3556
+ __publicField$10(this, "consentAcceptAllCookiesButton");
3557
+ __publicField$10(this, "consentCookiePreferences");
3558
+ __publicField$10(this, "consentCookiePermissionContent");
3559
+ __publicField$10(this, "consentDialog");
3560
+ __publicField$10(this, "consentDialogTechnicallyRequiredCheckbox");
3561
+ __publicField$10(this, "consentDialogStatisticsCheckbox");
3388
3562
  /**
3389
3563
  * @deprecated Use 'consentDialogMarketingCheckbox' instead
3390
3564
  */
3391
- __publicField$$(this, "consentDialogMarketingdCheckbox");
3392
- __publicField$$(this, "consentDialogMarketingCheckbox");
3393
- __publicField$$(this, "consentDialogAcceptAllCookiesButton");
3394
- __publicField$$(this, "consentDialogSaveButton");
3395
- __publicField$$(this, "consentCookieBannerContainer");
3396
- __publicField$$(this, "offcanvasBackdrop");
3565
+ __publicField$10(this, "consentDialogMarketingdCheckbox");
3566
+ __publicField$10(this, "consentDialogMarketingCheckbox");
3567
+ __publicField$10(this, "consentDialogAcceptAllCookiesButton");
3568
+ __publicField$10(this, "consentDialogSaveButton");
3569
+ __publicField$10(this, "consentCookieBannerContainer");
3570
+ __publicField$10(this, "offcanvasBackdrop");
3397
3571
  /**
3398
3572
  * @deprecated Use 'Header/mainNavigationLink' instead
3399
3573
  */
3400
- __publicField$$(this, "mainNavigationLink");
3574
+ __publicField$10(this, "mainNavigationLink");
3401
3575
  /**
3402
3576
  * @deprecated Use 'Footer/contactFormLink' instead
3403
3577
  */
3404
- __publicField$$(this, "contactFormLink");
3578
+ __publicField$10(this, "contactFormLink");
3405
3579
  //wishlist
3406
3580
  /**
3407
3581
  * @deprecated Use 'Header/wishlistIcon' instead
3408
3582
  */
3409
- __publicField$$(this, "wishlistIcon");
3583
+ __publicField$10(this, "wishlistIcon");
3410
3584
  /**
3411
3585
  * @deprecated Use 'Header/wishlistBasket' instead
3412
3586
  */
3413
- __publicField$$(this, "wishlistBasket");
3587
+ __publicField$10(this, "wishlistBasket");
3414
3588
  //product filters
3415
- __publicField$$(this, "filterMultiSelect");
3416
- __publicField$$(this, "manufacturerFilter");
3417
- __publicField$$(this, "propertyFilters");
3418
- __publicField$$(this, "priceFilterButton");
3419
- __publicField$$(this, "resetAllButton");
3420
- __publicField$$(this, "freeShippingFilter");
3421
- __publicField$$(this, "productList");
3422
- __publicField$$(this, "productItemNames");
3423
- __publicField$$(this, "productRatingButton");
3424
- __publicField$$(this, "productRatingList");
3425
- __publicField$$(this, "page");
3589
+ __publicField$10(this, "filterMultiSelect");
3590
+ __publicField$10(this, "manufacturerFilter");
3591
+ __publicField$10(this, "propertyFilters");
3592
+ __publicField$10(this, "priceFilterButton");
3593
+ __publicField$10(this, "resetAllButton");
3594
+ __publicField$10(this, "freeShippingFilter");
3595
+ __publicField$10(this, "productList");
3596
+ __publicField$10(this, "productItemNames");
3597
+ __publicField$10(this, "productRatingButton");
3598
+ __publicField$10(this, "productRatingList");
3599
+ __publicField$10(this, "page");
3426
3600
  this.page = page;
3427
3601
  this.categoryTitle = page.locator(".cms-element-text h1");
3428
3602
  this.accountMenuButton = page.getByLabel("Your account");
@@ -3578,59 +3752,59 @@ class Home {
3578
3752
  }
3579
3753
  }
3580
3754
 
3581
- var __defProp$_ = Object.defineProperty;
3582
- var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3583
- var __publicField$_ = (obj, key, value) => {
3584
- __defNormalProp$_(obj, typeof key !== "symbol" ? key + "" : key, value);
3755
+ var __defProp$$ = Object.defineProperty;
3756
+ var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3757
+ var __publicField$$ = (obj, key, value) => {
3758
+ __defNormalProp$$(obj, typeof key !== "symbol" ? key + "" : key, value);
3585
3759
  return value;
3586
3760
  };
3587
3761
  let ProductDetail$1 = class ProductDetail {
3588
3762
  constructor(page) {
3589
- __publicField$_(this, "addToCartButton");
3590
- __publicField$_(this, "quantitySelect");
3591
- __publicField$_(this, "productSingleImage");
3592
- __publicField$_(this, "productSinglePrice");
3593
- __publicField$_(this, "productPriceRangesRow");
3594
- __publicField$_(this, "productListingPriceBadge");
3595
- __publicField$_(this, "productListingPrice");
3596
- __publicField$_(this, "productListingPricePercentage");
3597
- __publicField$_(this, "offCanvasCartTitle");
3598
- __publicField$_(this, "offCanvasCart");
3599
- __publicField$_(this, "offCanvasCartGoToCheckoutButton");
3600
- __publicField$_(this, "offCanvasLineItemImages");
3601
- __publicField$_(this, "offCanvasSummaryTotalPrice");
3602
- __publicField$_(this, "offCanvas");
3603
- __publicField$_(this, "wishlistAddedButton");
3604
- __publicField$_(this, "wishlistNotAddedButton");
3605
- __publicField$_(this, "productDetailConfigurator");
3606
- __publicField$_(this, "productDetailConfiguratorGroupTitle");
3607
- __publicField$_(this, "productDetailConfiguratorOptionInputs");
3608
- __publicField$_(this, "productName");
3763
+ __publicField$$(this, "addToCartButton");
3764
+ __publicField$$(this, "quantitySelect");
3765
+ __publicField$$(this, "productSingleImage");
3766
+ __publicField$$(this, "productSinglePrice");
3767
+ __publicField$$(this, "productPriceRangesRow");
3768
+ __publicField$$(this, "productListingPriceBadge");
3769
+ __publicField$$(this, "productListingPrice");
3770
+ __publicField$$(this, "productListingPricePercentage");
3771
+ __publicField$$(this, "offCanvasCartTitle");
3772
+ __publicField$$(this, "offCanvasCart");
3773
+ __publicField$$(this, "offCanvasCartGoToCheckoutButton");
3774
+ __publicField$$(this, "offCanvasLineItemImages");
3775
+ __publicField$$(this, "offCanvasSummaryTotalPrice");
3776
+ __publicField$$(this, "offCanvas");
3777
+ __publicField$$(this, "wishlistAddedButton");
3778
+ __publicField$$(this, "wishlistNotAddedButton");
3779
+ __publicField$$(this, "productDetailConfigurator");
3780
+ __publicField$$(this, "productDetailConfiguratorGroupTitle");
3781
+ __publicField$$(this, "productDetailConfiguratorOptionInputs");
3782
+ __publicField$$(this, "productName");
3609
3783
  //Reviews Tab
3610
- __publicField$_(this, "reviewsTab");
3611
- __publicField$_(this, "reviewTeaserButton");
3612
- __publicField$_(this, "reviewTeaserText");
3613
- __publicField$_(this, "reviewListingItems");
3614
- __publicField$_(this, "reviewEmptyListingText");
3615
- __publicField$_(this, "reviewLoginForm");
3616
- __publicField$_(this, "forgottenPasswordLink");
3617
- __publicField$_(this, "reviewForm");
3618
- __publicField$_(this, "reviewRatingPoints");
3619
- __publicField$_(this, "reviewRatingText");
3620
- __publicField$_(this, "reviewSubmitMessage");
3621
- __publicField$_(this, "reviewCounter");
3622
- __publicField$_(this, "reviewItemRatingPoints");
3623
- __publicField$_(this, "reviewItemTitle");
3624
- __publicField$_(this, "reviewReviewTextInput");
3625
- __publicField$_(this, "reviewItemContent");
3626
- __publicField$_(this, "reviewLoginButton");
3627
- __publicField$_(this, "reviewEmailInput");
3628
- __publicField$_(this, "reviewPasswordInput");
3629
- __publicField$_(this, "reviewTitleInput");
3630
- __publicField$_(this, "reviewSubmitButton");
3631
- __publicField$_(this, "productReviewsLink");
3632
- __publicField$_(this, "productReviewRating");
3633
- __publicField$_(this, "page");
3784
+ __publicField$$(this, "reviewsTab");
3785
+ __publicField$$(this, "reviewTeaserButton");
3786
+ __publicField$$(this, "reviewTeaserText");
3787
+ __publicField$$(this, "reviewListingItems");
3788
+ __publicField$$(this, "reviewEmptyListingText");
3789
+ __publicField$$(this, "reviewLoginForm");
3790
+ __publicField$$(this, "forgottenPasswordLink");
3791
+ __publicField$$(this, "reviewForm");
3792
+ __publicField$$(this, "reviewRatingPoints");
3793
+ __publicField$$(this, "reviewRatingText");
3794
+ __publicField$$(this, "reviewSubmitMessage");
3795
+ __publicField$$(this, "reviewCounter");
3796
+ __publicField$$(this, "reviewItemRatingPoints");
3797
+ __publicField$$(this, "reviewItemTitle");
3798
+ __publicField$$(this, "reviewReviewTextInput");
3799
+ __publicField$$(this, "reviewItemContent");
3800
+ __publicField$$(this, "reviewLoginButton");
3801
+ __publicField$$(this, "reviewEmailInput");
3802
+ __publicField$$(this, "reviewPasswordInput");
3803
+ __publicField$$(this, "reviewTitleInput");
3804
+ __publicField$$(this, "reviewSubmitButton");
3805
+ __publicField$$(this, "productReviewsLink");
3806
+ __publicField$$(this, "productReviewRating");
3807
+ __publicField$$(this, "page");
3634
3808
  this.page = page;
3635
3809
  this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
3636
3810
  this.quantitySelect = page.getByLabel("Quantity", { exact: true });
@@ -3696,18 +3870,18 @@ let ProductDetail$1 = class ProductDetail {
3696
3870
  }
3697
3871
  };
3698
3872
 
3699
- var __defProp$Z = Object.defineProperty;
3700
- var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3701
- var __publicField$Z = (obj, key, value) => {
3702
- __defNormalProp$Z(obj, typeof key !== "symbol" ? key + "" : key, value);
3873
+ var __defProp$_ = Object.defineProperty;
3874
+ var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3875
+ var __publicField$_ = (obj, key, value) => {
3876
+ __defNormalProp$_(obj, typeof key !== "symbol" ? key + "" : key, value);
3703
3877
  return value;
3704
3878
  };
3705
3879
  class Category {
3706
3880
  constructor(page) {
3707
- __publicField$Z(this, "sortingSelect");
3708
- __publicField$Z(this, "firstProductBuyButton");
3709
- __publicField$Z(this, "noProductsFoundAlert");
3710
- __publicField$Z(this, "page");
3881
+ __publicField$_(this, "sortingSelect");
3882
+ __publicField$_(this, "firstProductBuyButton");
3883
+ __publicField$_(this, "noProductsFoundAlert");
3884
+ __publicField$_(this, "page");
3711
3885
  this.page = page;
3712
3886
  this.sortingSelect = page.getByLabel("Sorting");
3713
3887
  this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
@@ -3718,24 +3892,24 @@ class Category {
3718
3892
  }
3719
3893
  }
3720
3894
 
3721
- var __defProp$Y = Object.defineProperty;
3722
- var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3723
- var __publicField$Y = (obj, key, value) => {
3724
- __defNormalProp$Y(obj, typeof key !== "symbol" ? key + "" : key, value);
3895
+ var __defProp$Z = Object.defineProperty;
3896
+ var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3897
+ var __publicField$Z = (obj, key, value) => {
3898
+ __defNormalProp$Z(obj, typeof key !== "symbol" ? key + "" : key, value);
3725
3899
  return value;
3726
3900
  };
3727
3901
  class CheckoutCart {
3728
3902
  constructor(page) {
3729
- __publicField$Y(this, "headline");
3730
- __publicField$Y(this, "goToCheckoutButton");
3731
- __publicField$Y(this, "enterPromoInput");
3732
- __publicField$Y(this, "grandTotalPrice");
3733
- __publicField$Y(this, "emptyCartAlert");
3734
- __publicField$Y(this, "stockReachedAlert");
3735
- __publicField$Y(this, "cartLineItemImages");
3736
- __publicField$Y(this, "unitPriceInfo");
3737
- __publicField$Y(this, "cartQuantityNumber");
3738
- __publicField$Y(this, "page");
3903
+ __publicField$Z(this, "headline");
3904
+ __publicField$Z(this, "goToCheckoutButton");
3905
+ __publicField$Z(this, "enterPromoInput");
3906
+ __publicField$Z(this, "grandTotalPrice");
3907
+ __publicField$Z(this, "emptyCartAlert");
3908
+ __publicField$Z(this, "stockReachedAlert");
3909
+ __publicField$Z(this, "cartLineItemImages");
3910
+ __publicField$Z(this, "unitPriceInfo");
3911
+ __publicField$Z(this, "cartQuantityNumber");
3912
+ __publicField$Z(this, "page");
3739
3913
  this.page = page;
3740
3914
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
3741
3915
  this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
@@ -3777,25 +3951,25 @@ class CheckoutCart {
3777
3951
  }
3778
3952
  }
3779
3953
 
3780
- var __defProp$X = Object.defineProperty;
3781
- var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3782
- var __publicField$X = (obj, key, value) => {
3783
- __defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
3954
+ var __defProp$Y = Object.defineProperty;
3955
+ var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3956
+ var __publicField$Y = (obj, key, value) => {
3957
+ __defNormalProp$Y(obj, typeof key !== "symbol" ? key + "" : key, value);
3784
3958
  return value;
3785
3959
  };
3786
3960
  class OffCanvasCart {
3787
3961
  constructor(page) {
3788
- __publicField$X(this, "headline");
3789
- __publicField$X(this, "itemCount");
3790
- __publicField$X(this, "goToCheckoutButton");
3791
- __publicField$X(this, "goToCartButton");
3792
- __publicField$X(this, "continueShoppingButton");
3793
- __publicField$X(this, "enterPromoInput");
3794
- __publicField$X(this, "submitDiscountButton");
3795
- __publicField$X(this, "subTotalPrice");
3796
- __publicField$X(this, "shippingCosts");
3797
- __publicField$X(this, "cartQuantityNumber");
3798
- __publicField$X(this, "page");
3962
+ __publicField$Y(this, "headline");
3963
+ __publicField$Y(this, "itemCount");
3964
+ __publicField$Y(this, "goToCheckoutButton");
3965
+ __publicField$Y(this, "goToCartButton");
3966
+ __publicField$Y(this, "continueShoppingButton");
3967
+ __publicField$Y(this, "enterPromoInput");
3968
+ __publicField$Y(this, "submitDiscountButton");
3969
+ __publicField$Y(this, "subTotalPrice");
3970
+ __publicField$Y(this, "shippingCosts");
3971
+ __publicField$Y(this, "cartQuantityNumber");
3972
+ __publicField$Y(this, "page");
3799
3973
  this.page = page;
3800
3974
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
3801
3975
  this.itemCount = page.locator(".offcanvas-cart-header-count");
@@ -3842,36 +4016,36 @@ class OffCanvasCart {
3842
4016
  }
3843
4017
  }
3844
4018
 
3845
- var __defProp$W = Object.defineProperty;
3846
- var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3847
- var __publicField$W = (obj, key, value) => {
3848
- __defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
4019
+ var __defProp$X = Object.defineProperty;
4020
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4021
+ var __publicField$X = (obj, key, value) => {
4022
+ __defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
3849
4023
  return value;
3850
4024
  };
3851
4025
  class CheckoutConfirm {
3852
4026
  constructor(page) {
3853
- __publicField$W(this, "headline");
3854
- __publicField$W(this, "termsAndConditionsCheckbox");
3855
- __publicField$W(this, "immediateAccessToDigitalProductCheckbox");
3856
- __publicField$W(this, "grandTotalPrice");
3857
- __publicField$W(this, "taxPrice");
3858
- __publicField$W(this, "submitOrderButton");
4027
+ __publicField$X(this, "headline");
4028
+ __publicField$X(this, "termsAndConditionsCheckbox");
4029
+ __publicField$X(this, "immediateAccessToDigitalProductCheckbox");
4030
+ __publicField$X(this, "grandTotalPrice");
4031
+ __publicField$X(this, "taxPrice");
4032
+ __publicField$X(this, "submitOrderButton");
3859
4033
  /**
3860
4034
  * Payment options
3861
4035
  */
3862
- __publicField$W(this, "paymentCashOnDelivery");
3863
- __publicField$W(this, "paymentPaidInAdvance");
3864
- __publicField$W(this, "paymentInvoice");
4036
+ __publicField$X(this, "paymentCashOnDelivery");
4037
+ __publicField$X(this, "paymentPaidInAdvance");
4038
+ __publicField$X(this, "paymentInvoice");
3865
4039
  /**
3866
4040
  * Shipping options
3867
4041
  */
3868
- __publicField$W(this, "shippingStandard");
3869
- __publicField$W(this, "shippingExpress");
4042
+ __publicField$X(this, "shippingStandard");
4043
+ __publicField$X(this, "shippingExpress");
3870
4044
  /**
3871
4045
  * Product details
3872
4046
  */
3873
- __publicField$W(this, "cartLineItemImages");
3874
- __publicField$W(this, "page");
4047
+ __publicField$X(this, "cartLineItemImages");
4048
+ __publicField$X(this, "page");
3875
4049
  this.page = page;
3876
4050
  this.headline = page.getByRole("heading", { name: "Complete order" });
3877
4051
  this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
@@ -3891,21 +4065,21 @@ class CheckoutConfirm {
3891
4065
  }
3892
4066
  }
3893
4067
 
3894
- var __defProp$V = Object.defineProperty;
3895
- var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3896
- var __publicField$V = (obj, key, value) => {
3897
- __defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
4068
+ var __defProp$W = Object.defineProperty;
4069
+ var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4070
+ var __publicField$W = (obj, key, value) => {
4071
+ __defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
3898
4072
  return value;
3899
4073
  };
3900
4074
  class CheckoutFinish {
3901
4075
  constructor(page) {
3902
- __publicField$V(this, "headline");
3903
- __publicField$V(this, "orderNumberText");
3904
- __publicField$V(this, "grandTotalPrice");
3905
- __publicField$V(this, "taxPrice");
3906
- __publicField$V(this, "cartLineItemImages");
3907
- __publicField$V(this, "page");
3908
- __publicField$V(this, "orderNumberRegex", /Your order number: #(\d+)/);
4076
+ __publicField$W(this, "headline");
4077
+ __publicField$W(this, "orderNumberText");
4078
+ __publicField$W(this, "grandTotalPrice");
4079
+ __publicField$W(this, "taxPrice");
4080
+ __publicField$W(this, "cartLineItemImages");
4081
+ __publicField$W(this, "page");
4082
+ __publicField$W(this, "orderNumberRegex", /Your order number: #(\d+)/);
3909
4083
  this.page = page;
3910
4084
  this.headline = page.getByRole("heading", { name: "Thank you for your order" });
3911
4085
  this.orderNumberText = page.getByText(this.orderNumberRegex);
@@ -3935,16 +4109,16 @@ class CheckoutFinish {
3935
4109
  }
3936
4110
  }
3937
4111
 
3938
- var __defProp$U = Object.defineProperty;
3939
- var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3940
- var __publicField$U = (obj, key, value) => {
3941
- __defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
4112
+ var __defProp$V = Object.defineProperty;
4113
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4114
+ var __publicField$V = (obj, key, value) => {
4115
+ __defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
3942
4116
  return value;
3943
4117
  };
3944
4118
  class CheckoutRegister {
3945
4119
  constructor(page) {
3946
- __publicField$U(this, "cartLineItemImages");
3947
- __publicField$U(this, "page");
4120
+ __publicField$V(this, "cartLineItemImages");
4121
+ __publicField$V(this, "page");
3948
4122
  this.page = page;
3949
4123
  this.cartLineItemImages = page.locator(".line-item-img-link");
3950
4124
  }
@@ -3953,26 +4127,26 @@ class CheckoutRegister {
3953
4127
  }
3954
4128
  }
3955
4129
 
3956
- var __defProp$T = Object.defineProperty;
3957
- var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3958
- var __publicField$T = (obj, key, value) => {
3959
- __defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
4130
+ var __defProp$U = Object.defineProperty;
4131
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4132
+ var __publicField$U = (obj, key, value) => {
4133
+ __defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
3960
4134
  return value;
3961
4135
  };
3962
4136
  class Account {
3963
4137
  constructor(page, instanceMeta) {
3964
- __publicField$T(this, "headline");
3965
- __publicField$T(this, "personalDataCardTitle");
3966
- __publicField$T(this, "paymentMethodCardTitle");
3967
- __publicField$T(this, "billingAddressCardTitle");
3968
- __publicField$T(this, "shippingAddressCardTitle");
3969
- __publicField$T(this, "newsletterCheckbox");
3970
- __publicField$T(this, "newsletterRegistrationSuccessMessage");
3971
- __publicField$T(this, "customerGroupRequestMessage");
3972
- __publicField$T(this, "cannotDeliverToCountryAlert");
3973
- __publicField$T(this, "shippingToAddressNotPossibleAlert");
3974
- __publicField$T(this, "page");
3975
- __publicField$T(this, "instanceMeta");
4138
+ __publicField$U(this, "headline");
4139
+ __publicField$U(this, "personalDataCardTitle");
4140
+ __publicField$U(this, "paymentMethodCardTitle");
4141
+ __publicField$U(this, "billingAddressCardTitle");
4142
+ __publicField$U(this, "shippingAddressCardTitle");
4143
+ __publicField$U(this, "newsletterCheckbox");
4144
+ __publicField$U(this, "newsletterRegistrationSuccessMessage");
4145
+ __publicField$U(this, "customerGroupRequestMessage");
4146
+ __publicField$U(this, "cannotDeliverToCountryAlert");
4147
+ __publicField$U(this, "shippingToAddressNotPossibleAlert");
4148
+ __publicField$U(this, "page");
4149
+ __publicField$U(this, "instanceMeta");
3976
4150
  this.page = page;
3977
4151
  this.instanceMeta = instanceMeta;
3978
4152
  this.headline = page.getByRole("heading", { name: "Overview" });
@@ -3998,57 +4172,57 @@ class Account {
3998
4172
  }
3999
4173
  }
4000
4174
 
4001
- var __defProp$S = Object.defineProperty;
4002
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4003
- var __publicField$S = (obj, key, value) => {
4004
- __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
4175
+ var __defProp$T = Object.defineProperty;
4176
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4177
+ var __publicField$T = (obj, key, value) => {
4178
+ __defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
4005
4179
  return value;
4006
4180
  };
4007
4181
  class AccountLogin {
4008
4182
  constructor(page) {
4009
- __publicField$S(this, "emailInput");
4010
- __publicField$S(this, "passwordInput");
4011
- __publicField$S(this, "forgotPasswordLink");
4012
- __publicField$S(this, "loginButton");
4013
- __publicField$S(this, "logoutLink");
4014
- __publicField$S(this, "successAlert");
4015
- __publicField$S(this, "invalidCredentialsAlert");
4016
- __publicField$S(this, "passwordUpdatedAlert");
4183
+ __publicField$T(this, "emailInput");
4184
+ __publicField$T(this, "passwordInput");
4185
+ __publicField$T(this, "forgotPasswordLink");
4186
+ __publicField$T(this, "loginButton");
4187
+ __publicField$T(this, "logoutLink");
4188
+ __publicField$T(this, "successAlert");
4189
+ __publicField$T(this, "invalidCredentialsAlert");
4190
+ __publicField$T(this, "passwordUpdatedAlert");
4017
4191
  // Inputs for registration
4018
- __publicField$S(this, "personalFormArea");
4019
- __publicField$S(this, "billingAddressFormArea");
4020
- __publicField$S(this, "accountTypeSelect");
4021
- __publicField$S(this, "salutationSelect");
4022
- __publicField$S(this, "firstNameInput");
4023
- __publicField$S(this, "lastNameInput");
4024
- __publicField$S(this, "companyInput");
4025
- __publicField$S(this, "departmentInput");
4026
- __publicField$S(this, "vatRegNoInput");
4027
- __publicField$S(this, "registerEmailInput");
4028
- __publicField$S(this, "registerPasswordInput");
4029
- __publicField$S(this, "streetAddressInput");
4030
- __publicField$S(this, "cityInput");
4031
- __publicField$S(this, "countryInput");
4032
- __publicField$S(this, "postalCodeInput");
4033
- __publicField$S(this, "registerButton");
4192
+ __publicField$T(this, "personalFormArea");
4193
+ __publicField$T(this, "billingAddressFormArea");
4194
+ __publicField$T(this, "accountTypeSelect");
4195
+ __publicField$T(this, "salutationSelect");
4196
+ __publicField$T(this, "firstNameInput");
4197
+ __publicField$T(this, "lastNameInput");
4198
+ __publicField$T(this, "companyInput");
4199
+ __publicField$T(this, "departmentInput");
4200
+ __publicField$T(this, "vatRegNoInput");
4201
+ __publicField$T(this, "registerEmailInput");
4202
+ __publicField$T(this, "registerPasswordInput");
4203
+ __publicField$T(this, "streetAddressInput");
4204
+ __publicField$T(this, "cityInput");
4205
+ __publicField$T(this, "countryInput");
4206
+ __publicField$T(this, "postalCodeInput");
4207
+ __publicField$T(this, "registerButton");
4034
4208
  // Inputs for reCaptcha
4035
- __publicField$S(this, "greCaptchaV2Container");
4036
- __publicField$S(this, "greCaptchaV2Input");
4037
- __publicField$S(this, "greCaptchaV3Input");
4038
- __publicField$S(this, "greCaptchaProtectionInformation");
4039
- __publicField$S(this, "greCaptchaBadge");
4209
+ __publicField$T(this, "greCaptchaV2Container");
4210
+ __publicField$T(this, "greCaptchaV2Input");
4211
+ __publicField$T(this, "greCaptchaV3Input");
4212
+ __publicField$T(this, "greCaptchaProtectionInformation");
4213
+ __publicField$T(this, "greCaptchaBadge");
4040
4214
  //Input for shipping address
4041
- __publicField$S(this, "differentShippingAddressCheckbox");
4042
- __publicField$S(this, "registerShippingAddressFormArea");
4043
- __publicField$S(this, "shippingAddressSalutationSelect");
4044
- __publicField$S(this, "shippingAddressFirstNameInput");
4045
- __publicField$S(this, "shippingAddressLastNameInput");
4046
- __publicField$S(this, "shippingAddressStreetAddressInput");
4047
- __publicField$S(this, "shippingAddressCityInput");
4048
- __publicField$S(this, "shippingAddressCountryInput");
4049
- __publicField$S(this, "shippingAddressPostalCodeInput");
4050
- __publicField$S(this, "shippingAddressStateInput");
4051
- __publicField$S(this, "page");
4215
+ __publicField$T(this, "differentShippingAddressCheckbox");
4216
+ __publicField$T(this, "registerShippingAddressFormArea");
4217
+ __publicField$T(this, "shippingAddressSalutationSelect");
4218
+ __publicField$T(this, "shippingAddressFirstNameInput");
4219
+ __publicField$T(this, "shippingAddressLastNameInput");
4220
+ __publicField$T(this, "shippingAddressStreetAddressInput");
4221
+ __publicField$T(this, "shippingAddressCityInput");
4222
+ __publicField$T(this, "shippingAddressCountryInput");
4223
+ __publicField$T(this, "shippingAddressPostalCodeInput");
4224
+ __publicField$T(this, "shippingAddressStateInput");
4225
+ __publicField$T(this, "page");
4052
4226
  this.page = page;
4053
4227
  this.emailInput = page.getByLabel("Your email address");
4054
4228
  this.passwordInput = page.getByLabel("Your password");
@@ -4099,26 +4273,26 @@ class AccountLogin {
4099
4273
  }
4100
4274
  }
4101
4275
 
4102
- var __defProp$R = Object.defineProperty;
4103
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4104
- var __publicField$R = (obj, key, value) => {
4105
- __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
4276
+ var __defProp$S = Object.defineProperty;
4277
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4278
+ var __publicField$S = (obj, key, value) => {
4279
+ __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
4106
4280
  return value;
4107
4281
  };
4108
4282
  class AccountRecover {
4109
4283
  constructor(page) {
4110
- __publicField$R(this, "passwordRecoveryForm");
4111
- __publicField$R(this, "title");
4112
- __publicField$R(this, "subtitle");
4113
- __publicField$R(this, "emailInput");
4114
- __publicField$R(this, "requestEmailButton");
4115
- __publicField$R(this, "backButton");
4116
- __publicField$R(this, "passwordResetEmailSentMessage");
4117
- __publicField$R(this, "newPasswordInput");
4118
- __publicField$R(this, "newPasswordConfirmInput");
4119
- __publicField$R(this, "changePasswordButton");
4120
- __publicField$R(this, "invalidLinkMessage");
4121
- __publicField$R(this, "page");
4284
+ __publicField$S(this, "passwordRecoveryForm");
4285
+ __publicField$S(this, "title");
4286
+ __publicField$S(this, "subtitle");
4287
+ __publicField$S(this, "emailInput");
4288
+ __publicField$S(this, "requestEmailButton");
4289
+ __publicField$S(this, "backButton");
4290
+ __publicField$S(this, "passwordResetEmailSentMessage");
4291
+ __publicField$S(this, "newPasswordInput");
4292
+ __publicField$S(this, "newPasswordConfirmInput");
4293
+ __publicField$S(this, "changePasswordButton");
4294
+ __publicField$S(this, "invalidLinkMessage");
4295
+ __publicField$S(this, "page");
4122
4296
  this.page = page;
4123
4297
  this.passwordRecoveryForm = page.locator(".account-recover-password-form");
4124
4298
  const cardTitle = this.passwordRecoveryForm.locator(".card-title");
@@ -4141,36 +4315,36 @@ class AccountRecover {
4141
4315
  }
4142
4316
  }
4143
4317
 
4144
- var __defProp$Q = Object.defineProperty;
4145
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4146
- var __publicField$Q = (obj, key, value) => {
4147
- __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
4318
+ var __defProp$R = Object.defineProperty;
4319
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4320
+ var __publicField$R = (obj, key, value) => {
4321
+ __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
4148
4322
  return value;
4149
4323
  };
4150
4324
  class AccountProfile {
4151
4325
  constructor(page, instanceMeta) {
4152
- __publicField$Q(this, "page");
4153
- __publicField$Q(this, "instanceMeta");
4154
- __publicField$Q(this, "salutationSelect");
4155
- __publicField$Q(this, "firstNameInput");
4156
- __publicField$Q(this, "lastNameInput");
4157
- __publicField$Q(this, "saveProfileButton");
4158
- __publicField$Q(this, "changeEmailButton");
4159
- __publicField$Q(this, "emailAddressInput");
4160
- __publicField$Q(this, "emailAddressConfirmInput");
4161
- __publicField$Q(this, "emailConfirmPasswordInput");
4162
- __publicField$Q(this, "saveEmailAddressButton");
4163
- __publicField$Q(this, "changePasswordButton");
4164
- __publicField$Q(this, "newPasswordInput");
4165
- __publicField$Q(this, "newPasswordConfirmInput");
4166
- __publicField$Q(this, "currentPasswordInput");
4167
- __publicField$Q(this, "saveNewPasswordButton");
4168
- __publicField$Q(this, "loginDataEmailAddress");
4169
- __publicField$Q(this, "emailUpdateMessage");
4170
- __publicField$Q(this, "passwordUpdateMessage");
4171
- __publicField$Q(this, "emailValidationAlert");
4172
- __publicField$Q(this, "emailUpdateFailureAlert");
4173
- __publicField$Q(this, "passwordUpdateFailureAlert");
4326
+ __publicField$R(this, "page");
4327
+ __publicField$R(this, "instanceMeta");
4328
+ __publicField$R(this, "salutationSelect");
4329
+ __publicField$R(this, "firstNameInput");
4330
+ __publicField$R(this, "lastNameInput");
4331
+ __publicField$R(this, "saveProfileButton");
4332
+ __publicField$R(this, "changeEmailButton");
4333
+ __publicField$R(this, "emailAddressInput");
4334
+ __publicField$R(this, "emailAddressConfirmInput");
4335
+ __publicField$R(this, "emailConfirmPasswordInput");
4336
+ __publicField$R(this, "saveEmailAddressButton");
4337
+ __publicField$R(this, "changePasswordButton");
4338
+ __publicField$R(this, "newPasswordInput");
4339
+ __publicField$R(this, "newPasswordConfirmInput");
4340
+ __publicField$R(this, "currentPasswordInput");
4341
+ __publicField$R(this, "saveNewPasswordButton");
4342
+ __publicField$R(this, "loginDataEmailAddress");
4343
+ __publicField$R(this, "emailUpdateMessage");
4344
+ __publicField$R(this, "passwordUpdateMessage");
4345
+ __publicField$R(this, "emailValidationAlert");
4346
+ __publicField$R(this, "emailUpdateFailureAlert");
4347
+ __publicField$R(this, "passwordUpdateFailureAlert");
4174
4348
  this.page = page;
4175
4349
  this.instanceMeta = instanceMeta;
4176
4350
  this.salutationSelect = page.getByLabel("Salutation");
@@ -4212,24 +4386,24 @@ class AccountProfile {
4212
4386
  }
4213
4387
  }
4214
4388
 
4215
- var __defProp$P = Object.defineProperty;
4216
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4217
- var __publicField$P = (obj, key, value) => {
4218
- __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
4389
+ var __defProp$Q = Object.defineProperty;
4390
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4391
+ var __publicField$Q = (obj, key, value) => {
4392
+ __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
4219
4393
  return value;
4220
4394
  };
4221
4395
  class AccountOrder {
4222
4396
  constructor(page) {
4223
- __publicField$P(this, "cartLineItemImages");
4224
- __publicField$P(this, "orderExpandButton");
4225
- __publicField$P(this, "digitalProductDownloadButton");
4226
- __publicField$P(this, "dialogOrderCancel");
4227
- __publicField$P(this, "dialogOrderCancelButton");
4228
- __publicField$P(this, "dialogBackButton");
4229
- __publicField$P(this, "orderDetails");
4230
- __publicField$P(this, "invoiceHTML");
4231
- __publicField$P(this, "creditItem");
4232
- __publicField$P(this, "page");
4397
+ __publicField$Q(this, "cartLineItemImages");
4398
+ __publicField$Q(this, "orderExpandButton");
4399
+ __publicField$Q(this, "digitalProductDownloadButton");
4400
+ __publicField$Q(this, "dialogOrderCancel");
4401
+ __publicField$Q(this, "dialogOrderCancelButton");
4402
+ __publicField$Q(this, "dialogBackButton");
4403
+ __publicField$Q(this, "orderDetails");
4404
+ __publicField$Q(this, "invoiceHTML");
4405
+ __publicField$Q(this, "creditItem");
4406
+ __publicField$Q(this, "page");
4233
4407
  this.page = page;
4234
4408
  this.orderExpandButton = page.getByRole("button", { name: /Expand|Show details/ }).first();
4235
4409
  this.cartLineItemImages = page.locator(".line-item-img-link");
@@ -4281,27 +4455,27 @@ class AccountOrder {
4281
4455
  }
4282
4456
  }
4283
4457
 
4284
- var __defProp$O = Object.defineProperty;
4285
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4286
- var __publicField$O = (obj, key, value) => {
4287
- __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
4458
+ var __defProp$P = Object.defineProperty;
4459
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4460
+ var __publicField$P = (obj, key, value) => {
4461
+ __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
4288
4462
  return value;
4289
4463
  };
4290
4464
  class AccountAddresses {
4291
4465
  constructor(page, instanceMeta) {
4292
- __publicField$O(this, "addNewAddressButton");
4293
- __publicField$O(this, "editBillingAddressButton");
4294
- __publicField$O(this, "editShippingAddressButton");
4295
- __publicField$O(this, "useDefaultBillingAddressButton");
4296
- __publicField$O(this, "useDefaultShippingAddressButton");
4297
- __publicField$O(this, "deliveryNotPossibleAlert");
4298
- __publicField$O(this, "availableAddresses");
4299
- __publicField$O(this, "addressDropdownButton");
4300
- __publicField$O(this, "addressDropdownButtons");
4301
- __publicField$O(this, "availableAddressesUseAsBillingAddress");
4302
- __publicField$O(this, "availableAddressesUseAsShippingAddress");
4303
- __publicField$O(this, "page");
4304
- __publicField$O(this, "instanceMeta");
4466
+ __publicField$P(this, "addNewAddressButton");
4467
+ __publicField$P(this, "editBillingAddressButton");
4468
+ __publicField$P(this, "editShippingAddressButton");
4469
+ __publicField$P(this, "useDefaultBillingAddressButton");
4470
+ __publicField$P(this, "useDefaultShippingAddressButton");
4471
+ __publicField$P(this, "deliveryNotPossibleAlert");
4472
+ __publicField$P(this, "availableAddresses");
4473
+ __publicField$P(this, "addressDropdownButton");
4474
+ __publicField$P(this, "addressDropdownButtons");
4475
+ __publicField$P(this, "availableAddressesUseAsBillingAddress");
4476
+ __publicField$P(this, "availableAddressesUseAsShippingAddress");
4477
+ __publicField$P(this, "page");
4478
+ __publicField$P(this, "instanceMeta");
4305
4479
  this.page = page;
4306
4480
  this.instanceMeta = instanceMeta;
4307
4481
  this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
@@ -4325,19 +4499,19 @@ class AccountAddresses {
4325
4499
  }
4326
4500
  }
4327
4501
 
4328
- var __defProp$N = Object.defineProperty;
4329
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4330
- var __publicField$N = (obj, key, value) => {
4331
- __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
4502
+ var __defProp$O = Object.defineProperty;
4503
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4504
+ var __publicField$O = (obj, key, value) => {
4505
+ __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
4332
4506
  return value;
4333
4507
  };
4334
4508
  class AccountPayment {
4335
4509
  constructor(page) {
4336
- __publicField$N(this, "cashOnDeliveryOption");
4337
- __publicField$N(this, "paidInAdvanceOption");
4338
- __publicField$N(this, "invoiceOption");
4339
- __publicField$N(this, "changeDefaultPaymentButton");
4340
- __publicField$N(this, "page");
4510
+ __publicField$O(this, "cashOnDeliveryOption");
4511
+ __publicField$O(this, "paidInAdvanceOption");
4512
+ __publicField$O(this, "invoiceOption");
4513
+ __publicField$O(this, "changeDefaultPaymentButton");
4514
+ __publicField$O(this, "page");
4341
4515
  this.page = page;
4342
4516
  this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
4343
4517
  this.paidInAdvanceOption = page.getByLabel("Paid in advance");
@@ -4349,17 +4523,17 @@ class AccountPayment {
4349
4523
  }
4350
4524
  }
4351
4525
 
4352
- var __defProp$M = Object.defineProperty;
4353
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4354
- var __publicField$M = (obj, key, value) => {
4355
- __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
4526
+ var __defProp$N = Object.defineProperty;
4527
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4528
+ var __publicField$N = (obj, key, value) => {
4529
+ __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
4356
4530
  return value;
4357
4531
  };
4358
4532
  class Search {
4359
4533
  constructor(page) {
4360
- __publicField$M(this, "headline");
4361
- __publicField$M(this, "productImages");
4362
- __publicField$M(this, "page");
4534
+ __publicField$N(this, "headline");
4535
+ __publicField$N(this, "productImages");
4536
+ __publicField$N(this, "page");
4363
4537
  this.page = page;
4364
4538
  this.headline = page.locator("h1.search-headline");
4365
4539
  this.productImages = page.locator(".product-image-wrapper");
@@ -4369,25 +4543,25 @@ class Search {
4369
4543
  }
4370
4544
  }
4371
4545
 
4372
- var __defProp$L = Object.defineProperty;
4373
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4374
- var __publicField$L = (obj, key, value) => {
4375
- __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
4546
+ var __defProp$M = Object.defineProperty;
4547
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4548
+ var __publicField$M = (obj, key, value) => {
4549
+ __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
4376
4550
  return value;
4377
4551
  };
4378
4552
  class SearchSuggest extends Home {
4379
4553
  constructor(page) {
4380
4554
  super(page);
4381
- __publicField$L(this, "searchSuggestLineItemImages");
4382
- __publicField$L(this, "searchInput");
4383
- __publicField$L(this, "searchIcon");
4384
- __publicField$L(this, "searchSuggestNoResult");
4385
- __publicField$L(this, "searchSuggestLineItemName");
4386
- __publicField$L(this, "searchSuggestLineItemPrice");
4387
- __publicField$L(this, "searchSuggestTotalLink");
4388
- __publicField$L(this, "searchResultTotal");
4389
- __publicField$L(this, "searchHeadline");
4390
- __publicField$L(this, "page");
4555
+ __publicField$M(this, "searchSuggestLineItemImages");
4556
+ __publicField$M(this, "searchInput");
4557
+ __publicField$M(this, "searchIcon");
4558
+ __publicField$M(this, "searchSuggestNoResult");
4559
+ __publicField$M(this, "searchSuggestLineItemName");
4560
+ __publicField$M(this, "searchSuggestLineItemPrice");
4561
+ __publicField$M(this, "searchSuggestTotalLink");
4562
+ __publicField$M(this, "searchResultTotal");
4563
+ __publicField$M(this, "searchHeadline");
4564
+ __publicField$M(this, "page");
4391
4565
  this.page = page;
4392
4566
  this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
4393
4567
  this.searchInput = page.locator(".header-search-input");
@@ -4408,16 +4582,16 @@ class SearchSuggest extends Home {
4408
4582
  }
4409
4583
  }
4410
4584
 
4411
- var __defProp$K = Object.defineProperty;
4412
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4413
- var __publicField$K = (obj, key, value) => {
4414
- __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
4585
+ var __defProp$L = Object.defineProperty;
4586
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4587
+ var __publicField$L = (obj, key, value) => {
4588
+ __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
4415
4589
  return value;
4416
4590
  };
4417
4591
  class CustomRegister extends AccountLogin {
4418
4592
  constructor(page) {
4419
4593
  super(page);
4420
- __publicField$K(this, "page");
4594
+ __publicField$L(this, "page");
4421
4595
  this.page = page;
4422
4596
  }
4423
4597
  url(customCustomerGroupName) {
@@ -4425,31 +4599,31 @@ class CustomRegister extends AccountLogin {
4425
4599
  }
4426
4600
  }
4427
4601
 
4428
- var __defProp$J = Object.defineProperty;
4429
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4430
- var __publicField$J = (obj, key, value) => {
4431
- __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
4602
+ var __defProp$K = Object.defineProperty;
4603
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4604
+ var __publicField$K = (obj, key, value) => {
4605
+ __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
4432
4606
  return value;
4433
4607
  };
4434
4608
  class CheckoutOrderEdit {
4435
4609
  constructor(page) {
4436
- __publicField$J(this, "completePaymentButton");
4437
- __publicField$J(this, "orderCancelButton");
4438
- __publicField$J(this, "dialogOrderCancel");
4439
- __publicField$J(this, "dialogOrderCancelButton");
4440
- __publicField$J(this, "dialogBackButton");
4610
+ __publicField$K(this, "completePaymentButton");
4611
+ __publicField$K(this, "orderCancelButton");
4612
+ __publicField$K(this, "dialogOrderCancel");
4613
+ __publicField$K(this, "dialogOrderCancelButton");
4614
+ __publicField$K(this, "dialogBackButton");
4441
4615
  /**
4442
4616
  * Payment options
4443
4617
  */
4444
- __publicField$J(this, "paymentCashOnDelivery");
4445
- __publicField$J(this, "paymentPaidInAdvance");
4446
- __publicField$J(this, "paymentInvoice");
4618
+ __publicField$K(this, "paymentCashOnDelivery");
4619
+ __publicField$K(this, "paymentPaidInAdvance");
4620
+ __publicField$K(this, "paymentInvoice");
4447
4621
  /**
4448
4622
  * Shipping options
4449
4623
  */
4450
- __publicField$J(this, "shippingStandard");
4451
- __publicField$J(this, "shippingExpress");
4452
- __publicField$J(this, "page");
4624
+ __publicField$K(this, "shippingStandard");
4625
+ __publicField$K(this, "shippingExpress");
4626
+ __publicField$K(this, "page");
4453
4627
  this.page = page;
4454
4628
  this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
4455
4629
  this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
@@ -4475,26 +4649,26 @@ class CheckoutOrderEdit {
4475
4649
  }
4476
4650
  }
4477
4651
 
4478
- var __defProp$I = Object.defineProperty;
4479
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4480
- var __publicField$I = (obj, key, value) => {
4481
- __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
4652
+ var __defProp$J = Object.defineProperty;
4653
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4654
+ var __publicField$J = (obj, key, value) => {
4655
+ __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
4482
4656
  return value;
4483
4657
  };
4484
4658
  class AccountAddressCreate {
4485
4659
  constructor(page) {
4486
- __publicField$I(this, "salutationDropdown");
4487
- __publicField$I(this, "firstNameInput");
4488
- __publicField$I(this, "lastNameInput");
4489
- __publicField$I(this, "companyInput");
4490
- __publicField$I(this, "departmentInput");
4491
- __publicField$I(this, "streetInput");
4492
- __publicField$I(this, "zipcodeInput");
4493
- __publicField$I(this, "cityInput");
4494
- __publicField$I(this, "countryDropdown");
4495
- __publicField$I(this, "saveAddressButton");
4496
- __publicField$I(this, "stateDropdown");
4497
- __publicField$I(this, "page");
4660
+ __publicField$J(this, "salutationDropdown");
4661
+ __publicField$J(this, "firstNameInput");
4662
+ __publicField$J(this, "lastNameInput");
4663
+ __publicField$J(this, "companyInput");
4664
+ __publicField$J(this, "departmentInput");
4665
+ __publicField$J(this, "streetInput");
4666
+ __publicField$J(this, "zipcodeInput");
4667
+ __publicField$J(this, "cityInput");
4668
+ __publicField$J(this, "countryDropdown");
4669
+ __publicField$J(this, "saveAddressButton");
4670
+ __publicField$J(this, "stateDropdown");
4671
+ __publicField$J(this, "page");
4498
4672
  this.page = page;
4499
4673
  this.salutationDropdown = page.getByRole("combobox", { name: "Salutation" });
4500
4674
  this.firstNameInput = page.getByRole("textbox", { name: "First name" });
@@ -4513,19 +4687,19 @@ class AccountAddressCreate {
4513
4687
  }
4514
4688
  }
4515
4689
 
4516
- var __defProp$H = Object.defineProperty;
4517
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4518
- var __publicField$H = (obj, key, value) => {
4519
- __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
4690
+ var __defProp$I = Object.defineProperty;
4691
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4692
+ var __publicField$I = (obj, key, value) => {
4693
+ __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
4520
4694
  return value;
4521
4695
  };
4522
4696
  class PageNotFound {
4523
4697
  constructor(page) {
4524
- __publicField$H(this, "pageNotFoundImage");
4525
- __publicField$H(this, "headline");
4526
- __publicField$H(this, "pageNotFoundMessage");
4527
- __publicField$H(this, "backToShopButton");
4528
- __publicField$H(this, "page");
4698
+ __publicField$I(this, "pageNotFoundImage");
4699
+ __publicField$I(this, "headline");
4700
+ __publicField$I(this, "pageNotFoundMessage");
4701
+ __publicField$I(this, "backToShopButton");
4702
+ __publicField$I(this, "page");
4529
4703
  this.page = page;
4530
4704
  this.pageNotFoundImage = page.getByAltText("Page not found");
4531
4705
  this.headline = page.getByRole("heading", { name: "Page not found" });
@@ -4537,10 +4711,10 @@ class PageNotFound {
4537
4711
  }
4538
4712
  }
4539
4713
 
4540
- var __defProp$G = Object.defineProperty;
4541
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4542
- var __publicField$G = (obj, key, value) => {
4543
- __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
4714
+ var __defProp$H = Object.defineProperty;
4715
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4716
+ var __publicField$H = (obj, key, value) => {
4717
+ __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
4544
4718
  return value;
4545
4719
  };
4546
4720
  class ContactForm extends Home {
@@ -4549,36 +4723,36 @@ class ContactForm extends Home {
4549
4723
  /**
4550
4724
  * @deprecated Compatible until shopware v6.6.x, will be removed in 6.8.0.0, use 'contactWrapper' instead
4551
4725
  */
4552
- __publicField$G(this, "contactModal");
4726
+ __publicField$H(this, "contactModal");
4553
4727
  /**
4554
4728
  * @deprecated Compatible until shopware v6.6.x, will be removed in 6.8.0.0, use 'contactSuccessMessage' instead
4555
4729
  */
4556
- __publicField$G(this, "contactSuccessModal");
4557
- __publicField$G(this, "contactWrapper");
4558
- __publicField$G(this, "salutationSelect");
4559
- __publicField$G(this, "firstNameInput");
4560
- __publicField$G(this, "lastNameInput");
4561
- __publicField$G(this, "emailInput");
4562
- __publicField$G(this, "phoneInput");
4563
- __publicField$G(this, "subjectInput");
4564
- __publicField$G(this, "commentInput");
4565
- __publicField$G(this, "privacyPolicyCheckbox");
4566
- __publicField$G(this, "submitButton");
4567
- __publicField$G(this, "contactSuccessMessage");
4568
- __publicField$G(this, "cardTitle");
4569
- __publicField$G(this, "formFieldFeedback");
4570
- __publicField$G(this, "formAlert");
4730
+ __publicField$H(this, "contactSuccessModal");
4731
+ __publicField$H(this, "contactWrapper");
4732
+ __publicField$H(this, "salutationSelect");
4733
+ __publicField$H(this, "firstNameInput");
4734
+ __publicField$H(this, "lastNameInput");
4735
+ __publicField$H(this, "emailInput");
4736
+ __publicField$H(this, "phoneInput");
4737
+ __publicField$H(this, "subjectInput");
4738
+ __publicField$H(this, "commentInput");
4739
+ __publicField$H(this, "privacyPolicyCheckbox");
4740
+ __publicField$H(this, "submitButton");
4741
+ __publicField$H(this, "contactSuccessMessage");
4742
+ __publicField$H(this, "cardTitle");
4743
+ __publicField$H(this, "formFieldFeedback");
4744
+ __publicField$H(this, "formAlert");
4571
4745
  /**
4572
4746
  * Captcha locators
4573
4747
  */
4574
- __publicField$G(this, "basicCaptcha");
4575
- __publicField$G(this, "basicCaptchaImage");
4576
- __publicField$G(this, "basicCaptchaRefreshButton");
4577
- __publicField$G(this, "basicCaptchaInput");
4578
- __publicField$G(this, "greCaptchaV2Container");
4579
- __publicField$G(this, "greCaptchaV2Input");
4580
- __publicField$G(this, "greCaptchaProtectionInformation");
4581
- __publicField$G(this, "instanceMeta");
4748
+ __publicField$H(this, "basicCaptcha");
4749
+ __publicField$H(this, "basicCaptchaImage");
4750
+ __publicField$H(this, "basicCaptchaRefreshButton");
4751
+ __publicField$H(this, "basicCaptchaInput");
4752
+ __publicField$H(this, "greCaptchaV2Container");
4753
+ __publicField$H(this, "greCaptchaV2Input");
4754
+ __publicField$H(this, "greCaptchaProtectionInformation");
4755
+ __publicField$H(this, "instanceMeta");
4582
4756
  this.instanceMeta = instanceMeta;
4583
4757
  this.contactWrapper = this.page.locator(".card").filter({ has: this.page.getByText("Contact") });
4584
4758
  this.formFieldFeedback = this.contactWrapper.locator(".form-field-feedback");
@@ -4614,19 +4788,19 @@ class ContactForm extends Home {
4614
4788
  }
4615
4789
  }
4616
4790
 
4617
- var __defProp$F = Object.defineProperty;
4618
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4619
- var __publicField$F = (obj, key, value) => {
4620
- __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
4791
+ var __defProp$G = Object.defineProperty;
4792
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4793
+ var __publicField$G = (obj, key, value) => {
4794
+ __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
4621
4795
  return value;
4622
4796
  };
4623
4797
  class Wishlist extends Home {
4624
4798
  constructor(page) {
4625
4799
  super(page);
4626
- __publicField$F(this, "wishListHeader");
4627
- __publicField$F(this, "removeAlert");
4628
- __publicField$F(this, "emptyListing");
4629
- __publicField$F(this, "page");
4800
+ __publicField$G(this, "wishListHeader");
4801
+ __publicField$G(this, "removeAlert");
4802
+ __publicField$G(this, "emptyListing");
4803
+ __publicField$G(this, "page");
4630
4804
  this.page = page;
4631
4805
  this.wishListHeader = page.locator(".wishlist-headline");
4632
4806
  this.removeAlert = page.locator(".alert-success");
@@ -4646,20 +4820,20 @@ class Wishlist extends Home {
4646
4820
  }
4647
4821
  }
4648
4822
 
4649
- var __defProp$E = Object.defineProperty;
4650
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4651
- var __publicField$E = (obj, key, value) => {
4652
- __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
4823
+ var __defProp$F = Object.defineProperty;
4824
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4825
+ var __publicField$F = (obj, key, value) => {
4826
+ __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
4653
4827
  return value;
4654
4828
  };
4655
4829
  class Footer {
4656
4830
  constructor(page) {
4657
- __publicField$E(this, "footerHeadline");
4658
- __publicField$E(this, "footerContent");
4659
- __publicField$E(this, "footerHotline");
4660
- __publicField$E(this, "footerContactForm");
4661
- __publicField$E(this, "footerContactFormLink");
4662
- __publicField$E(this, "page");
4831
+ __publicField$F(this, "footerHeadline");
4832
+ __publicField$F(this, "footerContent");
4833
+ __publicField$F(this, "footerHotline");
4834
+ __publicField$F(this, "footerContactForm");
4835
+ __publicField$F(this, "footerContactFormLink");
4836
+ __publicField$F(this, "page");
4663
4837
  this.page = page;
4664
4838
  this.footerHeadline = page.locator(".footer-column-headline");
4665
4839
  this.footerContent = page.locator(".footer-column-content-inner");
@@ -4672,23 +4846,23 @@ class Footer {
4672
4846
  }
4673
4847
  }
4674
4848
 
4675
- var __defProp$D = Object.defineProperty;
4676
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4677
- var __publicField$D = (obj, key, value) => {
4678
- __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
4849
+ var __defProp$E = Object.defineProperty;
4850
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4851
+ var __publicField$E = (obj, key, value) => {
4852
+ __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
4679
4853
  return value;
4680
4854
  };
4681
4855
  class Header {
4682
4856
  constructor(page) {
4683
- __publicField$D(this, "mainNavigationLink");
4684
- __publicField$D(this, "languagesDropdown");
4685
- __publicField$D(this, "languagesMenuOptions");
4686
- __publicField$D(this, "currenciesDropdown");
4687
- __publicField$D(this, "currenciesMenuOptions");
4857
+ __publicField$E(this, "mainNavigationLink");
4858
+ __publicField$E(this, "languagesDropdown");
4859
+ __publicField$E(this, "languagesMenuOptions");
4860
+ __publicField$E(this, "currenciesDropdown");
4861
+ __publicField$E(this, "currenciesMenuOptions");
4688
4862
  //wishlist
4689
- __publicField$D(this, "wishlistIcon");
4690
- __publicField$D(this, "wishlistBasket");
4691
- __publicField$D(this, "page");
4863
+ __publicField$E(this, "wishlistIcon");
4864
+ __publicField$E(this, "wishlistBasket");
4865
+ __publicField$E(this, "page");
4692
4866
  this.page = page;
4693
4867
  this.mainNavigationLink = page.locator(".main-navigation-link-text");
4694
4868
  this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
@@ -4826,87 +5000,98 @@ async function getCustomFieldCardLocators(page, customFieldSetName, customFieldN
4826
5000
  };
4827
5001
  }
4828
5002
 
4829
- var __defProp$C = Object.defineProperty;
4830
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4831
- var __publicField$C = (obj, key, value) => {
4832
- __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
5003
+ var __defProp$D = Object.defineProperty;
5004
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5005
+ var __publicField$D = (obj, key, value) => {
5006
+ __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
4833
5007
  return value;
4834
5008
  };
4835
5009
  class ProductDetail {
4836
5010
  constructor(page, instanceMeta) {
4837
- __publicField$C(this, "contentView");
4838
- __publicField$C(this, "productHeadline");
5011
+ __publicField$D(this, "contentView");
5012
+ __publicField$D(this, "productHeadline");
4839
5013
  /**
4840
5014
  * Save interactions
4841
5015
  */
4842
- __publicField$C(this, "savePhysicalProductButton");
4843
- __publicField$C(this, "saveButtonLoadingSpinner");
4844
- __publicField$C(this, "saveButtonCheckMark");
5016
+ __publicField$D(this, "savePhysicalProductButton");
5017
+ __publicField$D(this, "saveButtonLoadingSpinner");
5018
+ __publicField$D(this, "saveButtonCheckMark");
4845
5019
  /**
4846
5020
  * General Info
4847
5021
  */
4848
- __publicField$C(this, "manufacturerDropdownText");
5022
+ __publicField$D(this, "manufacturerDropdownText");
4849
5023
  /**
4850
5024
  * Prices
4851
5025
  */
4852
- __publicField$C(this, "priceGrossInput");
5026
+ __publicField$D(this, "priceGrossInput");
4853
5027
  /**
4854
5028
  * Deliverability
4855
5029
  */
4856
- __publicField$C(this, "stockInput");
4857
- __publicField$C(this, "restockTimeInput");
5030
+ __publicField$D(this, "stockInput");
5031
+ __publicField$D(this, "restockTimeInput");
4858
5032
  /**
4859
5033
  * Visibility
4860
5034
  */
4861
- __publicField$C(this, "activeForAllSalesChannelsToggle");
4862
- __publicField$C(this, "tagsInput");
4863
- __publicField$C(this, "saleChannelsInput");
5035
+ __publicField$D(this, "activeForAllSalesChannelsToggle");
5036
+ __publicField$D(this, "tagsInput");
5037
+ __publicField$D(this, "saleChannelsInput");
4864
5038
  /**
4865
5039
  * Labelling
4866
5040
  */
4867
- __publicField$C(this, "releaseDateInput");
5041
+ __publicField$D(this, "releaseDateInput");
4868
5042
  /**
4869
5043
  * Media Upload interactions
4870
5044
  */
4871
- __publicField$C(this, "uploadMediaButton");
4872
- __publicField$C(this, "coverImage");
4873
- __publicField$C(this, "productImage");
5045
+ __publicField$D(this, "uploadMediaButton");
5046
+ __publicField$D(this, "coverImage");
5047
+ __publicField$D(this, "productImage");
4874
5048
  /**
4875
5049
  * Tabs
4876
5050
  */
4877
- __publicField$C(this, "variantsTabLink");
4878
- __publicField$C(this, "specificationsTabLink");
4879
- __publicField$C(this, "advancedPricingTabLink");
4880
- __publicField$C(this, "layoutTabLink");
4881
- __publicField$C(this, "crossSellingTabLink");
4882
- __publicField$C(this, "SEOTabLink");
4883
- __publicField$C(this, "reviewsTabLink");
5051
+ __publicField$D(this, "variantsTabLink");
5052
+ __publicField$D(this, "specificationsTabLink");
5053
+ __publicField$D(this, "advancedPricingTabLink");
5054
+ __publicField$D(this, "layoutTabLink");
5055
+ __publicField$D(this, "crossSellingTabLink");
5056
+ __publicField$D(this, "SEOTabLink");
5057
+ __publicField$D(this, "reviewsTabLink");
4884
5058
  /**
4885
5059
  * Variants Generation
4886
5060
  */
4887
- __publicField$C(this, "generateVariantsButton");
4888
- __publicField$C(this, "variantsModal");
4889
- __publicField$C(this, "variantsModalHeadline");
4890
- __publicField$C(this, "variantsNextButton");
4891
- __publicField$C(this, "variantsSaveButton");
5061
+ __publicField$D(this, "generateVariantsButton");
5062
+ __publicField$D(this, "variantsModal");
5063
+ __publicField$D(this, "variantsModalHeadline");
5064
+ __publicField$D(this, "variantsNextButton");
5065
+ __publicField$D(this, "variantsSaveButton");
4892
5066
  /**
4893
5067
  * Property Selection
4894
5068
  */
4895
- __publicField$C(this, "propertyGroupColor");
4896
- __publicField$C(this, "propertyGroupSize");
4897
- __publicField$C(this, "propertyOptionGrid");
4898
- __publicField$C(this, "propertyOptionColorBlue");
4899
- __publicField$C(this, "propertyOptionColorRed");
4900
- __publicField$C(this, "propertyOptionColorGreen");
4901
- __publicField$C(this, "propertyOptionSizeSmall");
4902
- __publicField$C(this, "propertyOptionSizeMedium");
4903
- __publicField$C(this, "propertyOptionSizeLarge");
5069
+ __publicField$D(this, "propertyName");
5070
+ __publicField$D(this, "propertyValueCheckbox");
5071
+ /** @deprecated - Use 'propertyName' instead. */
5072
+ __publicField$D(this, "propertyGroupColor");
5073
+ /** @deprecated - Use 'propertyName' instead. */
5074
+ __publicField$D(this, "propertyGroupSize");
5075
+ /** @deprecated - Use 'propertyValueCheckbox' instead. */
5076
+ __publicField$D(this, "propertyOptionGrid");
5077
+ /** @deprecated - Use 'propertyValueCheckbox' instead. */
5078
+ __publicField$D(this, "propertyOptionColorBlue");
5079
+ /** @deprecated - Use 'propertyValueCheckbox' instead. */
5080
+ __publicField$D(this, "propertyOptionColorRed");
5081
+ /** @deprecated - Use 'propertyValueCheckbox' instead. */
5082
+ __publicField$D(this, "propertyOptionColorGreen");
5083
+ /** @deprecated - Use 'propertyValueCheckbox' instead. */
5084
+ __publicField$D(this, "propertyOptionSizeSmall");
5085
+ /** @deprecated - Use 'propertyValueCheckbox' instead. */
5086
+ __publicField$D(this, "propertyOptionSizeMedium");
5087
+ /** @deprecated - Use 'propertyValueCheckbox' instead. */
5088
+ __publicField$D(this, "propertyOptionSizeLarge");
4904
5089
  /**
4905
5090
  * Cards
4906
5091
  */
4907
- __publicField$C(this, "customFieldCard");
4908
- __publicField$C(this, "page");
4909
- __publicField$C(this, "instanceMeta");
5092
+ __publicField$D(this, "customFieldCard");
5093
+ __publicField$D(this, "page");
5094
+ __publicField$D(this, "instanceMeta");
4910
5095
  this.page = page;
4911
5096
  this.instanceMeta = instanceMeta;
4912
5097
  this.contentView = page.locator(".sw-desktop__content");
@@ -4941,6 +5126,8 @@ class ProductDetail {
4941
5126
  this.variantsModalHeadline = this.variantsModal.getByRole("heading", { name: "Generate variants" });
4942
5127
  this.variantsNextButton = this.variantsModal.getByRole("button", { name: "Next", exact: true });
4943
5128
  this.variantsSaveButton = this.variantsModal.getByRole("button", { name: "Save variants" });
5129
+ this.propertyName = (propertyName) => this.variantsModal.getByText(propertyName);
5130
+ this.propertyValueCheckbox = (propertyValueName) => this.variantsModal.getByRole("row", { name: propertyValueName }).getByRole("checkbox");
4944
5131
  this.propertyGroupColor = this.variantsModal.getByText("Color").first();
4945
5132
  this.propertyGroupSize = this.variantsModal.getByText("Size").first();
4946
5133
  this.propertyOptionGrid = this.variantsModal.locator(".sw-property-search__tree-selection__option_grid");
@@ -4978,35 +5165,35 @@ class ProductDetail {
4978
5165
  }
4979
5166
  }
4980
5167
 
4981
- var __defProp$B = Object.defineProperty;
4982
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4983
- var __publicField$B = (obj, key, value) => {
4984
- __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
5168
+ var __defProp$C = Object.defineProperty;
5169
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5170
+ var __publicField$C = (obj, key, value) => {
5171
+ __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
4985
5172
  return value;
4986
5173
  };
4987
5174
  class OrderDetail {
4988
5175
  constructor(page, instanceMeta) {
4989
- __publicField$B(this, "saveButton");
4990
- __publicField$B(this, "dataGridContextButton");
4991
- __publicField$B(this, "orderTag");
4992
- __publicField$B(this, "lineItem");
4993
- __publicField$B(this, "lineItemsTable");
4994
- __publicField$B(this, "documentType");
4995
- __publicField$B(this, "contextMenuButton");
4996
- __publicField$B(this, "contextMenu");
4997
- __publicField$B(this, "contextMenuSendDocument");
4998
- __publicField$B(this, "sendDocumentModal");
4999
- __publicField$B(this, "sendDocumentButton");
5000
- __publicField$B(this, "itemsCardHeader");
5001
- __publicField$B(this, "sentCheckmark");
5176
+ __publicField$C(this, "saveButton");
5177
+ __publicField$C(this, "dataGridContextButton");
5178
+ __publicField$C(this, "orderTag");
5179
+ __publicField$C(this, "lineItem");
5180
+ __publicField$C(this, "lineItemsTable");
5181
+ __publicField$C(this, "documentType");
5182
+ __publicField$C(this, "contextMenuButton");
5183
+ __publicField$C(this, "contextMenu");
5184
+ __publicField$C(this, "contextMenuSendDocument");
5185
+ __publicField$C(this, "sendDocumentModal");
5186
+ __publicField$C(this, "sendDocumentButton");
5187
+ __publicField$C(this, "itemsCardHeader");
5188
+ __publicField$C(this, "sentCheckmark");
5002
5189
  /**
5003
5190
  * Tabs
5004
5191
  */
5005
- __publicField$B(this, "generalTabLink");
5006
- __publicField$B(this, "detailsTabLink");
5007
- __publicField$B(this, "documentsTabLink");
5008
- __publicField$B(this, "page");
5009
- __publicField$B(this, "instanceMeta");
5192
+ __publicField$C(this, "generalTabLink");
5193
+ __publicField$C(this, "detailsTabLink");
5194
+ __publicField$C(this, "documentsTabLink");
5195
+ __publicField$C(this, "page");
5196
+ __publicField$C(this, "instanceMeta");
5010
5197
  this.page = page;
5011
5198
  this.instanceMeta = instanceMeta;
5012
5199
  this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
@@ -5038,24 +5225,24 @@ class OrderDetail {
5038
5225
  }
5039
5226
  }
5040
5227
 
5041
- var __defProp$A = Object.defineProperty;
5042
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5043
- var __publicField$A = (obj, key, value) => {
5044
- __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
5228
+ var __defProp$B = Object.defineProperty;
5229
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5230
+ var __publicField$B = (obj, key, value) => {
5231
+ __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
5045
5232
  return value;
5046
5233
  };
5047
5234
  class CustomerListing {
5048
5235
  constructor(page) {
5049
- __publicField$A(this, "headline");
5050
- __publicField$A(this, "addCustomerButton");
5051
- __publicField$A(this, "bulkEditButton");
5052
- __publicField$A(this, "deleteButton");
5236
+ __publicField$B(this, "headline");
5237
+ __publicField$B(this, "addCustomerButton");
5238
+ __publicField$B(this, "bulkEditButton");
5239
+ __publicField$B(this, "deleteButton");
5053
5240
  //Customer Bulk Edit Modal
5054
- __publicField$A(this, "bulkEditModal");
5055
- __publicField$A(this, "startBulkEditButton");
5056
- __publicField$A(this, "cancelButton");
5057
- __publicField$A(this, "modalHeaderCheckbox");
5058
- __publicField$A(this, "page");
5241
+ __publicField$B(this, "bulkEditModal");
5242
+ __publicField$B(this, "startBulkEditButton");
5243
+ __publicField$B(this, "cancelButton");
5244
+ __publicField$B(this, "modalHeaderCheckbox");
5245
+ __publicField$B(this, "page");
5059
5246
  this.page = page;
5060
5247
  this.headline = page.getByRole("heading", { name: "Customers" });
5061
5248
  this.addCustomerButton = page.locator(".sw-customer-list__button-create");
@@ -5117,27 +5304,27 @@ class CustomerListing {
5117
5304
  }
5118
5305
  }
5119
5306
 
5120
- var __defProp$z = Object.defineProperty;
5121
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5122
- var __publicField$z = (obj, key, value) => {
5123
- __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
5307
+ var __defProp$A = Object.defineProperty;
5308
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5309
+ var __publicField$A = (obj, key, value) => {
5310
+ __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
5124
5311
  return value;
5125
5312
  };
5126
5313
  class CustomerDetail {
5127
5314
  constructor(page, instanceMeta) {
5128
- __publicField$z(this, "editButton");
5129
- __publicField$z(this, "generalTab");
5130
- __publicField$z(this, "accountCard");
5131
- __publicField$z(this, "customFieldCard");
5132
- __publicField$z(this, "customFieldSetTabs");
5133
- __publicField$z(this, "customFieldSetTabCustomContent");
5134
- __publicField$z(this, "customerGroupRequestMessage");
5135
- __publicField$z(this, "customerGroupAcceptButton");
5136
- __publicField$z(this, "customerGroupDeclineButton");
5137
- __publicField$z(this, "tagList");
5138
- __publicField$z(this, "tagItems");
5139
- __publicField$z(this, "page");
5140
- __publicField$z(this, "instanceMeta");
5315
+ __publicField$A(this, "editButton");
5316
+ __publicField$A(this, "generalTab");
5317
+ __publicField$A(this, "accountCard");
5318
+ __publicField$A(this, "customFieldCard");
5319
+ __publicField$A(this, "customFieldSetTabs");
5320
+ __publicField$A(this, "customFieldSetTabCustomContent");
5321
+ __publicField$A(this, "customerGroupRequestMessage");
5322
+ __publicField$A(this, "customerGroupAcceptButton");
5323
+ __publicField$A(this, "customerGroupDeclineButton");
5324
+ __publicField$A(this, "tagList");
5325
+ __publicField$A(this, "tagItems");
5326
+ __publicField$A(this, "page");
5327
+ __publicField$A(this, "instanceMeta");
5141
5328
  this.page = page;
5142
5329
  this.instanceMeta = instanceMeta;
5143
5330
  this.editButton = page.getByRole("button", { name: "Edit" });
@@ -5200,17 +5387,17 @@ class CustomerDetail {
5200
5387
  }
5201
5388
  }
5202
5389
 
5203
- var __defProp$y = Object.defineProperty;
5204
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5205
- var __publicField$y = (obj, key, value) => {
5206
- __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
5390
+ var __defProp$z = Object.defineProperty;
5391
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5392
+ var __publicField$z = (obj, key, value) => {
5393
+ __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
5207
5394
  return value;
5208
5395
  };
5209
5396
  class CustomerGroupListing {
5210
5397
  constructor(page) {
5211
- __publicField$y(this, "headline");
5212
- __publicField$y(this, "addCustomerGroupButton");
5213
- __publicField$y(this, "page");
5398
+ __publicField$z(this, "headline");
5399
+ __publicField$z(this, "addCustomerGroupButton");
5400
+ __publicField$z(this, "page");
5214
5401
  this.page = page;
5215
5402
  this.headline = page.getByRole("heading", { name: "Customer groups" });
5216
5403
  this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
@@ -5233,30 +5420,30 @@ class CustomerGroupListing {
5233
5420
  }
5234
5421
  }
5235
5422
 
5236
- var __defProp$x = Object.defineProperty;
5237
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5238
- var __publicField$x = (obj, key, value) => {
5239
- __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
5423
+ var __defProp$y = Object.defineProperty;
5424
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5425
+ var __publicField$y = (obj, key, value) => {
5426
+ __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
5240
5427
  return value;
5241
5428
  };
5242
5429
  class CustomerGroupCreate {
5243
5430
  constructor(page, instanceMeta) {
5244
- __publicField$x(this, "headline");
5245
- __publicField$x(this, "saveButton");
5246
- __publicField$x(this, "cancelButton");
5247
- __publicField$x(this, "cardTitle");
5248
- __publicField$x(this, "customerGroupNameField");
5249
- __publicField$x(this, "customerGroupGrossTaxDisplay");
5250
- __publicField$x(this, "customerGroupNetTaxDisplay");
5251
- __publicField$x(this, "customSignupFormToggle");
5252
- __publicField$x(this, "signupFormTitle");
5253
- __publicField$x(this, "signupFormIntroduction");
5254
- __publicField$x(this, "signupFormSeoDescription");
5255
- __publicField$x(this, "signupFormCompanySignupToggle");
5256
- __publicField$x(this, "customerGroupSaleschannelSelection");
5257
- __publicField$x(this, "customerGroupSaleschannelResultList");
5258
- __publicField$x(this, "page");
5259
- __publicField$x(this, "instanceMeta");
5431
+ __publicField$y(this, "headline");
5432
+ __publicField$y(this, "saveButton");
5433
+ __publicField$y(this, "cancelButton");
5434
+ __publicField$y(this, "cardTitle");
5435
+ __publicField$y(this, "customerGroupNameField");
5436
+ __publicField$y(this, "customerGroupGrossTaxDisplay");
5437
+ __publicField$y(this, "customerGroupNetTaxDisplay");
5438
+ __publicField$y(this, "customSignupFormToggle");
5439
+ __publicField$y(this, "signupFormTitle");
5440
+ __publicField$y(this, "signupFormIntroduction");
5441
+ __publicField$y(this, "signupFormSeoDescription");
5442
+ __publicField$y(this, "signupFormCompanySignupToggle");
5443
+ __publicField$y(this, "customerGroupSaleschannelSelection");
5444
+ __publicField$y(this, "customerGroupSaleschannelResultList");
5445
+ __publicField$y(this, "page");
5446
+ __publicField$y(this, "instanceMeta");
5260
5447
  this.page = page;
5261
5448
  this.instanceMeta = instanceMeta;
5262
5449
  this.headline = page.getByRole("heading", { name: "New customer group" });
@@ -5287,19 +5474,19 @@ class CustomerGroupCreate {
5287
5474
  }
5288
5475
  }
5289
5476
 
5290
- var __defProp$w = Object.defineProperty;
5291
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5292
- var __publicField$w = (obj, key, value) => {
5293
- __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
5477
+ var __defProp$x = Object.defineProperty;
5478
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5479
+ var __publicField$x = (obj, key, value) => {
5480
+ __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
5294
5481
  return value;
5295
5482
  };
5296
5483
  class CustomerGroupDetail extends CustomerGroupCreate {
5297
5484
  constructor(page, instanceMeta) {
5298
5485
  super(page, instanceMeta);
5299
- __publicField$w(this, "headline");
5300
- __publicField$w(this, "selectedSalesChannel");
5301
- __publicField$w(this, "technicalUrl");
5302
- __publicField$w(this, "saleschannelUrl");
5486
+ __publicField$x(this, "headline");
5487
+ __publicField$x(this, "selectedSalesChannel");
5488
+ __publicField$x(this, "technicalUrl");
5489
+ __publicField$x(this, "saleschannelUrl");
5303
5490
  this.headline = page.locator(".smart-bar__header");
5304
5491
  this.selectedSalesChannel = page.locator(".sw-select-selection-list");
5305
5492
  this.technicalUrl = page.getByLabel("Technical URL");
@@ -5310,66 +5497,66 @@ class CustomerGroupDetail extends CustomerGroupCreate {
5310
5497
  }
5311
5498
  }
5312
5499
 
5313
- var __defProp$v = Object.defineProperty;
5314
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5315
- var __publicField$v = (obj, key, value) => {
5316
- __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
5500
+ var __defProp$w = Object.defineProperty;
5501
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5502
+ var __publicField$w = (obj, key, value) => {
5503
+ __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
5317
5504
  return value;
5318
5505
  };
5319
5506
  class FirstRunWizard {
5320
5507
  constructor(page, instanceMeta) {
5321
- __publicField$v(this, "nextButton");
5322
- __publicField$v(this, "configureLaterButton");
5323
- __publicField$v(this, "skipButton");
5324
- __publicField$v(this, "finishButton");
5325
- __publicField$v(this, "backButton");
5326
- __publicField$v(this, "smtpServerButton");
5327
- __publicField$v(this, "dataImportHeader");
5328
- __publicField$v(this, "installLanguagePackButton");
5329
- __publicField$v(this, "installDemoDataButton");
5330
- __publicField$v(this, "installMigrationAssistantButton");
5331
- __publicField$v(this, "defaultValuesHeader");
5332
- __publicField$v(this, "mailerConfigurationHeader");
5333
- __publicField$v(this, "payPalSetupHeader");
5334
- __publicField$v(this, "extensionsHeader");
5335
- __publicField$v(this, "shopwareAccountHeader");
5336
- __publicField$v(this, "shopwareStoreHeader");
5337
- __publicField$v(this, "doneHeader");
5338
- __publicField$v(this, "frwSuccessText");
5339
- __publicField$v(this, "welcomeText");
5340
- __publicField$v(this, "pluginCardInfo");
5341
- __publicField$v(this, "dataImportCard");
5342
- __publicField$v(this, "salesChannelSelectionList");
5343
- __publicField$v(this, "salesChannelSelectionMultiSelect");
5344
- __publicField$v(this, "smtpServerTitle");
5508
+ __publicField$w(this, "nextButton");
5509
+ __publicField$w(this, "configureLaterButton");
5510
+ __publicField$w(this, "skipButton");
5511
+ __publicField$w(this, "finishButton");
5512
+ __publicField$w(this, "backButton");
5513
+ __publicField$w(this, "smtpServerButton");
5514
+ __publicField$w(this, "dataImportHeader");
5515
+ __publicField$w(this, "installLanguagePackButton");
5516
+ __publicField$w(this, "installDemoDataButton");
5517
+ __publicField$w(this, "installMigrationAssistantButton");
5518
+ __publicField$w(this, "defaultValuesHeader");
5519
+ __publicField$w(this, "mailerConfigurationHeader");
5520
+ __publicField$w(this, "payPalSetupHeader");
5521
+ __publicField$w(this, "extensionsHeader");
5522
+ __publicField$w(this, "shopwareAccountHeader");
5523
+ __publicField$w(this, "shopwareStoreHeader");
5524
+ __publicField$w(this, "doneHeader");
5525
+ __publicField$w(this, "frwSuccessText");
5526
+ __publicField$w(this, "welcomeText");
5527
+ __publicField$w(this, "pluginCardInfo");
5528
+ __publicField$w(this, "dataImportCard");
5529
+ __publicField$w(this, "salesChannelSelectionList");
5530
+ __publicField$w(this, "salesChannelSelectionMultiSelect");
5531
+ __publicField$w(this, "smtpServerTitle");
5345
5532
  /**
5346
5533
  * @deprecated - Use `smtpServerFieldInputs` instead.
5347
5534
  */
5348
- __publicField$v(this, "smtpServerFields");
5349
- __publicField$v(this, "smtpServerFieldInputs");
5350
- __publicField$v(this, "smtpServerHostInput");
5351
- __publicField$v(this, "smtpServerPortInput");
5352
- __publicField$v(this, "smtpServerUsernameInput");
5353
- __publicField$v(this, "smtpServerPasswordInput");
5354
- __publicField$v(this, "smtpServerEncryptionInput");
5355
- __publicField$v(this, "smtpServerSenderAddressInput");
5356
- __publicField$v(this, "smtpServerDeliveryAddressInput");
5357
- __publicField$v(this, "smtpServerDisableEmailDeliveryCheckbox");
5358
- __publicField$v(this, "payPalPaymethods");
5359
- __publicField$v(this, "payPalInfoCard");
5360
- __publicField$v(this, "emailAddressInputField");
5361
- __publicField$v(this, "passwordInputField");
5362
- __publicField$v(this, "forgotPasswordLink");
5363
- __publicField$v(this, "extensionStoreHeading");
5364
- __publicField$v(this, "documentationLink");
5365
- __publicField$v(this, "forumLink");
5366
- __publicField$v(this, "roadmapLink");
5367
- __publicField$v(this, "germanRegionSelector");
5368
- __publicField$v(this, "toolsSelector");
5369
- __publicField$v(this, "recommendationHeader");
5370
- __publicField$v(this, "toolsRecommendedPlugin");
5371
- __publicField$v(this, "page");
5372
- __publicField$v(this, "instanceMeta");
5535
+ __publicField$w(this, "smtpServerFields");
5536
+ __publicField$w(this, "smtpServerFieldInputs");
5537
+ __publicField$w(this, "smtpServerHostInput");
5538
+ __publicField$w(this, "smtpServerPortInput");
5539
+ __publicField$w(this, "smtpServerUsernameInput");
5540
+ __publicField$w(this, "smtpServerPasswordInput");
5541
+ __publicField$w(this, "smtpServerEncryptionInput");
5542
+ __publicField$w(this, "smtpServerSenderAddressInput");
5543
+ __publicField$w(this, "smtpServerDeliveryAddressInput");
5544
+ __publicField$w(this, "smtpServerDisableEmailDeliveryCheckbox");
5545
+ __publicField$w(this, "payPalPaymethods");
5546
+ __publicField$w(this, "payPalInfoCard");
5547
+ __publicField$w(this, "emailAddressInputField");
5548
+ __publicField$w(this, "passwordInputField");
5549
+ __publicField$w(this, "forgotPasswordLink");
5550
+ __publicField$w(this, "extensionStoreHeading");
5551
+ __publicField$w(this, "documentationLink");
5552
+ __publicField$w(this, "forumLink");
5553
+ __publicField$w(this, "roadmapLink");
5554
+ __publicField$w(this, "germanRegionSelector");
5555
+ __publicField$w(this, "toolsSelector");
5556
+ __publicField$w(this, "recommendationHeader");
5557
+ __publicField$w(this, "toolsRecommendedPlugin");
5558
+ __publicField$w(this, "page");
5559
+ __publicField$w(this, "instanceMeta");
5373
5560
  this.page = page;
5374
5561
  this.instanceMeta = instanceMeta;
5375
5562
  this.nextButton = page.getByText("Next", { exact: true });
@@ -5440,58 +5627,58 @@ async function getSelectFieldListitem(page, selectField, listItem, instanceMeta)
5440
5627
  }
5441
5628
  }
5442
5629
 
5443
- var __defProp$u = Object.defineProperty;
5444
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5445
- var __publicField$u = (obj, key, value) => {
5446
- __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
5630
+ var __defProp$v = Object.defineProperty;
5631
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5632
+ var __publicField$v = (obj, key, value) => {
5633
+ __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
5447
5634
  return value;
5448
5635
  };
5449
5636
  class FlowBuilderCreate {
5450
5637
  constructor(page, instanceMeta) {
5451
- __publicField$u(this, "contentView");
5638
+ __publicField$v(this, "contentView");
5452
5639
  //header
5453
- __publicField$u(this, "saveButton");
5454
- __publicField$u(this, "header");
5455
- __publicField$u(this, "smartBarHeader");
5640
+ __publicField$v(this, "saveButton");
5641
+ __publicField$v(this, "header");
5642
+ __publicField$v(this, "smartBarHeader");
5456
5643
  //tabs
5457
- __publicField$u(this, "generalTab");
5458
- __publicField$u(this, "flowTab");
5644
+ __publicField$v(this, "generalTab");
5645
+ __publicField$v(this, "flowTab");
5459
5646
  //../general
5460
- __publicField$u(this, "nameField");
5461
- __publicField$u(this, "descriptionField");
5462
- __publicField$u(this, "priorityField");
5463
- __publicField$u(this, "activeSwitch");
5647
+ __publicField$v(this, "nameField");
5648
+ __publicField$v(this, "descriptionField");
5649
+ __publicField$v(this, "priorityField");
5650
+ __publicField$v(this, "activeSwitch");
5464
5651
  //../flow
5465
- __publicField$u(this, "triggerSelectField");
5466
- __publicField$u(this, "modalAddButton");
5467
- __publicField$u(this, "sequenceSelectorConditionButton");
5468
- __publicField$u(this, "conditionSelectField");
5469
- __publicField$u(this, "sequenceSelectorActionButton");
5470
- __publicField$u(this, "actionSelectField");
5471
- __publicField$u(this, "selectFieldResultList");
5472
- __publicField$u(this, "trueBlock");
5473
- __publicField$u(this, "trueBlockAddConditionButton");
5474
- __publicField$u(this, "trueBlockAddActionButton");
5475
- __publicField$u(this, "trueBlockActionSelectField");
5476
- __publicField$u(this, "trueBlockActionDescription");
5477
- __publicField$u(this, "mailSendModal");
5478
- __publicField$u(this, "mailSendModalTemplateSelectField");
5479
- __publicField$u(this, "falseBlock");
5480
- __publicField$u(this, "falseBlockAddConditionButton");
5481
- __publicField$u(this, "falseBlockAddActionButton");
5482
- __publicField$u(this, "falseBlockActionSelectField");
5483
- __publicField$u(this, "falseBlockActionDescription");
5484
- __publicField$u(this, "tagModal");
5485
- __publicField$u(this, "tagModalTagsSelectField");
5486
- __publicField$u(this, "delayCard");
5487
- __publicField$u(this, "conditionRule");
5488
- __publicField$u(this, "sequenceSeparator");
5489
- __publicField$u(this, "addActionField");
5490
- __publicField$u(this, "newFlowHeader");
5491
- __publicField$u(this, "resultListItem");
5492
- __publicField$u(this, "resultList");
5493
- __publicField$u(this, "page");
5494
- __publicField$u(this, "instanceMeta");
5652
+ __publicField$v(this, "triggerSelectField");
5653
+ __publicField$v(this, "modalAddButton");
5654
+ __publicField$v(this, "sequenceSelectorConditionButton");
5655
+ __publicField$v(this, "conditionSelectField");
5656
+ __publicField$v(this, "sequenceSelectorActionButton");
5657
+ __publicField$v(this, "actionSelectField");
5658
+ __publicField$v(this, "selectFieldResultList");
5659
+ __publicField$v(this, "trueBlock");
5660
+ __publicField$v(this, "trueBlockAddConditionButton");
5661
+ __publicField$v(this, "trueBlockAddActionButton");
5662
+ __publicField$v(this, "trueBlockActionSelectField");
5663
+ __publicField$v(this, "trueBlockActionDescription");
5664
+ __publicField$v(this, "mailSendModal");
5665
+ __publicField$v(this, "mailSendModalTemplateSelectField");
5666
+ __publicField$v(this, "falseBlock");
5667
+ __publicField$v(this, "falseBlockAddConditionButton");
5668
+ __publicField$v(this, "falseBlockAddActionButton");
5669
+ __publicField$v(this, "falseBlockActionSelectField");
5670
+ __publicField$v(this, "falseBlockActionDescription");
5671
+ __publicField$v(this, "tagModal");
5672
+ __publicField$v(this, "tagModalTagsSelectField");
5673
+ __publicField$v(this, "delayCard");
5674
+ __publicField$v(this, "conditionRule");
5675
+ __publicField$v(this, "sequenceSeparator");
5676
+ __publicField$v(this, "addActionField");
5677
+ __publicField$v(this, "newFlowHeader");
5678
+ __publicField$v(this, "resultListItem");
5679
+ __publicField$v(this, "resultList");
5680
+ __publicField$v(this, "page");
5681
+ __publicField$v(this, "instanceMeta");
5495
5682
  this.page = page;
5496
5683
  this.instanceMeta = instanceMeta;
5497
5684
  this.contentView = page.locator(".sw-desktop__content");
@@ -5548,33 +5735,33 @@ class FlowBuilderCreate {
5548
5735
  }
5549
5736
  }
5550
5737
 
5551
- var __defProp$t = Object.defineProperty;
5552
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5553
- var __publicField$t = (obj, key, value) => {
5554
- __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
5738
+ var __defProp$u = Object.defineProperty;
5739
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5740
+ var __publicField$u = (obj, key, value) => {
5741
+ __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
5555
5742
  return value;
5556
5743
  };
5557
5744
  class FlowBuilderListing {
5558
5745
  constructor(page) {
5559
- __publicField$t(this, "page");
5560
- __publicField$t(this, "contentView");
5561
- __publicField$t(this, "createFlowButton");
5562
- __publicField$t(this, "firstFlowName");
5563
- __publicField$t(this, "firstFlowContextButton");
5564
- __publicField$t(this, "flowContextMenu");
5565
- __publicField$t(this, "contextMenuDownload");
5566
- __publicField$t(this, "contextMenuDuplicate");
5567
- __publicField$t(this, "contextMenuEdit");
5568
- __publicField$t(this, "contextMenuDelete");
5569
- __publicField$t(this, "flowDownloadModal");
5570
- __publicField$t(this, "downloadFlowButton");
5571
- __publicField$t(this, "flowDeleteButton");
5572
- __publicField$t(this, "successAlert");
5573
- __publicField$t(this, "successAlertMessage");
5574
- __publicField$t(this, "searchBar");
5575
- __publicField$t(this, "pagination");
5576
- __publicField$t(this, "testFlowNameCells");
5577
- __publicField$t(this, "flowTemplatesTab");
5746
+ __publicField$u(this, "page");
5747
+ __publicField$u(this, "contentView");
5748
+ __publicField$u(this, "createFlowButton");
5749
+ __publicField$u(this, "firstFlowName");
5750
+ __publicField$u(this, "firstFlowContextButton");
5751
+ __publicField$u(this, "flowContextMenu");
5752
+ __publicField$u(this, "contextMenuDownload");
5753
+ __publicField$u(this, "contextMenuDuplicate");
5754
+ __publicField$u(this, "contextMenuEdit");
5755
+ __publicField$u(this, "contextMenuDelete");
5756
+ __publicField$u(this, "flowDownloadModal");
5757
+ __publicField$u(this, "downloadFlowButton");
5758
+ __publicField$u(this, "flowDeleteButton");
5759
+ __publicField$u(this, "successAlert");
5760
+ __publicField$u(this, "successAlertMessage");
5761
+ __publicField$u(this, "searchBar");
5762
+ __publicField$u(this, "pagination");
5763
+ __publicField$u(this, "testFlowNameCells");
5764
+ __publicField$u(this, "flowTemplatesTab");
5578
5765
  this.page = page;
5579
5766
  this.contentView = page.locator(".sw-desktop__content");
5580
5767
  this.createFlowButton = page.locator(".sw-flow-list__create");
@@ -5642,26 +5829,26 @@ async function getTooltipText(page, tooltipArea) {
5642
5829
  return await tooltipContent.innerText();
5643
5830
  }
5644
5831
 
5645
- var __defProp$s = Object.defineProperty;
5646
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5647
- var __publicField$s = (obj, key, value) => {
5648
- __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
5832
+ var __defProp$t = Object.defineProperty;
5833
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5834
+ var __publicField$t = (obj, key, value) => {
5835
+ __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
5649
5836
  return value;
5650
5837
  };
5651
5838
  class FlowBuilderDetail extends FlowBuilderCreate {
5652
5839
  constructor(page, instanceMeta) {
5653
5840
  super(page, instanceMeta);
5654
- __publicField$s(this, "saveButtonLoader");
5655
- __publicField$s(this, "saveButton");
5656
- __publicField$s(this, "generalTab");
5657
- __publicField$s(this, "flowTab");
5658
- __publicField$s(this, "alertWarning");
5659
- __publicField$s(this, "templateName");
5660
- __publicField$s(this, "alertMessage");
5661
- __publicField$s(this, "successMessage");
5662
- __publicField$s(this, "actionContentTag");
5663
- __publicField$s(this, "skeletonLoader");
5664
- __publicField$s(this, "messageClose");
5841
+ __publicField$t(this, "saveButtonLoader");
5842
+ __publicField$t(this, "saveButton");
5843
+ __publicField$t(this, "generalTab");
5844
+ __publicField$t(this, "flowTab");
5845
+ __publicField$t(this, "alertWarning");
5846
+ __publicField$t(this, "templateName");
5847
+ __publicField$t(this, "alertMessage");
5848
+ __publicField$t(this, "successMessage");
5849
+ __publicField$t(this, "actionContentTag");
5850
+ __publicField$t(this, "skeletonLoader");
5851
+ __publicField$t(this, "messageClose");
5665
5852
  this.generalTab = page.locator(".sw-flow-detail__tab-general");
5666
5853
  if (satisfies(instanceMeta.version, "<6.7")) {
5667
5854
  this.successMessage = page.locator(".sw-alert__title");
@@ -5692,21 +5879,21 @@ class FlowBuilderDetail extends FlowBuilderCreate {
5692
5879
  }
5693
5880
  }
5694
5881
 
5695
- var __defProp$r = Object.defineProperty;
5696
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5697
- var __publicField$r = (obj, key, value) => {
5698
- __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
5882
+ var __defProp$s = Object.defineProperty;
5883
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5884
+ var __publicField$s = (obj, key, value) => {
5885
+ __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
5699
5886
  return value;
5700
5887
  };
5701
5888
  class DataSharing {
5702
5889
  constructor(page, instanceMeta) {
5703
- __publicField$r(this, "dataConsentHeadline");
5704
- __publicField$r(this, "dataSharingSuccessMessageLabel");
5705
- __publicField$r(this, "dataSharingAgreeButton");
5706
- __publicField$r(this, "dataSharingDisableButton");
5707
- __publicField$r(this, "dataSharingTermsAgreementLabel");
5708
- __publicField$r(this, "page");
5709
- __publicField$r(this, "instanceMeta");
5890
+ __publicField$s(this, "dataConsentHeadline");
5891
+ __publicField$s(this, "dataSharingSuccessMessageLabel");
5892
+ __publicField$s(this, "dataSharingAgreeButton");
5893
+ __publicField$s(this, "dataSharingDisableButton");
5894
+ __publicField$s(this, "dataSharingTermsAgreementLabel");
5895
+ __publicField$s(this, "page");
5896
+ __publicField$s(this, "instanceMeta");
5710
5897
  this.page = page;
5711
5898
  this.instanceMeta = instanceMeta;
5712
5899
  if (satisfies(instanceMeta.version, "<6.6.1")) {
@@ -5727,37 +5914,42 @@ class DataSharing {
5727
5914
  }
5728
5915
  }
5729
5916
 
5730
- var __defProp$q = Object.defineProperty;
5731
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5732
- var __publicField$q = (obj, key, value) => {
5733
- __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
5917
+ var __defProp$r = Object.defineProperty;
5918
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5919
+ var __publicField$r = (obj, key, value) => {
5920
+ __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
5734
5921
  return value;
5735
5922
  };
5736
5923
  class Dashboard {
5737
5924
  constructor(page) {
5738
- __publicField$q(this, "contentView");
5739
- __publicField$q(this, "adminMenuView");
5740
- __publicField$q(this, "adminMenuCatalog");
5741
- __publicField$q(this, "adminMenuOrder");
5742
- __publicField$q(this, "adminMenuCustomer");
5743
- __publicField$q(this, "adminMenuContent");
5744
- __publicField$q(this, "adminMenuMarketing");
5745
- __publicField$q(this, "adminMenuExtension");
5746
- __publicField$q(this, "adminMenuUserChevron");
5747
- __publicField$q(this, "adminMenuUserIcon");
5748
- __publicField$q(this, "adminMenuUserName");
5749
- __publicField$q(this, "welcomeHeadline");
5750
- __publicField$q(this, "welcomeMessage");
5751
- __publicField$q(this, "dataSharingConsentBanner");
5752
- __publicField$q(this, "dataSharingAgreeButton");
5753
- __publicField$q(this, "dataSharingNotAtTheMomentButton");
5754
- __publicField$q(this, "dataSharingTermsAgreementLabel");
5755
- __publicField$q(this, "dataSharingSettingsLink");
5756
- __publicField$q(this, "dataSharingAcceptMessageText");
5757
- __publicField$q(this, "dataSharingNotAtTheMomentMessageText");
5758
- __publicField$q(this, "statisticsDateRange");
5759
- __publicField$q(this, "statisticsChart");
5760
- __publicField$q(this, "page");
5925
+ __publicField$r(this, "contentView");
5926
+ __publicField$r(this, "adminMenuView");
5927
+ __publicField$r(this, "adminMenuCatalog");
5928
+ __publicField$r(this, "adminMenuOrder");
5929
+ __publicField$r(this, "adminMenuCustomer");
5930
+ __publicField$r(this, "adminMenuContent");
5931
+ __publicField$r(this, "adminMenuMarketing");
5932
+ __publicField$r(this, "adminMenuExtension");
5933
+ __publicField$r(this, "adminMenuUserChevron");
5934
+ __publicField$r(this, "adminMenuUserIcon");
5935
+ __publicField$r(this, "adminMenuUserName");
5936
+ __publicField$r(this, "welcomeHeadline");
5937
+ __publicField$r(this, "welcomeMessage");
5938
+ __publicField$r(this, "dataSharingConsentBanner");
5939
+ __publicField$r(this, "dataSharingAgreeButton");
5940
+ __publicField$r(this, "dataSharingNotAtTheMomentButton");
5941
+ __publicField$r(this, "dataSharingTermsAgreementLabel");
5942
+ __publicField$r(this, "dataSharingSettingsLink");
5943
+ __publicField$r(this, "dataSharingAcceptMessageText");
5944
+ __publicField$r(this, "dataSharingNotAtTheMomentMessageText");
5945
+ __publicField$r(this, "statisticsDateRange");
5946
+ __publicField$r(this, "statisticsChart");
5947
+ __publicField$r(this, "page");
5948
+ __publicField$r(this, "shopwareServicesAdvertisementBanner");
5949
+ __publicField$r(this, "shopwareServicesAdvertisementBannerCloseButton");
5950
+ __publicField$r(this, "shopwareServicesExploreNowButton");
5951
+ __publicField$r(this, "adminMenuUserActions");
5952
+ __publicField$r(this, "adminMenuLogoutButton");
5761
5953
  this.page = page;
5762
5954
  this.adminMenuView = page.locator(".sw-admin-menu");
5763
5955
  this.contentView = page.locator(".sw-desktop__content");
@@ -5778,34 +5970,39 @@ class Dashboard {
5778
5970
  this.dataSharingSettingsLink = page.locator(".sw-usage-data-consent-banner-reject-accept-message").getByRole("link");
5779
5971
  this.dataSharingAcceptMessageText = page.getByText("Thank you for your participation!");
5780
5972
  this.dataSharingNotAtTheMomentMessageText = page.getByText("You can at any time enter into the agreement and thus contribute to and profit from the constant evolution of our services");
5781
- this.dataSharingTermsAgreementLabel = page.getByText('By clicking "Agree", you confirm that you are authorized to enter into this agreement on behalf of your company.');
5973
+ this.dataSharingTermsAgreementLabel = page.getByText('By clicking "Agree", you confirm that you are authorised to enter into this agreement on behalf of your company.');
5782
5974
  this.statisticsDateRange = page.locator(".mt-card__subtitle");
5783
5975
  this.statisticsChart = page.locator(".vue-apexcharts");
5976
+ this.shopwareServicesAdvertisementBanner = page.locator(".sw-settings-services-dashboard-banner__content").first();
5977
+ this.shopwareServicesAdvertisementBannerCloseButton = this.shopwareServicesAdvertisementBanner.getByLabel("Close");
5978
+ this.shopwareServicesExploreNowButton = this.shopwareServicesAdvertisementBanner.getByRole("button", { name: "Explore now" });
5979
+ this.adminMenuUserActions = page.locator(".sw-admin-menu__user-actions-toggle");
5980
+ this.adminMenuLogoutButton = page.locator(".sw-admin-menu__user-actions").getByRole("link", { name: "Logout" });
5784
5981
  }
5785
5982
  url() {
5786
5983
  return "#/sw/dashboard/index";
5787
5984
  }
5788
5985
  }
5789
5986
 
5790
- var __defProp$p = Object.defineProperty;
5791
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5792
- var __publicField$p = (obj, key, value) => {
5793
- __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
5987
+ var __defProp$q = Object.defineProperty;
5988
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5989
+ var __publicField$q = (obj, key, value) => {
5990
+ __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
5794
5991
  return value;
5795
5992
  };
5796
5993
  class ShippingListing {
5797
5994
  constructor(page) {
5798
- __publicField$p(this, "header");
5799
- __publicField$p(this, "addShippingMethod");
5800
- __publicField$p(this, "contextMenu");
5801
- __publicField$p(this, "editButton");
5802
- __publicField$p(this, "deleteButton");
5995
+ __publicField$q(this, "header");
5996
+ __publicField$q(this, "addShippingMethod");
5997
+ __publicField$q(this, "contextMenu");
5998
+ __publicField$q(this, "editButton");
5999
+ __publicField$q(this, "deleteButton");
5803
6000
  //warning modal
5804
- __publicField$p(this, "modal");
5805
- __publicField$p(this, "modalHeader");
5806
- __publicField$p(this, "modalCancelButton");
5807
- __publicField$p(this, "modalDeleteButton");
5808
- __publicField$p(this, "page");
6001
+ __publicField$q(this, "modal");
6002
+ __publicField$q(this, "modalHeader");
6003
+ __publicField$q(this, "modalCancelButton");
6004
+ __publicField$q(this, "modalDeleteButton");
6005
+ __publicField$q(this, "page");
5809
6006
  this.page = page;
5810
6007
  this.header = page.locator(".smart-bar__header");
5811
6008
  this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
@@ -5822,19 +6019,19 @@ class ShippingListing {
5822
6019
  }
5823
6020
  }
5824
6021
 
5825
- var __defProp$o = Object.defineProperty;
5826
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5827
- var __publicField$o = (obj, key, value) => {
5828
- __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
6022
+ var __defProp$p = Object.defineProperty;
6023
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6024
+ var __publicField$p = (obj, key, value) => {
6025
+ __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
5829
6026
  return value;
5830
6027
  };
5831
6028
  class ShippingDetail {
5832
6029
  constructor(page) {
5833
- __publicField$o(this, "header");
5834
- __publicField$o(this, "nameField");
5835
- __publicField$o(this, "availabilityRuleField");
5836
- __publicField$o(this, "availabilityRuleListItem");
5837
- __publicField$o(this, "page");
6030
+ __publicField$p(this, "header");
6031
+ __publicField$p(this, "nameField");
6032
+ __publicField$p(this, "availabilityRuleField");
6033
+ __publicField$p(this, "availabilityRuleListItem");
6034
+ __publicField$p(this, "page");
5838
6035
  this.page = page;
5839
6036
  this.header = page.locator(".smart-bar__header");
5840
6037
  this.nameField = page.getByLabel("Name", { exact: true });
@@ -5849,19 +6046,19 @@ class ShippingDetail {
5849
6046
  }
5850
6047
  }
5851
6048
 
5852
- var __defProp$n = Object.defineProperty;
5853
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5854
- var __publicField$n = (obj, key, value) => {
5855
- __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
6049
+ var __defProp$o = Object.defineProperty;
6050
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6051
+ var __publicField$o = (obj, key, value) => {
6052
+ __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
5856
6053
  return value;
5857
6054
  };
5858
6055
  class PaymentDetail {
5859
6056
  constructor(page) {
5860
- __publicField$n(this, "header");
5861
- __publicField$n(this, "nameField");
5862
- __publicField$n(this, "availabilityRuleField");
5863
- __publicField$n(this, "availabilityRuleListItem");
5864
- __publicField$n(this, "page");
6057
+ __publicField$o(this, "header");
6058
+ __publicField$o(this, "nameField");
6059
+ __publicField$o(this, "availabilityRuleField");
6060
+ __publicField$o(this, "availabilityRuleListItem");
6061
+ __publicField$o(this, "page");
5865
6062
  this.page = page;
5866
6063
  this.header = page.locator(".smart-bar__header");
5867
6064
  this.nameField = page.getByLabel("Name", { exact: true });
@@ -5876,10 +6073,10 @@ class PaymentDetail {
5876
6073
  }
5877
6074
  }
5878
6075
 
5879
- var __defProp$m = Object.defineProperty;
5880
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5881
- var __publicField$m = (obj, key, value) => {
5882
- __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
6076
+ var __defProp$n = Object.defineProperty;
6077
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6078
+ var __publicField$n = (obj, key, value) => {
6079
+ __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
5883
6080
  return value;
5884
6081
  };
5885
6082
  class LandingPageCreate {
@@ -5887,25 +6084,25 @@ class LandingPageCreate {
5887
6084
  /**
5888
6085
  * General
5889
6086
  */
5890
- __publicField$m(this, "nameInput");
5891
- __publicField$m(this, "landingPageStatus");
5892
- __publicField$m(this, "salesChannelSelectionList");
5893
- __publicField$m(this, "filtersResultPopoverItemList");
5894
- __publicField$m(this, "saveLandingPageButton");
5895
- __publicField$m(this, "loadingSpinner");
5896
- __publicField$m(this, "seoUrlInput");
6087
+ __publicField$n(this, "nameInput");
6088
+ __publicField$n(this, "landingPageStatus");
6089
+ __publicField$n(this, "salesChannelSelectionList");
6090
+ __publicField$n(this, "filtersResultPopoverItemList");
6091
+ __publicField$n(this, "saveLandingPageButton");
6092
+ __publicField$n(this, "loadingSpinner");
6093
+ __publicField$n(this, "seoUrlInput");
5897
6094
  /**
5898
6095
  * Layout
5899
6096
  */
5900
- __publicField$m(this, "layoutTab");
5901
- __publicField$m(this, "assignLayoutButton");
5902
- __publicField$m(this, "searchLayoutInput");
5903
- __publicField$m(this, "layoutItems");
5904
- __publicField$m(this, "layoutSaveButton");
5905
- __publicField$m(this, "layoutEmptyState");
5906
- __publicField$m(this, "createNewLayoutButton");
5907
- __publicField$m(this, "layoutCheckboxes");
5908
- __publicField$m(this, "page");
6097
+ __publicField$n(this, "layoutTab");
6098
+ __publicField$n(this, "assignLayoutButton");
6099
+ __publicField$n(this, "searchLayoutInput");
6100
+ __publicField$n(this, "layoutItems");
6101
+ __publicField$n(this, "layoutSaveButton");
6102
+ __publicField$n(this, "layoutEmptyState");
6103
+ __publicField$n(this, "createNewLayoutButton");
6104
+ __publicField$n(this, "layoutCheckboxes");
6105
+ __publicField$n(this, "page");
5909
6106
  this.page = page;
5910
6107
  this.loadingSpinner = page.locator(".sw-loader");
5911
6108
  this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
@@ -5931,10 +6128,10 @@ class LandingPageCreate {
5931
6128
  }
5932
6129
  }
5933
6130
 
5934
- var __defProp$l = Object.defineProperty;
5935
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5936
- var __publicField$l = (obj, key, value) => {
5937
- __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
6131
+ var __defProp$m = Object.defineProperty;
6132
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6133
+ var __publicField$m = (obj, key, value) => {
6134
+ __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
5938
6135
  return value;
5939
6136
  };
5940
6137
  class LandingPageDetail {
@@ -5942,25 +6139,25 @@ class LandingPageDetail {
5942
6139
  /**
5943
6140
  * General
5944
6141
  */
5945
- __publicField$l(this, "nameInput");
5946
- __publicField$l(this, "landingPageStatus");
5947
- __publicField$l(this, "salesChannelSelectionList");
5948
- __publicField$l(this, "filtersResultPopoverItemList");
5949
- __publicField$l(this, "saveLandingPageButton");
5950
- __publicField$l(this, "loadingSpinner");
5951
- __publicField$l(this, "seoUrlInput");
6142
+ __publicField$m(this, "nameInput");
6143
+ __publicField$m(this, "landingPageStatus");
6144
+ __publicField$m(this, "salesChannelSelectionList");
6145
+ __publicField$m(this, "filtersResultPopoverItemList");
6146
+ __publicField$m(this, "saveLandingPageButton");
6147
+ __publicField$m(this, "loadingSpinner");
6148
+ __publicField$m(this, "seoUrlInput");
5952
6149
  /**
5953
6150
  * Layout
5954
6151
  */
5955
- __publicField$l(this, "layoutTab");
5956
- __publicField$l(this, "layoutAssignmentCardTitle");
5957
- __publicField$l(this, "layoutAssignmentCardHeadline");
5958
- __publicField$l(this, "changeLayoutButton");
5959
- __publicField$l(this, "editInDesignerButton");
5960
- __publicField$l(this, "layoutResetButton");
5961
- __publicField$l(this, "layoutAssignmentStatus");
5962
- __publicField$l(this, "layoutAssignmentContentSection");
5963
- __publicField$l(this, "page");
6152
+ __publicField$m(this, "layoutTab");
6153
+ __publicField$m(this, "layoutAssignmentCardTitle");
6154
+ __publicField$m(this, "layoutAssignmentCardHeadline");
6155
+ __publicField$m(this, "changeLayoutButton");
6156
+ __publicField$m(this, "editInDesignerButton");
6157
+ __publicField$m(this, "layoutResetButton");
6158
+ __publicField$m(this, "layoutAssignmentStatus");
6159
+ __publicField$m(this, "layoutAssignmentContentSection");
6160
+ __publicField$m(this, "page");
5964
6161
  this.page = page;
5965
6162
  this.loadingSpinner = page.locator(".sw-loader");
5966
6163
  this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
@@ -5985,10 +6182,10 @@ class LandingPageDetail {
5985
6182
  }
5986
6183
  }
5987
6184
 
5988
- var __defProp$k = Object.defineProperty;
5989
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5990
- var __publicField$k = (obj, key, value) => {
5991
- __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
6185
+ var __defProp$l = Object.defineProperty;
6186
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6187
+ var __publicField$l = (obj, key, value) => {
6188
+ __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
5992
6189
  return value;
5993
6190
  };
5994
6191
  class Categories {
@@ -5996,57 +6193,57 @@ class Categories {
5996
6193
  /**
5997
6194
  * Visual tests
5998
6195
  */
5999
- __publicField$k(this, "contentView");
6196
+ __publicField$l(this, "contentView");
6000
6197
  /**
6001
6198
  * Landing pages
6002
6199
  */
6003
- __publicField$k(this, "landingPageArea");
6004
- __publicField$k(this, "landingPageHeadline");
6005
- __publicField$k(this, "addLandingPageButton");
6006
- __publicField$k(this, "landingPageItems");
6200
+ __publicField$l(this, "landingPageArea");
6201
+ __publicField$l(this, "landingPageHeadline");
6202
+ __publicField$l(this, "addLandingPageButton");
6203
+ __publicField$l(this, "landingPageItems");
6007
6204
  /**
6008
6205
  * Category tree
6009
6206
  */
6010
- __publicField$k(this, "categoryTree");
6011
- __publicField$k(this, "categoryMenuItemList");
6012
- __publicField$k(this, "createCategoryInput");
6013
- __publicField$k(this, "confirmCategoryCreationButton");
6014
- __publicField$k(this, "confirmCategoryCancelButton");
6015
- __publicField$k(this, "categoryItems");
6207
+ __publicField$l(this, "categoryTree");
6208
+ __publicField$l(this, "categoryMenuItemList");
6209
+ __publicField$l(this, "createCategoryInput");
6210
+ __publicField$l(this, "confirmCategoryCreationButton");
6211
+ __publicField$l(this, "confirmCategoryCancelButton");
6212
+ __publicField$l(this, "categoryItems");
6016
6213
  /**
6017
6214
  * Tabs
6018
6215
  */
6019
- __publicField$k(this, "generalTab");
6020
- __publicField$k(this, "productsTab");
6021
- __publicField$k(this, "layoutTab");
6022
- __publicField$k(this, "seoTab");
6216
+ __publicField$l(this, "generalTab");
6217
+ __publicField$l(this, "productsTab");
6218
+ __publicField$l(this, "layoutTab");
6219
+ __publicField$l(this, "seoTab");
6023
6220
  /**
6024
6221
  * General
6025
6222
  */
6026
- __publicField$k(this, "nameInput");
6027
- __publicField$k(this, "activeCheckbox");
6028
- __publicField$k(this, "categoryTypeSelectionList");
6029
- __publicField$k(this, "filtersResultPopoverItemList");
6030
- __publicField$k(this, "saveButton");
6031
- __publicField$k(this, "loadingSpinner");
6032
- __publicField$k(this, "fadingBar");
6033
- __publicField$k(this, "configureHomePageButton");
6034
- __publicField$k(this, "configureModalCancelButton");
6223
+ __publicField$l(this, "nameInput");
6224
+ __publicField$l(this, "activeCheckbox");
6225
+ __publicField$l(this, "categoryTypeSelectionList");
6226
+ __publicField$l(this, "filtersResultPopoverItemList");
6227
+ __publicField$l(this, "saveButton");
6228
+ __publicField$l(this, "loadingSpinner");
6229
+ __publicField$l(this, "fadingBar");
6230
+ __publicField$l(this, "configureHomePageButton");
6231
+ __publicField$l(this, "configureModalCancelButton");
6035
6232
  /**
6036
6233
  * Customisable link
6037
6234
  */
6038
- __publicField$k(this, "entitySelectionList");
6039
- __publicField$k(this, "linkTypeSelectionList");
6040
- __publicField$k(this, "categorySelectionList");
6041
- __publicField$k(this, "productSelectionList");
6042
- __publicField$k(this, "landingPageSelectionList");
6043
- __publicField$k(this, "filterResultPopoverTreeCheckboxItemList");
6044
- __publicField$k(this, "openInNewTabCheckbox");
6045
- __publicField$k(this, "popoverCategoryTree");
6046
- __publicField$k(this, "categorySelectionListWrapper");
6047
- __publicField$k(this, "productSelectionInput");
6048
- __publicField$k(this, "page");
6049
- __publicField$k(this, "instanceMeta");
6235
+ __publicField$l(this, "entitySelectionList");
6236
+ __publicField$l(this, "linkTypeSelectionList");
6237
+ __publicField$l(this, "categorySelectionList");
6238
+ __publicField$l(this, "productSelectionList");
6239
+ __publicField$l(this, "landingPageSelectionList");
6240
+ __publicField$l(this, "filterResultPopoverTreeCheckboxItemList");
6241
+ __publicField$l(this, "openInNewTabCheckbox");
6242
+ __publicField$l(this, "popoverCategoryTree");
6243
+ __publicField$l(this, "categorySelectionListWrapper");
6244
+ __publicField$l(this, "productSelectionInput");
6245
+ __publicField$l(this, "page");
6246
+ __publicField$l(this, "instanceMeta");
6050
6247
  this.page = page;
6051
6248
  this.instanceMeta = instanceMeta;
6052
6249
  this.contentView = page.locator(".sw-desktop__content");
@@ -6099,17 +6296,17 @@ class Categories {
6099
6296
  }
6100
6297
  }
6101
6298
 
6102
- var __defProp$j = Object.defineProperty;
6103
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6104
- var __publicField$j = (obj, key, value) => {
6105
- __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
6299
+ var __defProp$k = Object.defineProperty;
6300
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6301
+ var __publicField$k = (obj, key, value) => {
6302
+ __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
6106
6303
  return value;
6107
6304
  };
6108
6305
  class CustomFieldListing {
6109
6306
  constructor(page) {
6110
- __publicField$j(this, "addNewSetButton");
6111
- __publicField$j(this, "customFieldRows");
6112
- __publicField$j(this, "page");
6307
+ __publicField$k(this, "addNewSetButton");
6308
+ __publicField$k(this, "customFieldRows");
6309
+ __publicField$k(this, "page");
6113
6310
  this.page = page;
6114
6311
  this.addNewSetButton = page.getByText("Add new set");
6115
6312
  this.customFieldRows = page.getByRole("row");
@@ -6138,22 +6335,22 @@ class CustomFieldListing {
6138
6335
  }
6139
6336
  }
6140
6337
 
6141
- var __defProp$i = Object.defineProperty;
6142
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6143
- var __publicField$i = (obj, key, value) => {
6144
- __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
6338
+ var __defProp$j = Object.defineProperty;
6339
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6340
+ var __publicField$j = (obj, key, value) => {
6341
+ __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
6145
6342
  return value;
6146
6343
  };
6147
6344
  class CustomFieldCreate {
6148
6345
  constructor(page) {
6149
- __publicField$i(this, "saveButton");
6150
- __publicField$i(this, "cancelButton");
6151
- __publicField$i(this, "technicalNameInput");
6152
- __publicField$i(this, "positionInput");
6153
- __publicField$i(this, "labelEnglishGBInput");
6154
- __publicField$i(this, "assignToSelectionList");
6155
- __publicField$i(this, "resultAssignToPopoverItemList");
6156
- __publicField$i(this, "page");
6346
+ __publicField$j(this, "saveButton");
6347
+ __publicField$j(this, "cancelButton");
6348
+ __publicField$j(this, "technicalNameInput");
6349
+ __publicField$j(this, "positionInput");
6350
+ __publicField$j(this, "labelEnglishGBInput");
6351
+ __publicField$j(this, "assignToSelectionList");
6352
+ __publicField$j(this, "resultAssignToPopoverItemList");
6353
+ __publicField$j(this, "page");
6157
6354
  this.page = page;
6158
6355
  this.saveButton = page.getByRole("button", { name: "Save" });
6159
6356
  this.cancelButton = page.getByRole("button", { name: "Cancel" });
@@ -6168,34 +6365,34 @@ class CustomFieldCreate {
6168
6365
  }
6169
6366
  }
6170
6367
 
6171
- var __defProp$h = Object.defineProperty;
6172
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6173
- var __publicField$h = (obj, key, value) => {
6174
- __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
6368
+ var __defProp$i = Object.defineProperty;
6369
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6370
+ var __publicField$i = (obj, key, value) => {
6371
+ __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
6175
6372
  return value;
6176
6373
  };
6177
6374
  class CustomFieldDetail extends CustomFieldCreate {
6178
6375
  constructor(page, instanceMeta) {
6179
6376
  super(page);
6180
- __publicField$h(this, "newCustomFieldButton");
6181
- __publicField$h(this, "customFieldEditDialog");
6182
- __publicField$h(this, "newCustomFieldDialog");
6183
- __publicField$h(this, "customFieldTechnicalNameInput");
6184
- __publicField$h(this, "customFieldPositionInput");
6185
- __publicField$h(this, "customFieldTypeSelectionList");
6186
- __publicField$h(this, "customFieldModifyByStoreApiCheckbox");
6187
- __publicField$h(this, "customFieldCancelButton");
6188
- __publicField$h(this, "customFieldAddButton");
6189
- __publicField$h(this, "customFieldEditApplyButton");
6190
- __publicField$h(this, "customFieldLabelEnglishGBInput");
6191
- __publicField$h(this, "customFieldPlaceholderEnglishGBInput");
6192
- __publicField$h(this, "customFieldHelpTextEnglishGBInput");
6193
- __publicField$h(this, "customFieldDeleteListButton");
6194
- __publicField$h(this, "customFieldDeleteDialog");
6195
- __publicField$h(this, "customFieldDeleteCancelButton");
6196
- __publicField$h(this, "customFieldDeleteButton");
6197
- __publicField$h(this, "customFieldEditAvailableInShoppingCartCheckbox");
6198
- __publicField$h(this, "instanceMeta");
6377
+ __publicField$i(this, "newCustomFieldButton");
6378
+ __publicField$i(this, "customFieldEditDialog");
6379
+ __publicField$i(this, "newCustomFieldDialog");
6380
+ __publicField$i(this, "customFieldTechnicalNameInput");
6381
+ __publicField$i(this, "customFieldPositionInput");
6382
+ __publicField$i(this, "customFieldTypeSelectionList");
6383
+ __publicField$i(this, "customFieldModifyByStoreApiCheckbox");
6384
+ __publicField$i(this, "customFieldCancelButton");
6385
+ __publicField$i(this, "customFieldAddButton");
6386
+ __publicField$i(this, "customFieldEditApplyButton");
6387
+ __publicField$i(this, "customFieldLabelEnglishGBInput");
6388
+ __publicField$i(this, "customFieldPlaceholderEnglishGBInput");
6389
+ __publicField$i(this, "customFieldHelpTextEnglishGBInput");
6390
+ __publicField$i(this, "customFieldDeleteListButton");
6391
+ __publicField$i(this, "customFieldDeleteDialog");
6392
+ __publicField$i(this, "customFieldDeleteCancelButton");
6393
+ __publicField$i(this, "customFieldDeleteButton");
6394
+ __publicField$i(this, "customFieldEditAvailableInShoppingCartCheckbox");
6395
+ __publicField$i(this, "instanceMeta");
6199
6396
  this.instanceMeta = instanceMeta;
6200
6397
  this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
6201
6398
  this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
@@ -6249,21 +6446,21 @@ class CustomFieldDetail extends CustomFieldCreate {
6249
6446
  }
6250
6447
  }
6251
6448
 
6252
- var __defProp$g = Object.defineProperty;
6253
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6254
- var __publicField$g = (obj, key, value) => {
6255
- __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
6449
+ var __defProp$h = Object.defineProperty;
6450
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6451
+ var __publicField$h = (obj, key, value) => {
6452
+ __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
6256
6453
  return value;
6257
6454
  };
6258
6455
  class CategoryDetail {
6259
6456
  constructor(page, instanceMeta) {
6260
- __publicField$g(this, "saveButton");
6261
- __publicField$g(this, "cancelButton");
6262
- __publicField$g(this, "customFieldCard");
6263
- __publicField$g(this, "customFieldSetTabs");
6264
- __publicField$g(this, "customFieldSetTabCustomContent");
6265
- __publicField$g(this, "page");
6266
- __publicField$g(this, "instanceMeta");
6457
+ __publicField$h(this, "saveButton");
6458
+ __publicField$h(this, "cancelButton");
6459
+ __publicField$h(this, "customFieldCard");
6460
+ __publicField$h(this, "customFieldSetTabs");
6461
+ __publicField$h(this, "customFieldSetTabCustomContent");
6462
+ __publicField$h(this, "page");
6463
+ __publicField$h(this, "instanceMeta");
6267
6464
  this.page = page;
6268
6465
  this.instanceMeta = instanceMeta;
6269
6466
  this.saveButton = page.getByRole("button", { name: "Save" });
@@ -6298,25 +6495,25 @@ class CategoryDetail {
6298
6495
  }
6299
6496
  }
6300
6497
 
6301
- var __defProp$f = Object.defineProperty;
6302
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6303
- var __publicField$f = (obj, key, value) => {
6304
- __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
6498
+ var __defProp$g = Object.defineProperty;
6499
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6500
+ var __publicField$g = (obj, key, value) => {
6501
+ __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
6305
6502
  return value;
6306
6503
  };
6307
6504
  class RuleCreate {
6308
6505
  constructor(page, instanceMeta) {
6309
- __publicField$f(this, "header");
6310
- __publicField$f(this, "nameInput");
6311
- __publicField$f(this, "priorityInput");
6312
- __publicField$f(this, "conditionTypeSelectionInput");
6313
- __publicField$f(this, "conditionValueSelectionInput");
6314
- __publicField$f(this, "filtersResultPopoverSelectionList");
6315
- __publicField$f(this, "saveButton");
6316
- __publicField$f(this, "cancelButton");
6317
- __publicField$f(this, "valueNotAvailableTooltip");
6318
- __publicField$f(this, "page");
6319
- __publicField$f(this, "instanceMeta");
6506
+ __publicField$g(this, "header");
6507
+ __publicField$g(this, "nameInput");
6508
+ __publicField$g(this, "priorityInput");
6509
+ __publicField$g(this, "conditionTypeSelectionInput");
6510
+ __publicField$g(this, "conditionValueSelectionInput");
6511
+ __publicField$g(this, "filtersResultPopoverSelectionList");
6512
+ __publicField$g(this, "saveButton");
6513
+ __publicField$g(this, "cancelButton");
6514
+ __publicField$g(this, "valueNotAvailableTooltip");
6515
+ __publicField$g(this, "page");
6516
+ __publicField$g(this, "instanceMeta");
6320
6517
  this.page = page;
6321
6518
  this.instanceMeta = instanceMeta;
6322
6519
  this.header = page.locator(".smart-bar__header");
@@ -6337,36 +6534,36 @@ class RuleCreate {
6337
6534
  }
6338
6535
  }
6339
6536
 
6340
- var __defProp$e = Object.defineProperty;
6341
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6342
- var __publicField$e = (obj, key, value) => {
6343
- __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
6537
+ var __defProp$f = Object.defineProperty;
6538
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6539
+ var __publicField$f = (obj, key, value) => {
6540
+ __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
6344
6541
  return value;
6345
6542
  };
6346
6543
  class RuleDetail extends RuleCreate {
6347
6544
  constructor(page, instanceMeta) {
6348
6545
  super(page, instanceMeta);
6349
- __publicField$e(this, "contentView");
6350
- __publicField$e(this, "shippingMethodAvailabilityRulesCard");
6351
- __publicField$e(this, "shippingMethodAvailabilityRulesCardLink");
6352
- __publicField$e(this, "shippingMethodAvailabilityRulesCardTable");
6353
- __publicField$e(this, "shippingMethodAvailabilityRulesCardEmptyState");
6354
- __publicField$e(this, "shippingMethodAvailabilityRulesCardSearchField");
6355
- __publicField$e(this, "taxProviderRulesCard");
6356
- __publicField$e(this, "taxProviderRulesCardEmptyState");
6357
- __publicField$e(this, "paymentMethodsAvailabilityRulesCard");
6358
- __publicField$e(this, "paymentMethodsAvailabilityRulesCardEmptyState");
6359
- __publicField$e(this, "paymentMethodsAvailabilityRulesCardLink");
6360
- __publicField$e(this, "promotionOrderRulesCard");
6361
- __publicField$e(this, "promotionOrderRulesCardEmptyState");
6362
- __publicField$e(this, "promotionCustomerRulesCard");
6363
- __publicField$e(this, "promotionCustomerRulesCardEmptyState");
6364
- __publicField$e(this, "promotionCartRulesCard");
6365
- __publicField$e(this, "promotionCartRulesCardEmptyState");
6366
- __publicField$e(this, "assignmentModal");
6367
- __publicField$e(this, "assignmentModalAddButton");
6368
- __publicField$e(this, "assignmentModalSearchField");
6369
- __publicField$e(this, "conditionORContainer");
6546
+ __publicField$f(this, "contentView");
6547
+ __publicField$f(this, "shippingMethodAvailabilityRulesCard");
6548
+ __publicField$f(this, "shippingMethodAvailabilityRulesCardLink");
6549
+ __publicField$f(this, "shippingMethodAvailabilityRulesCardTable");
6550
+ __publicField$f(this, "shippingMethodAvailabilityRulesCardEmptyState");
6551
+ __publicField$f(this, "shippingMethodAvailabilityRulesCardSearchField");
6552
+ __publicField$f(this, "taxProviderRulesCard");
6553
+ __publicField$f(this, "taxProviderRulesCardEmptyState");
6554
+ __publicField$f(this, "paymentMethodsAvailabilityRulesCard");
6555
+ __publicField$f(this, "paymentMethodsAvailabilityRulesCardEmptyState");
6556
+ __publicField$f(this, "paymentMethodsAvailabilityRulesCardLink");
6557
+ __publicField$f(this, "promotionOrderRulesCard");
6558
+ __publicField$f(this, "promotionOrderRulesCardEmptyState");
6559
+ __publicField$f(this, "promotionCustomerRulesCard");
6560
+ __publicField$f(this, "promotionCustomerRulesCardEmptyState");
6561
+ __publicField$f(this, "promotionCartRulesCard");
6562
+ __publicField$f(this, "promotionCartRulesCardEmptyState");
6563
+ __publicField$f(this, "assignmentModal");
6564
+ __publicField$f(this, "assignmentModalAddButton");
6565
+ __publicField$f(this, "assignmentModalSearchField");
6566
+ __publicField$f(this, "conditionORContainer");
6370
6567
  this.contentView = page.locator(".sw-desktop__content");
6371
6568
  this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
6372
6569
  this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
@@ -6403,18 +6600,18 @@ class RuleDetail extends RuleCreate {
6403
6600
  }
6404
6601
  }
6405
6602
 
6406
- var __defProp$d = Object.defineProperty;
6407
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6408
- var __publicField$d = (obj, key, value) => {
6409
- __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
6603
+ var __defProp$e = Object.defineProperty;
6604
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6605
+ var __publicField$e = (obj, key, value) => {
6606
+ __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
6410
6607
  return value;
6411
6608
  };
6412
6609
  class RuleListing {
6413
6610
  constructor(page) {
6414
- __publicField$d(this, "createRuleButton");
6415
- __publicField$d(this, "header");
6416
- __publicField$d(this, "grid");
6417
- __publicField$d(this, "page");
6611
+ __publicField$e(this, "createRuleButton");
6612
+ __publicField$e(this, "header");
6613
+ __publicField$e(this, "grid");
6614
+ __publicField$e(this, "page");
6418
6615
  this.page = page;
6419
6616
  this.createRuleButton = page.getByText("Create rule");
6420
6617
  this.header = page.locator(".smart-bar__header");
@@ -6425,21 +6622,21 @@ class RuleListing {
6425
6622
  }
6426
6623
  }
6427
6624
 
6428
- var __defProp$c = Object.defineProperty;
6429
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6430
- var __publicField$c = (obj, key, value) => {
6431
- __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
6625
+ var __defProp$d = Object.defineProperty;
6626
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6627
+ var __publicField$d = (obj, key, value) => {
6628
+ __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
6432
6629
  return value;
6433
6630
  };
6434
6631
  class ManufacturerCreate {
6435
6632
  constructor(page, instanceMeta) {
6436
- __publicField$c(this, "saveButton");
6437
- __publicField$c(this, "cancelButton");
6438
- __publicField$c(this, "nameInput");
6439
- __publicField$c(this, "websiteInput");
6440
- __publicField$c(this, "descriptionInput");
6441
- __publicField$c(this, "page");
6442
- __publicField$c(this, "instanceMeta");
6633
+ __publicField$d(this, "saveButton");
6634
+ __publicField$d(this, "cancelButton");
6635
+ __publicField$d(this, "nameInput");
6636
+ __publicField$d(this, "websiteInput");
6637
+ __publicField$d(this, "descriptionInput");
6638
+ __publicField$d(this, "page");
6639
+ __publicField$d(this, "instanceMeta");
6443
6640
  this.page = page;
6444
6641
  this.instanceMeta = instanceMeta;
6445
6642
  this.saveButton = page.getByRole("button", { name: "Save" });
@@ -6457,17 +6654,17 @@ class ManufacturerCreate {
6457
6654
  }
6458
6655
  }
6459
6656
 
6460
- var __defProp$b = Object.defineProperty;
6461
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6462
- var __publicField$b = (obj, key, value) => {
6463
- __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
6657
+ var __defProp$c = Object.defineProperty;
6658
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6659
+ var __publicField$c = (obj, key, value) => {
6660
+ __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
6464
6661
  return value;
6465
6662
  };
6466
6663
  class ManufacturerListing {
6467
6664
  constructor(page) {
6468
- __publicField$b(this, "addManufacturerButton");
6469
- __publicField$b(this, "manufacturerRows");
6470
- __publicField$b(this, "page");
6665
+ __publicField$c(this, "addManufacturerButton");
6666
+ __publicField$c(this, "manufacturerRows");
6667
+ __publicField$c(this, "page");
6471
6668
  this.page = page;
6472
6669
  this.addManufacturerButton = page.getByText("Add manufacturer");
6473
6670
  this.manufacturerRows = page.getByRole("row");
@@ -6500,18 +6697,18 @@ class ManufacturerListing {
6500
6697
  }
6501
6698
  }
6502
6699
 
6503
- var __defProp$a = Object.defineProperty;
6504
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6505
- var __publicField$a = (obj, key, value) => {
6506
- __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
6700
+ var __defProp$b = Object.defineProperty;
6701
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6702
+ var __publicField$b = (obj, key, value) => {
6703
+ __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
6507
6704
  return value;
6508
6705
  };
6509
6706
  class ManufacturerDetail extends ManufacturerCreate {
6510
6707
  constructor(page, instanceMeta) {
6511
6708
  super(page, instanceMeta);
6512
- __publicField$a(this, "customFieldCard");
6513
- __publicField$a(this, "customFieldSetTabs");
6514
- __publicField$a(this, "customFieldSetTabCustomContent");
6709
+ __publicField$b(this, "customFieldCard");
6710
+ __publicField$b(this, "customFieldSetTabs");
6711
+ __publicField$b(this, "customFieldSetTabCustomContent");
6515
6712
  if (satisfies(instanceMeta.version, "<6.7")) {
6516
6713
  this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
6517
6714
  } else {
@@ -6539,10 +6736,10 @@ class ManufacturerDetail extends ManufacturerCreate {
6539
6736
  }
6540
6737
  }
6541
6738
 
6542
- var __defProp$9 = Object.defineProperty;
6543
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6544
- var __publicField$9 = (obj, key, value) => {
6545
- __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
6739
+ var __defProp$a = Object.defineProperty;
6740
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6741
+ var __publicField$a = (obj, key, value) => {
6742
+ __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
6546
6743
  return value;
6547
6744
  };
6548
6745
  class ProductListing {
@@ -6550,14 +6747,14 @@ class ProductListing {
6550
6747
  /**
6551
6748
  * Multi selection
6552
6749
  */
6553
- __publicField$9(this, "productsTable");
6554
- __publicField$9(this, "bulkEditButton");
6555
- __publicField$9(this, "page");
6750
+ __publicField$a(this, "productsTable");
6751
+ __publicField$a(this, "bulkEditButton");
6752
+ __publicField$a(this, "page");
6556
6753
  /**
6557
6754
  * Bulk edit modal
6558
6755
  */
6559
- __publicField$9(this, "bulkEditModal");
6560
- __publicField$9(this, "startBulkEditButton");
6756
+ __publicField$a(this, "bulkEditModal");
6757
+ __publicField$a(this, "startBulkEditButton");
6561
6758
  this.page = page;
6562
6759
  this.productsTable = page.locator(".sw-data-grid__table");
6563
6760
  this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
@@ -6608,10 +6805,10 @@ class ProductListing {
6608
6805
  }
6609
6806
  }
6610
6807
 
6611
- var __defProp$8 = Object.defineProperty;
6612
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6613
- var __publicField$8 = (obj, key, value) => {
6614
- __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
6808
+ var __defProp$9 = Object.defineProperty;
6809
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6810
+ var __publicField$9 = (obj, key, value) => {
6811
+ __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
6615
6812
  return value;
6616
6813
  };
6617
6814
  class ProductBulkEdit {
@@ -6619,50 +6816,50 @@ class ProductBulkEdit {
6619
6816
  /**
6620
6817
  * Bulk edit values
6621
6818
  */
6622
- __publicField$8(this, "changeManufacturerRow");
6623
- __publicField$8(this, "changeManufacturerCheckbox");
6624
- __publicField$8(this, "manufacturerDropdown");
6625
- __publicField$8(this, "manufacturerDropdownInput");
6626
- __publicField$8(this, "manufacturerListResult");
6627
- __publicField$8(this, "changeActiveRow");
6628
- __publicField$8(this, "changeActiveCheckbox");
6629
- __publicField$8(this, "activeToggle");
6630
- __publicField$8(this, "changePriceRow");
6631
- __publicField$8(this, "changePriceCheckbox");
6632
- __publicField$8(this, "grossPriceInput");
6633
- __publicField$8(this, "changeReleaseDateRow");
6634
- __publicField$8(this, "changeReleaseDateCheckbox");
6635
- __publicField$8(this, "releaseDateInput");
6636
- __publicField$8(this, "changeStockRow");
6637
- __publicField$8(this, "changeStockCheckbox");
6638
- __publicField$8(this, "stockChangeMethodDropdown");
6639
- __publicField$8(this, "stockChangeMethodInput");
6640
- __publicField$8(this, "stockInput");
6641
- __publicField$8(this, "changeRestockTimeRow");
6642
- __publicField$8(this, "changeRestockTimeCheckbox");
6643
- __publicField$8(this, "restockTimeChangeMethodDropdown");
6644
- __publicField$8(this, "restockTimeChangeMethodInput");
6645
- __publicField$8(this, "restockTimeInput");
6646
- __publicField$8(this, "changeTagsRow");
6647
- __publicField$8(this, "changeTagsCheckbox");
6648
- __publicField$8(this, "tagsChangeMethodDropdown");
6649
- __publicField$8(this, "tagsChangeMethodInput");
6650
- __publicField$8(this, "tagsInput");
6651
- __publicField$8(this, "changeSalesChannelRow");
6652
- __publicField$8(this, "changeSalesChannelCheckbox");
6653
- __publicField$8(this, "salesChannelChangeMethodDropdown");
6654
- __publicField$8(this, "salesChannelChangeMethodInput");
6655
- __publicField$8(this, "salesChannelInput");
6656
- __publicField$8(this, "applyChangesButton");
6819
+ __publicField$9(this, "changeManufacturerRow");
6820
+ __publicField$9(this, "changeManufacturerCheckbox");
6821
+ __publicField$9(this, "manufacturerDropdown");
6822
+ __publicField$9(this, "manufacturerDropdownInput");
6823
+ __publicField$9(this, "manufacturerListResult");
6824
+ __publicField$9(this, "changeActiveRow");
6825
+ __publicField$9(this, "changeActiveCheckbox");
6826
+ __publicField$9(this, "activeToggle");
6827
+ __publicField$9(this, "changePriceRow");
6828
+ __publicField$9(this, "changePriceCheckbox");
6829
+ __publicField$9(this, "grossPriceInput");
6830
+ __publicField$9(this, "changeReleaseDateRow");
6831
+ __publicField$9(this, "changeReleaseDateCheckbox");
6832
+ __publicField$9(this, "releaseDateInput");
6833
+ __publicField$9(this, "changeStockRow");
6834
+ __publicField$9(this, "changeStockCheckbox");
6835
+ __publicField$9(this, "stockChangeMethodDropdown");
6836
+ __publicField$9(this, "stockChangeMethodInput");
6837
+ __publicField$9(this, "stockInput");
6838
+ __publicField$9(this, "changeRestockTimeRow");
6839
+ __publicField$9(this, "changeRestockTimeCheckbox");
6840
+ __publicField$9(this, "restockTimeChangeMethodDropdown");
6841
+ __publicField$9(this, "restockTimeChangeMethodInput");
6842
+ __publicField$9(this, "restockTimeInput");
6843
+ __publicField$9(this, "changeTagsRow");
6844
+ __publicField$9(this, "changeTagsCheckbox");
6845
+ __publicField$9(this, "tagsChangeMethodDropdown");
6846
+ __publicField$9(this, "tagsChangeMethodInput");
6847
+ __publicField$9(this, "tagsInput");
6848
+ __publicField$9(this, "changeSalesChannelRow");
6849
+ __publicField$9(this, "changeSalesChannelCheckbox");
6850
+ __publicField$9(this, "salesChannelChangeMethodDropdown");
6851
+ __publicField$9(this, "salesChannelChangeMethodInput");
6852
+ __publicField$9(this, "salesChannelInput");
6853
+ __publicField$9(this, "applyChangesButton");
6657
6854
  /**
6658
6855
  * Confirmation modal
6659
6856
  */
6660
- __publicField$8(this, "confirmModal");
6661
- __publicField$8(this, "confirmModalApplyChangesButton");
6662
- __publicField$8(this, "confirmModalLoadingSpinner");
6663
- __publicField$8(this, "confirmModalSuccessHeader");
6664
- __publicField$8(this, "confirmModalSuccessCloseButton");
6665
- __publicField$8(this, "page");
6857
+ __publicField$9(this, "confirmModal");
6858
+ __publicField$9(this, "confirmModalApplyChangesButton");
6859
+ __publicField$9(this, "confirmModalLoadingSpinner");
6860
+ __publicField$9(this, "confirmModalSuccessHeader");
6861
+ __publicField$9(this, "confirmModalSuccessCloseButton");
6862
+ __publicField$9(this, "page");
6666
6863
  this.page = page;
6667
6864
  this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
6668
6865
  this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
@@ -6713,42 +6910,42 @@ class ProductBulkEdit {
6713
6910
  }
6714
6911
  }
6715
6912
 
6716
- var __defProp$7 = Object.defineProperty;
6717
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6718
- var __publicField$7 = (obj, key, value) => {
6719
- __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
6913
+ var __defProp$8 = Object.defineProperty;
6914
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6915
+ var __publicField$8 = (obj, key, value) => {
6916
+ __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
6720
6917
  return value;
6721
6918
  };
6722
6919
  class CustomerBulkEdit {
6723
6920
  constructor(page) {
6724
6921
  //General
6725
- __publicField$7(this, "applyChangesButton");
6726
- __publicField$7(this, "filtersResultPopoverItemList");
6922
+ __publicField$8(this, "applyChangesButton");
6923
+ __publicField$8(this, "filtersResultPopoverItemList");
6727
6924
  //Account
6728
- __publicField$7(this, "changeCustomerGroupCheckbox");
6729
- __publicField$7(this, "customerGroupInput");
6730
- __publicField$7(this, "changeAccountStatusCheckbox");
6731
- __publicField$7(this, "accountStatusInput");
6732
- __publicField$7(this, "changeLanguageCheckbox");
6733
- __publicField$7(this, "changeLanguageInput");
6734
- __publicField$7(this, "replyToCustomerGroupRequest");
6735
- __publicField$7(this, "replyToCustomerGroupRequestInput");
6925
+ __publicField$8(this, "changeCustomerGroupCheckbox");
6926
+ __publicField$8(this, "customerGroupInput");
6927
+ __publicField$8(this, "changeAccountStatusCheckbox");
6928
+ __publicField$8(this, "accountStatusInput");
6929
+ __publicField$8(this, "changeLanguageCheckbox");
6930
+ __publicField$8(this, "changeLanguageInput");
6931
+ __publicField$8(this, "replyToCustomerGroupRequest");
6932
+ __publicField$8(this, "replyToCustomerGroupRequestInput");
6736
6933
  //Tags
6737
- __publicField$7(this, "changeTagsCheckbox");
6738
- __publicField$7(this, "changeTypeSelect");
6739
- __publicField$7(this, "enterTagsSelect");
6934
+ __publicField$8(this, "changeTagsCheckbox");
6935
+ __publicField$8(this, "changeTypeSelect");
6936
+ __publicField$8(this, "enterTagsSelect");
6740
6937
  //Custom fields
6741
- __publicField$7(this, "customFieldCheckbox");
6742
- __publicField$7(this, "customFieldInput");
6743
- __publicField$7(this, "customFieldArrowRightButton");
6938
+ __publicField$8(this, "customFieldCheckbox");
6939
+ __publicField$8(this, "customFieldInput");
6940
+ __publicField$8(this, "customFieldArrowRightButton");
6744
6941
  /**
6745
6942
  * Confirmation modal
6746
6943
  */
6747
- __publicField$7(this, "confirmModal");
6748
- __publicField$7(this, "confirmModalApplyChangesButton");
6749
- __publicField$7(this, "confirmModalSuccessHeader");
6750
- __publicField$7(this, "confirmModalSuccessCloseButton");
6751
- __publicField$7(this, "page");
6944
+ __publicField$8(this, "confirmModal");
6945
+ __publicField$8(this, "confirmModalApplyChangesButton");
6946
+ __publicField$8(this, "confirmModalSuccessHeader");
6947
+ __publicField$8(this, "confirmModalSuccessCloseButton");
6948
+ __publicField$8(this, "page");
6752
6949
  this.page = page;
6753
6950
  this.applyChangesButton = page.getByRole("button", { name: "Apply changes" });
6754
6951
  this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
@@ -6791,37 +6988,39 @@ class CustomerBulkEdit {
6791
6988
  }
6792
6989
  }
6793
6990
 
6794
- var __defProp$6 = Object.defineProperty;
6795
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6796
- var __publicField$6 = (obj, key, value) => {
6797
- __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
6991
+ var __defProp$7 = Object.defineProperty;
6992
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6993
+ var __publicField$7 = (obj, key, value) => {
6994
+ __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
6798
6995
  return value;
6799
6996
  };
6800
6997
  class SettingsListing {
6801
6998
  constructor(page) {
6802
- __publicField$6(this, "contentView");
6803
- __publicField$6(this, "header");
6804
- __publicField$6(this, "page");
6999
+ __publicField$7(this, "contentView");
7000
+ __publicField$7(this, "header");
7001
+ __publicField$7(this, "shopwareServicesLink");
7002
+ __publicField$7(this, "page");
6805
7003
  this.page = page;
6806
7004
  this.header = page.locator(".sw-settings__content-header");
6807
7005
  this.contentView = page.locator(".sw-desktop__content");
7006
+ this.shopwareServicesLink = page.locator(".sw-settings__content-grid").getByRole("link", { name: "Shopware Services" });
6808
7007
  }
6809
7008
  url() {
6810
7009
  return "#/sw/settings/index/shop";
6811
7010
  }
6812
7011
  }
6813
7012
 
6814
- var __defProp$5 = Object.defineProperty;
6815
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6816
- var __publicField$5 = (obj, key, value) => {
6817
- __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
7013
+ var __defProp$6 = Object.defineProperty;
7014
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7015
+ var __publicField$6 = (obj, key, value) => {
7016
+ __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
6818
7017
  return value;
6819
7018
  };
6820
7019
  class DocumentListing {
6821
7020
  constructor(page) {
6822
- __publicField$5(this, "addDocumentButton");
6823
- __publicField$5(this, "invoiceLink");
6824
- __publicField$5(this, "page");
7021
+ __publicField$6(this, "addDocumentButton");
7022
+ __publicField$6(this, "invoiceLink");
7023
+ __publicField$6(this, "page");
6825
7024
  this.page = page;
6826
7025
  this.addDocumentButton = page.getByRole("button", { name: "Add document" });
6827
7026
  this.invoiceLink = page.getByRole("link", { name: "invoice", exact: true });
@@ -6831,18 +7030,18 @@ class DocumentListing {
6831
7030
  }
6832
7031
  }
6833
7032
 
6834
- var __defProp$4 = Object.defineProperty;
6835
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6836
- var __publicField$4 = (obj, key, value) => {
6837
- __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
7033
+ var __defProp$5 = Object.defineProperty;
7034
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7035
+ var __publicField$5 = (obj, key, value) => {
7036
+ __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
6838
7037
  return value;
6839
7038
  };
6840
7039
  class DocumentDetail {
6841
7040
  constructor(page) {
6842
- __publicField$4(this, "showInAccountSwitch");
6843
- __publicField$4(this, "saveButton");
6844
- __publicField$4(this, "documentTypeSelect");
6845
- __publicField$4(this, "page");
7041
+ __publicField$5(this, "showInAccountSwitch");
7042
+ __publicField$5(this, "saveButton");
7043
+ __publicField$5(this, "documentTypeSelect");
7044
+ __publicField$5(this, "page");
6846
7045
  this.page = page;
6847
7046
  this.showInAccountSwitch = page.getByRole("checkbox", { name: 'Display document in "My' });
6848
7047
  this.saveButton = page.getByRole("button", { name: "Save" });
@@ -6853,6 +7052,40 @@ class DocumentDetail {
6853
7052
  }
6854
7053
  }
6855
7054
 
7055
+ var __defProp$4 = Object.defineProperty;
7056
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7057
+ var __publicField$4 = (obj, key, value) => {
7058
+ __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
7059
+ return value;
7060
+ };
7061
+ class ShopwareServices {
7062
+ constructor(page) {
7063
+ __publicField$4(this, "header");
7064
+ __publicField$4(this, "deactivatedBanner");
7065
+ __publicField$4(this, "activateServicesButton");
7066
+ __publicField$4(this, "permissionBanner");
7067
+ __publicField$4(this, "permissionGrantButton");
7068
+ __publicField$4(this, "serviceCards");
7069
+ __publicField$4(this, "deactivateServicesConfirmButton");
7070
+ __publicField$4(this, "deactivateServicesButton");
7071
+ __publicField$4(this, "deactivateServicesModal");
7072
+ __publicField$4(this, "page");
7073
+ this.page = page;
7074
+ this.header = page.getByRole("heading", { name: "Future proof your store with Shopware Services" });
7075
+ this.deactivatedBanner = page.locator(".sw-settings-services-index__services-deactivated-banner");
7076
+ this.activateServicesButton = page.getByRole("button", { name: "Activate Services" });
7077
+ this.permissionBanner = page.locator(".sw-settings-services-grant-permission-card");
7078
+ this.permissionGrantButton = page.getByRole("button", { name: "Grant permissions" });
7079
+ this.serviceCards = page.locator(".sw-settings-services-service-card");
7080
+ this.deactivateServicesButton = page.getByRole("button", { name: "Deactivate" });
7081
+ this.deactivateServicesModal = page.getByRole("dialog", { name: "Deactivate Shopware Services" });
7082
+ this.deactivateServicesConfirmButton = this.deactivateServicesModal.getByRole("button", { name: "Deactivate" });
7083
+ }
7084
+ url() {
7085
+ return "#/sw/settings/services/index/";
7086
+ }
7087
+ }
7088
+
6856
7089
  var __defProp$3 = Object.defineProperty;
6857
7090
  var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6858
7091
  var __publicField$3 = (obj, key, value) => {
@@ -7078,6 +7311,7 @@ const AdminPageObjects = {
7078
7311
  SettingsListing,
7079
7312
  DocumentListing,
7080
7313
  DocumentDetail,
7314
+ ShopwareServices,
7081
7315
  PromotionsListing,
7082
7316
  PromotionCreate,
7083
7317
  PromotionDetail
@@ -7191,6 +7425,9 @@ const test$6 = test$e.extend({
7191
7425
  AdminDocumentDetail: async ({ AdminPage }, use) => {
7192
7426
  await use(new DocumentDetail(AdminPage));
7193
7427
  },
7428
+ AdminShopwareServices: async ({ AdminPage }, use) => {
7429
+ await use(new ShopwareServices(AdminPage));
7430
+ },
7194
7431
  AdminPromotionsListing: async ({ AdminPage, InstanceMeta }, use) => {
7195
7432
  await use(new PromotionsListing(AdminPage, InstanceMeta));
7196
7433
  },
@@ -8130,6 +8367,69 @@ const LoginViaReviewsTab = test$e.extend({
8130
8367
  }
8131
8368
  });
8132
8369
 
8370
+ const DeactivateShopwareServices = test$e.extend({
8371
+ DeactivateShopwareServices: async ({ ShopAdmin, AdminShopwareServices }, use) => {
8372
+ const task = () => {
8373
+ return async function DeactivateShopwareServices2() {
8374
+ if (AdminShopwareServices.url() != "#/sw/settings/services/index") {
8375
+ await ShopAdmin.goesTo(AdminShopwareServices.url());
8376
+ }
8377
+ await AdminShopwareServices.deactivateServicesButton.click();
8378
+ await ShopAdmin.expects(AdminShopwareServices.deactivateServicesModal).toBeVisible();
8379
+ await AdminShopwareServices.deactivateServicesConfirmButton.click();
8380
+ await ShopAdmin.expects(AdminShopwareServices.deactivatedBanner).toBeVisible();
8381
+ };
8382
+ };
8383
+ await use(task);
8384
+ }
8385
+ });
8386
+
8387
+ const CheckVisibilityOfServicesBanner = test$e.extend({
8388
+ CheckVisibilityOfServicesBanner: async ({ TestDataService, SalesChannelBaseConfig, browser }, use) => {
8389
+ const task = (customUser) => {
8390
+ return async function CheckVisibilityOfServicesBanner2() {
8391
+ const user = customUser ? customUser : await TestDataService.createUser();
8392
+ const adminPage = await createNewAdminPageContext(user, browser, SalesChannelBaseConfig, TestDataService.AdminApiClient);
8393
+ const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
8394
+ await expect(shopwareServicesAdvertisementBanner).toBeVisible();
8395
+ };
8396
+ };
8397
+ await use(task);
8398
+ }
8399
+ });
8400
+
8401
+ const CheckAccessToShopwareServices = test$e.extend({
8402
+ CheckAccessToShopwareServices: async ({ TestDataService, SalesChannelBaseConfig, browser }, use) => {
8403
+ const task = (customUser, aclRole) => {
8404
+ return async function CheckAccessToShopwareServices2() {
8405
+ let user;
8406
+ if (customUser === void 0) {
8407
+ user = await TestDataService.createUser();
8408
+ } else {
8409
+ user = await TestDataService.getUserById(customUser.id);
8410
+ user.password = customUser.password;
8411
+ }
8412
+ const adminPage = await createNewAdminPageContext(user, browser, SalesChannelBaseConfig, TestDataService.AdminApiClient);
8413
+ const shopwareServicesAdvertisementBanner = adminPage.locator(".sw-settings-services-dashboard-banner__content").first();
8414
+ const shopwareServicesExploreNowButton = shopwareServicesAdvertisementBanner.getByRole("button", { name: "Explore now" });
8415
+ await expect(shopwareServicesAdvertisementBanner).toBeVisible();
8416
+ await expect(shopwareServicesExploreNowButton).toBeVisible();
8417
+ await expect(shopwareServicesAdvertisementBanner).toContainText("Introducing Shopware Services");
8418
+ await shopwareServicesExploreNowButton.click();
8419
+ const adminPrivilegeHeader = adminPage.getByRole("heading", { name: "Access denied" }).first();
8420
+ const shopwareServicesHeader = adminPage.getByRole("heading", { name: "Future proof your store with Shopware Services" });
8421
+ if (!aclRole?.privileges.includes("system:plugin:maintain")) {
8422
+ await expect(adminPrivilegeHeader).toBeVisible();
8423
+ } else {
8424
+ await expect(adminPrivilegeHeader).toBeHidden();
8425
+ await expect(shopwareServicesHeader).toBeVisible();
8426
+ }
8427
+ };
8428
+ };
8429
+ await use(task);
8430
+ }
8431
+ });
8432
+
8133
8433
  const test$4 = mergeTests(
8134
8434
  SaveProduct,
8135
8435
  ExpectNotification,
@@ -8138,7 +8438,10 @@ const test$4 = mergeTests(
8138
8438
  BulkEditCustomers,
8139
8439
  AssignEntitiesToRule,
8140
8440
  CreateFlow,
8141
- LoginViaReviewsTab
8441
+ LoginViaReviewsTab,
8442
+ CheckAccessToShopwareServices,
8443
+ CheckVisibilityOfServicesBanner,
8444
+ DeactivateShopwareServices
8142
8445
  );
8143
8446
 
8144
8447
  const Login = test$e.extend({
@@ -8814,7 +9117,7 @@ async function replaceElements(page, selectors) {
8814
9117
  const defaultOptions = {
8815
9118
  requestURL: "api/notification/message?limit=5",
8816
9119
  width: 1440,
8817
- scrollableElementVertical: ".sw-card-view__content",
9120
+ scrollableElementVertical: ".sw-page__main-content",
8818
9121
  scrollableElementHorizontal: ".sw-data-grid__wrapper",
8819
9122
  additionalHeight: 0,
8820
9123
  waitForSelector: "",
@@ -8893,6 +9196,13 @@ async function setViewport(page, options = {}) {
8893
9196
  console.warn(`[Success] Viewport size: width=${contentWidth}, height=${totalHeight}`);
8894
9197
  return;
8895
9198
  }
9199
+ async function assertScreenshot(page, filename, locator) {
9200
+ if (locator) {
9201
+ await expect(locator).toHaveScreenshot(filename);
9202
+ } else {
9203
+ await expect(page.locator(".sw-desktop__content")).toHaveScreenshot(filename);
9204
+ }
9205
+ }
8896
9206
 
8897
9207
  const test = mergeTests(
8898
9208
  test$8,
@@ -8910,4 +9220,4 @@ const test = mergeTests(
8910
9220
  test$3
8911
9221
  );
8912
9222
 
8913
- export { AdminPageObjects, RuleType, StorefrontPageObjects, TestDataService, compareFlowTemplateWithFlow, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlow, getFlowId, getFlowTemplate, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, hideElements, isSaaSInstance, isThemeCompiled, replaceElements, setOrderStatus, setViewport, test };
9223
+ export { AdminPageObjects, RuleType, StorefrontPageObjects, TestDataService, assertScreenshot, compareFlowTemplateWithFlow, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlow, getFlowId, getFlowTemplate, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, hideElements, isSaaSInstance, isThemeCompiled, replaceElements, setOrderStatus, setViewport, test, updateAdminUser };