@shopware-ag/acceptance-test-suite 11.22.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.d.mts +99 -1
- package/dist/index.d.ts +99 -1
- package/dist/index.mjs +1532 -1210
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -155,16 +155,16 @@ const test$d = test$e.extend({
|
|
|
155
155
|
]
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
var __defProp$
|
|
159
|
-
var __defNormalProp$
|
|
160
|
-
var __publicField$
|
|
161
|
-
__defNormalProp$
|
|
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$
|
|
167
|
-
__publicField$
|
|
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$
|
|
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$
|
|
298
|
-
var __defNormalProp$
|
|
299
|
-
var __publicField$
|
|
300
|
-
__defNormalProp$
|
|
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$
|
|
306
|
-
__publicField$
|
|
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$
|
|
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$
|
|
372
|
-
var __defNormalProp$
|
|
373
|
-
var __publicField$
|
|
374
|
-
__defNormalProp$
|
|
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$
|
|
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
|
-
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
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
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
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
|
|
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$
|
|
692
|
-
var __defNormalProp$
|
|
693
|
-
var __publicField$
|
|
694
|
-
__defNormalProp$
|
|
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$
|
|
700
|
-
__publicField$
|
|
701
|
-
__publicField$
|
|
702
|
-
__publicField$
|
|
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$
|
|
1040
|
-
var __defNormalProp$
|
|
1041
|
-
var __publicField$
|
|
1042
|
-
__defNormalProp$
|
|
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$
|
|
1048
|
-
__publicField$
|
|
1049
|
-
__publicField$
|
|
1050
|
-
__publicField$
|
|
1051
|
-
__publicField$
|
|
1052
|
-
__publicField$
|
|
1053
|
-
__publicField$
|
|
1054
|
-
__publicField$
|
|
1055
|
-
__publicField$
|
|
1056
|
-
__publicField$
|
|
1057
|
-
__publicField$
|
|
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$
|
|
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$
|
|
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$
|
|
1078
|
-
__publicField$
|
|
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$
|
|
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$
|
|
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
|
-
|
|
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$
|
|
3257
|
-
var __defNormalProp$
|
|
3258
|
-
var __publicField$
|
|
3259
|
-
__defNormalProp$
|
|
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$
|
|
3265
|
-
__publicField$
|
|
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
|
|
3350
|
-
var __defNormalProp
|
|
3351
|
-
var __publicField
|
|
3352
|
-
__defNormalProp
|
|
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
|
|
3358
|
-
__publicField
|
|
3359
|
-
__publicField
|
|
3360
|
-
__publicField
|
|
3361
|
-
__publicField
|
|
3362
|
-
__publicField
|
|
3363
|
-
__publicField
|
|
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
|
|
3541
|
+
__publicField$10(this, "languagesDropdown");
|
|
3368
3542
|
/**
|
|
3369
3543
|
* @deprecated Use 'Header/languagesMenuOptions' instead
|
|
3370
3544
|
*/
|
|
3371
|
-
__publicField
|
|
3545
|
+
__publicField$10(this, "languagesMenuOptions");
|
|
3372
3546
|
/**
|
|
3373
3547
|
* @deprecated Use 'Header/currenciesDropdown' instead
|
|
3374
3548
|
*/
|
|
3375
|
-
__publicField
|
|
3549
|
+
__publicField$10(this, "currenciesDropdown");
|
|
3376
3550
|
/**
|
|
3377
3551
|
* @deprecated Use 'Header/currenciesMenuOptions' instead
|
|
3378
3552
|
*/
|
|
3379
|
-
__publicField
|
|
3380
|
-
__publicField
|
|
3381
|
-
__publicField
|
|
3382
|
-
__publicField
|
|
3383
|
-
__publicField
|
|
3384
|
-
__publicField
|
|
3385
|
-
__publicField
|
|
3386
|
-
__publicField
|
|
3387
|
-
__publicField
|
|
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
|
|
3392
|
-
__publicField
|
|
3393
|
-
__publicField
|
|
3394
|
-
__publicField
|
|
3395
|
-
__publicField
|
|
3396
|
-
__publicField
|
|
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
|
|
3574
|
+
__publicField$10(this, "mainNavigationLink");
|
|
3401
3575
|
/**
|
|
3402
3576
|
* @deprecated Use 'Footer/contactFormLink' instead
|
|
3403
3577
|
*/
|
|
3404
|
-
__publicField
|
|
3578
|
+
__publicField$10(this, "contactFormLink");
|
|
3405
3579
|
//wishlist
|
|
3406
3580
|
/**
|
|
3407
3581
|
* @deprecated Use 'Header/wishlistIcon' instead
|
|
3408
3582
|
*/
|
|
3409
|
-
__publicField
|
|
3583
|
+
__publicField$10(this, "wishlistIcon");
|
|
3410
3584
|
/**
|
|
3411
3585
|
* @deprecated Use 'Header/wishlistBasket' instead
|
|
3412
3586
|
*/
|
|
3413
|
-
__publicField
|
|
3587
|
+
__publicField$10(this, "wishlistBasket");
|
|
3414
3588
|
//product filters
|
|
3415
|
-
__publicField
|
|
3416
|
-
__publicField
|
|
3417
|
-
__publicField
|
|
3418
|
-
__publicField
|
|
3419
|
-
__publicField
|
|
3420
|
-
__publicField
|
|
3421
|
-
__publicField
|
|
3422
|
-
__publicField
|
|
3423
|
-
__publicField
|
|
3424
|
-
__publicField
|
|
3425
|
-
__publicField
|
|
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
|
|
3582
|
-
var __defNormalProp
|
|
3583
|
-
var __publicField
|
|
3584
|
-
__defNormalProp
|
|
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
|
|
3590
|
-
__publicField
|
|
3591
|
-
__publicField
|
|
3592
|
-
__publicField
|
|
3593
|
-
__publicField
|
|
3594
|
-
__publicField
|
|
3595
|
-
__publicField
|
|
3596
|
-
__publicField
|
|
3597
|
-
__publicField
|
|
3598
|
-
__publicField
|
|
3599
|
-
__publicField
|
|
3600
|
-
__publicField
|
|
3601
|
-
__publicField
|
|
3602
|
-
__publicField
|
|
3603
|
-
__publicField
|
|
3604
|
-
__publicField
|
|
3605
|
-
__publicField
|
|
3606
|
-
__publicField
|
|
3607
|
-
__publicField
|
|
3608
|
-
__publicField
|
|
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
|
|
3611
|
-
__publicField
|
|
3612
|
-
__publicField
|
|
3613
|
-
__publicField
|
|
3614
|
-
__publicField
|
|
3615
|
-
__publicField
|
|
3616
|
-
__publicField
|
|
3617
|
-
__publicField
|
|
3618
|
-
__publicField
|
|
3619
|
-
__publicField
|
|
3620
|
-
__publicField
|
|
3621
|
-
__publicField
|
|
3622
|
-
__publicField
|
|
3623
|
-
__publicField
|
|
3624
|
-
__publicField
|
|
3625
|
-
__publicField
|
|
3626
|
-
__publicField
|
|
3627
|
-
__publicField
|
|
3628
|
-
__publicField
|
|
3629
|
-
__publicField
|
|
3630
|
-
__publicField
|
|
3631
|
-
__publicField
|
|
3632
|
-
__publicField
|
|
3633
|
-
__publicField
|
|
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$
|
|
3700
|
-
var __defNormalProp$
|
|
3701
|
-
var __publicField$
|
|
3702
|
-
__defNormalProp$
|
|
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$
|
|
3708
|
-
__publicField$
|
|
3709
|
-
__publicField$
|
|
3710
|
-
__publicField$
|
|
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$
|
|
3722
|
-
var __defNormalProp$
|
|
3723
|
-
var __publicField$
|
|
3724
|
-
__defNormalProp$
|
|
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$
|
|
3730
|
-
__publicField$
|
|
3731
|
-
__publicField$
|
|
3732
|
-
__publicField$
|
|
3733
|
-
__publicField$
|
|
3734
|
-
__publicField$
|
|
3735
|
-
__publicField$
|
|
3736
|
-
__publicField$
|
|
3737
|
-
__publicField$
|
|
3738
|
-
__publicField$
|
|
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$
|
|
3781
|
-
var __defNormalProp$
|
|
3782
|
-
var __publicField$
|
|
3783
|
-
__defNormalProp$
|
|
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$
|
|
3789
|
-
__publicField$
|
|
3790
|
-
__publicField$
|
|
3791
|
-
__publicField$
|
|
3792
|
-
__publicField$
|
|
3793
|
-
__publicField$
|
|
3794
|
-
__publicField$
|
|
3795
|
-
__publicField$
|
|
3796
|
-
__publicField$
|
|
3797
|
-
__publicField$
|
|
3798
|
-
__publicField$
|
|
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$
|
|
3846
|
-
var __defNormalProp$
|
|
3847
|
-
var __publicField$
|
|
3848
|
-
__defNormalProp$
|
|
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$
|
|
3854
|
-
__publicField$
|
|
3855
|
-
__publicField$
|
|
3856
|
-
__publicField$
|
|
3857
|
-
__publicField$
|
|
3858
|
-
__publicField$
|
|
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$
|
|
3863
|
-
__publicField$
|
|
3864
|
-
__publicField$
|
|
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$
|
|
3869
|
-
__publicField$
|
|
4042
|
+
__publicField$X(this, "shippingStandard");
|
|
4043
|
+
__publicField$X(this, "shippingExpress");
|
|
3870
4044
|
/**
|
|
3871
4045
|
* Product details
|
|
3872
4046
|
*/
|
|
3873
|
-
__publicField$
|
|
3874
|
-
__publicField$
|
|
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$
|
|
3895
|
-
var __defNormalProp$
|
|
3896
|
-
var __publicField$
|
|
3897
|
-
__defNormalProp$
|
|
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$
|
|
3903
|
-
__publicField$
|
|
3904
|
-
__publicField$
|
|
3905
|
-
__publicField$
|
|
3906
|
-
__publicField$
|
|
3907
|
-
__publicField$
|
|
3908
|
-
__publicField$
|
|
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$
|
|
3939
|
-
var __defNormalProp$
|
|
3940
|
-
var __publicField$
|
|
3941
|
-
__defNormalProp$
|
|
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$
|
|
3947
|
-
__publicField$
|
|
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$
|
|
3957
|
-
var __defNormalProp$
|
|
3958
|
-
var __publicField$
|
|
3959
|
-
__defNormalProp$
|
|
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$
|
|
3965
|
-
__publicField$
|
|
3966
|
-
__publicField$
|
|
3967
|
-
__publicField$
|
|
3968
|
-
__publicField$
|
|
3969
|
-
__publicField$
|
|
3970
|
-
__publicField$
|
|
3971
|
-
__publicField$
|
|
3972
|
-
__publicField$
|
|
3973
|
-
__publicField$
|
|
3974
|
-
__publicField$
|
|
3975
|
-
__publicField$
|
|
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$
|
|
4002
|
-
var __defNormalProp$
|
|
4003
|
-
var __publicField$
|
|
4004
|
-
__defNormalProp$
|
|
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$
|
|
4010
|
-
__publicField$
|
|
4011
|
-
__publicField$
|
|
4012
|
-
__publicField$
|
|
4013
|
-
__publicField$
|
|
4014
|
-
__publicField$
|
|
4015
|
-
__publicField$
|
|
4016
|
-
__publicField$
|
|
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$
|
|
4019
|
-
__publicField$
|
|
4020
|
-
__publicField$
|
|
4021
|
-
__publicField$
|
|
4022
|
-
__publicField$
|
|
4023
|
-
__publicField$
|
|
4024
|
-
__publicField$
|
|
4025
|
-
__publicField$
|
|
4026
|
-
__publicField$
|
|
4027
|
-
__publicField$
|
|
4028
|
-
__publicField$
|
|
4029
|
-
__publicField$
|
|
4030
|
-
__publicField$
|
|
4031
|
-
__publicField$
|
|
4032
|
-
__publicField$
|
|
4033
|
-
__publicField$
|
|
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$
|
|
4036
|
-
__publicField$
|
|
4037
|
-
__publicField$
|
|
4038
|
-
__publicField$
|
|
4039
|
-
__publicField$
|
|
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$
|
|
4042
|
-
__publicField$
|
|
4043
|
-
__publicField$
|
|
4044
|
-
__publicField$
|
|
4045
|
-
__publicField$
|
|
4046
|
-
__publicField$
|
|
4047
|
-
__publicField$
|
|
4048
|
-
__publicField$
|
|
4049
|
-
__publicField$
|
|
4050
|
-
__publicField$
|
|
4051
|
-
__publicField$
|
|
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$
|
|
4103
|
-
var __defNormalProp$
|
|
4104
|
-
var __publicField$
|
|
4105
|
-
__defNormalProp$
|
|
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$
|
|
4111
|
-
__publicField$
|
|
4112
|
-
__publicField$
|
|
4113
|
-
__publicField$
|
|
4114
|
-
__publicField$
|
|
4115
|
-
__publicField$
|
|
4116
|
-
__publicField$
|
|
4117
|
-
__publicField$
|
|
4118
|
-
__publicField$
|
|
4119
|
-
__publicField$
|
|
4120
|
-
__publicField$
|
|
4121
|
-
__publicField$
|
|
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$
|
|
4145
|
-
var __defNormalProp$
|
|
4146
|
-
var __publicField$
|
|
4147
|
-
__defNormalProp$
|
|
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$
|
|
4153
|
-
__publicField$
|
|
4154
|
-
__publicField$
|
|
4155
|
-
__publicField$
|
|
4156
|
-
__publicField$
|
|
4157
|
-
__publicField$
|
|
4158
|
-
__publicField$
|
|
4159
|
-
__publicField$
|
|
4160
|
-
__publicField$
|
|
4161
|
-
__publicField$
|
|
4162
|
-
__publicField$
|
|
4163
|
-
__publicField$
|
|
4164
|
-
__publicField$
|
|
4165
|
-
__publicField$
|
|
4166
|
-
__publicField$
|
|
4167
|
-
__publicField$
|
|
4168
|
-
__publicField$
|
|
4169
|
-
__publicField$
|
|
4170
|
-
__publicField$
|
|
4171
|
-
__publicField$
|
|
4172
|
-
__publicField$
|
|
4173
|
-
__publicField$
|
|
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$
|
|
4216
|
-
var __defNormalProp$
|
|
4217
|
-
var __publicField$
|
|
4218
|
-
__defNormalProp$
|
|
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$
|
|
4224
|
-
__publicField$
|
|
4225
|
-
__publicField$
|
|
4226
|
-
__publicField$
|
|
4227
|
-
__publicField$
|
|
4228
|
-
__publicField$
|
|
4229
|
-
__publicField$
|
|
4230
|
-
__publicField$
|
|
4231
|
-
__publicField$
|
|
4232
|
-
__publicField$
|
|
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$
|
|
4285
|
-
var __defNormalProp$
|
|
4286
|
-
var __publicField$
|
|
4287
|
-
__defNormalProp$
|
|
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$
|
|
4293
|
-
__publicField$
|
|
4294
|
-
__publicField$
|
|
4295
|
-
__publicField$
|
|
4296
|
-
__publicField$
|
|
4297
|
-
__publicField$
|
|
4298
|
-
__publicField$
|
|
4299
|
-
__publicField$
|
|
4300
|
-
__publicField$
|
|
4301
|
-
__publicField$
|
|
4302
|
-
__publicField$
|
|
4303
|
-
__publicField$
|
|
4304
|
-
__publicField$
|
|
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$
|
|
4329
|
-
var __defNormalProp$
|
|
4330
|
-
var __publicField$
|
|
4331
|
-
__defNormalProp$
|
|
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$
|
|
4337
|
-
__publicField$
|
|
4338
|
-
__publicField$
|
|
4339
|
-
__publicField$
|
|
4340
|
-
__publicField$
|
|
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$
|
|
4353
|
-
var __defNormalProp$
|
|
4354
|
-
var __publicField$
|
|
4355
|
-
__defNormalProp$
|
|
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$
|
|
4361
|
-
__publicField$
|
|
4362
|
-
__publicField$
|
|
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$
|
|
4373
|
-
var __defNormalProp$
|
|
4374
|
-
var __publicField$
|
|
4375
|
-
__defNormalProp$
|
|
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$
|
|
4382
|
-
__publicField$
|
|
4383
|
-
__publicField$
|
|
4384
|
-
__publicField$
|
|
4385
|
-
__publicField$
|
|
4386
|
-
__publicField$
|
|
4387
|
-
__publicField$
|
|
4388
|
-
__publicField$
|
|
4389
|
-
__publicField$
|
|
4390
|
-
__publicField$
|
|
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$
|
|
4412
|
-
var __defNormalProp$
|
|
4413
|
-
var __publicField$
|
|
4414
|
-
__defNormalProp$
|
|
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$
|
|
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$
|
|
4429
|
-
var __defNormalProp$
|
|
4430
|
-
var __publicField$
|
|
4431
|
-
__defNormalProp$
|
|
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$
|
|
4437
|
-
__publicField$
|
|
4438
|
-
__publicField$
|
|
4439
|
-
__publicField$
|
|
4440
|
-
__publicField$
|
|
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$
|
|
4445
|
-
__publicField$
|
|
4446
|
-
__publicField$
|
|
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$
|
|
4451
|
-
__publicField$
|
|
4452
|
-
__publicField$
|
|
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$
|
|
4479
|
-
var __defNormalProp$
|
|
4480
|
-
var __publicField$
|
|
4481
|
-
__defNormalProp$
|
|
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$
|
|
4487
|
-
__publicField$
|
|
4488
|
-
__publicField$
|
|
4489
|
-
__publicField$
|
|
4490
|
-
__publicField$
|
|
4491
|
-
__publicField$
|
|
4492
|
-
__publicField$
|
|
4493
|
-
__publicField$
|
|
4494
|
-
__publicField$
|
|
4495
|
-
__publicField$
|
|
4496
|
-
__publicField$
|
|
4497
|
-
__publicField$
|
|
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$
|
|
4517
|
-
var __defNormalProp$
|
|
4518
|
-
var __publicField$
|
|
4519
|
-
__defNormalProp$
|
|
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$
|
|
4525
|
-
__publicField$
|
|
4526
|
-
__publicField$
|
|
4527
|
-
__publicField$
|
|
4528
|
-
__publicField$
|
|
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$
|
|
4541
|
-
var __defNormalProp$
|
|
4542
|
-
var __publicField$
|
|
4543
|
-
__defNormalProp$
|
|
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$
|
|
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$
|
|
4557
|
-
__publicField$
|
|
4558
|
-
__publicField$
|
|
4559
|
-
__publicField$
|
|
4560
|
-
__publicField$
|
|
4561
|
-
__publicField$
|
|
4562
|
-
__publicField$
|
|
4563
|
-
__publicField$
|
|
4564
|
-
__publicField$
|
|
4565
|
-
__publicField$
|
|
4566
|
-
__publicField$
|
|
4567
|
-
__publicField$
|
|
4568
|
-
__publicField$
|
|
4569
|
-
__publicField$
|
|
4570
|
-
__publicField$
|
|
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$
|
|
4575
|
-
__publicField$
|
|
4576
|
-
__publicField$
|
|
4577
|
-
__publicField$
|
|
4578
|
-
__publicField$
|
|
4579
|
-
__publicField$
|
|
4580
|
-
__publicField$
|
|
4581
|
-
__publicField$
|
|
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$
|
|
4618
|
-
var __defNormalProp$
|
|
4619
|
-
var __publicField$
|
|
4620
|
-
__defNormalProp$
|
|
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$
|
|
4627
|
-
__publicField$
|
|
4628
|
-
__publicField$
|
|
4629
|
-
__publicField$
|
|
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$
|
|
4650
|
-
var __defNormalProp$
|
|
4651
|
-
var __publicField$
|
|
4652
|
-
__defNormalProp$
|
|
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$
|
|
4658
|
-
__publicField$
|
|
4659
|
-
__publicField$
|
|
4660
|
-
__publicField$
|
|
4661
|
-
__publicField$
|
|
4662
|
-
__publicField$
|
|
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$
|
|
4676
|
-
var __defNormalProp$
|
|
4677
|
-
var __publicField$
|
|
4678
|
-
__defNormalProp$
|
|
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$
|
|
4684
|
-
__publicField$
|
|
4685
|
-
__publicField$
|
|
4686
|
-
__publicField$
|
|
4687
|
-
__publicField$
|
|
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$
|
|
4690
|
-
__publicField$
|
|
4691
|
-
__publicField$
|
|
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$
|
|
4830
|
-
var __defNormalProp$
|
|
4831
|
-
var __publicField$
|
|
4832
|
-
__defNormalProp$
|
|
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$
|
|
4838
|
-
__publicField$
|
|
5011
|
+
__publicField$D(this, "contentView");
|
|
5012
|
+
__publicField$D(this, "productHeadline");
|
|
4839
5013
|
/**
|
|
4840
5014
|
* Save interactions
|
|
4841
5015
|
*/
|
|
4842
|
-
__publicField$
|
|
4843
|
-
__publicField$
|
|
4844
|
-
__publicField$
|
|
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$
|
|
5022
|
+
__publicField$D(this, "manufacturerDropdownText");
|
|
4849
5023
|
/**
|
|
4850
5024
|
* Prices
|
|
4851
5025
|
*/
|
|
4852
|
-
__publicField$
|
|
5026
|
+
__publicField$D(this, "priceGrossInput");
|
|
4853
5027
|
/**
|
|
4854
5028
|
* Deliverability
|
|
4855
5029
|
*/
|
|
4856
|
-
__publicField$
|
|
4857
|
-
__publicField$
|
|
5030
|
+
__publicField$D(this, "stockInput");
|
|
5031
|
+
__publicField$D(this, "restockTimeInput");
|
|
4858
5032
|
/**
|
|
4859
5033
|
* Visibility
|
|
4860
5034
|
*/
|
|
4861
|
-
__publicField$
|
|
4862
|
-
__publicField$
|
|
4863
|
-
__publicField$
|
|
5035
|
+
__publicField$D(this, "activeForAllSalesChannelsToggle");
|
|
5036
|
+
__publicField$D(this, "tagsInput");
|
|
5037
|
+
__publicField$D(this, "saleChannelsInput");
|
|
4864
5038
|
/**
|
|
4865
5039
|
* Labelling
|
|
4866
5040
|
*/
|
|
4867
|
-
__publicField$
|
|
5041
|
+
__publicField$D(this, "releaseDateInput");
|
|
4868
5042
|
/**
|
|
4869
5043
|
* Media Upload interactions
|
|
4870
5044
|
*/
|
|
4871
|
-
__publicField$
|
|
4872
|
-
__publicField$
|
|
4873
|
-
__publicField$
|
|
5045
|
+
__publicField$D(this, "uploadMediaButton");
|
|
5046
|
+
__publicField$D(this, "coverImage");
|
|
5047
|
+
__publicField$D(this, "productImage");
|
|
4874
5048
|
/**
|
|
4875
5049
|
* Tabs
|
|
4876
5050
|
*/
|
|
4877
|
-
__publicField$
|
|
4878
|
-
__publicField$
|
|
4879
|
-
__publicField$
|
|
4880
|
-
__publicField$
|
|
4881
|
-
__publicField$
|
|
4882
|
-
__publicField$
|
|
4883
|
-
__publicField$
|
|
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$
|
|
4888
|
-
__publicField$
|
|
4889
|
-
__publicField$
|
|
4890
|
-
__publicField$
|
|
4891
|
-
__publicField$
|
|
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$
|
|
4896
|
-
__publicField$
|
|
4897
|
-
|
|
4898
|
-
__publicField$
|
|
4899
|
-
|
|
4900
|
-
__publicField$
|
|
4901
|
-
|
|
4902
|
-
__publicField$
|
|
4903
|
-
|
|
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$
|
|
4908
|
-
__publicField$
|
|
4909
|
-
__publicField$
|
|
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$
|
|
4982
|
-
var __defNormalProp$
|
|
4983
|
-
var __publicField$
|
|
4984
|
-
__defNormalProp$
|
|
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$
|
|
4990
|
-
__publicField$
|
|
4991
|
-
__publicField$
|
|
4992
|
-
__publicField$
|
|
4993
|
-
__publicField$
|
|
4994
|
-
__publicField$
|
|
4995
|
-
__publicField$
|
|
4996
|
-
__publicField$
|
|
4997
|
-
__publicField$
|
|
4998
|
-
__publicField$
|
|
4999
|
-
__publicField$
|
|
5000
|
-
__publicField$
|
|
5001
|
-
__publicField$
|
|
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$
|
|
5006
|
-
__publicField$
|
|
5007
|
-
__publicField$
|
|
5008
|
-
__publicField$
|
|
5009
|
-
__publicField$
|
|
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$
|
|
5042
|
-
var __defNormalProp$
|
|
5043
|
-
var __publicField$
|
|
5044
|
-
__defNormalProp$
|
|
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$
|
|
5050
|
-
__publicField$
|
|
5051
|
-
__publicField$
|
|
5052
|
-
__publicField$
|
|
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$
|
|
5055
|
-
__publicField$
|
|
5056
|
-
__publicField$
|
|
5057
|
-
__publicField$
|
|
5058
|
-
__publicField$
|
|
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$
|
|
5121
|
-
var __defNormalProp$
|
|
5122
|
-
var __publicField$
|
|
5123
|
-
__defNormalProp$
|
|
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$
|
|
5129
|
-
__publicField$
|
|
5130
|
-
__publicField$
|
|
5131
|
-
__publicField$
|
|
5132
|
-
__publicField$
|
|
5133
|
-
__publicField$
|
|
5134
|
-
__publicField$
|
|
5135
|
-
__publicField$
|
|
5136
|
-
__publicField$
|
|
5137
|
-
__publicField$
|
|
5138
|
-
__publicField$
|
|
5139
|
-
__publicField$
|
|
5140
|
-
__publicField$
|
|
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$
|
|
5204
|
-
var __defNormalProp$
|
|
5205
|
-
var __publicField$
|
|
5206
|
-
__defNormalProp$
|
|
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$
|
|
5212
|
-
__publicField$
|
|
5213
|
-
__publicField$
|
|
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$
|
|
5237
|
-
var __defNormalProp$
|
|
5238
|
-
var __publicField$
|
|
5239
|
-
__defNormalProp$
|
|
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$
|
|
5245
|
-
__publicField$
|
|
5246
|
-
__publicField$
|
|
5247
|
-
__publicField$
|
|
5248
|
-
__publicField$
|
|
5249
|
-
__publicField$
|
|
5250
|
-
__publicField$
|
|
5251
|
-
__publicField$
|
|
5252
|
-
__publicField$
|
|
5253
|
-
__publicField$
|
|
5254
|
-
__publicField$
|
|
5255
|
-
__publicField$
|
|
5256
|
-
__publicField$
|
|
5257
|
-
__publicField$
|
|
5258
|
-
__publicField$
|
|
5259
|
-
__publicField$
|
|
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$
|
|
5291
|
-
var __defNormalProp$
|
|
5292
|
-
var __publicField$
|
|
5293
|
-
__defNormalProp$
|
|
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$
|
|
5300
|
-
__publicField$
|
|
5301
|
-
__publicField$
|
|
5302
|
-
__publicField$
|
|
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$
|
|
5314
|
-
var __defNormalProp$
|
|
5315
|
-
var __publicField$
|
|
5316
|
-
__defNormalProp$
|
|
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$
|
|
5322
|
-
__publicField$
|
|
5323
|
-
__publicField$
|
|
5324
|
-
__publicField$
|
|
5325
|
-
__publicField$
|
|
5326
|
-
__publicField$
|
|
5327
|
-
__publicField$
|
|
5328
|
-
__publicField$
|
|
5329
|
-
__publicField$
|
|
5330
|
-
__publicField$
|
|
5331
|
-
__publicField$
|
|
5332
|
-
__publicField$
|
|
5333
|
-
__publicField$
|
|
5334
|
-
__publicField$
|
|
5335
|
-
__publicField$
|
|
5336
|
-
__publicField$
|
|
5337
|
-
__publicField$
|
|
5338
|
-
__publicField$
|
|
5339
|
-
__publicField$
|
|
5340
|
-
__publicField$
|
|
5341
|
-
__publicField$
|
|
5342
|
-
__publicField$
|
|
5343
|
-
__publicField$
|
|
5344
|
-
__publicField$
|
|
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$
|
|
5349
|
-
__publicField$
|
|
5350
|
-
__publicField$
|
|
5351
|
-
__publicField$
|
|
5352
|
-
__publicField$
|
|
5353
|
-
__publicField$
|
|
5354
|
-
__publicField$
|
|
5355
|
-
__publicField$
|
|
5356
|
-
__publicField$
|
|
5357
|
-
__publicField$
|
|
5358
|
-
__publicField$
|
|
5359
|
-
__publicField$
|
|
5360
|
-
__publicField$
|
|
5361
|
-
__publicField$
|
|
5362
|
-
__publicField$
|
|
5363
|
-
__publicField$
|
|
5364
|
-
__publicField$
|
|
5365
|
-
__publicField$
|
|
5366
|
-
__publicField$
|
|
5367
|
-
__publicField$
|
|
5368
|
-
__publicField$
|
|
5369
|
-
__publicField$
|
|
5370
|
-
__publicField$
|
|
5371
|
-
__publicField$
|
|
5372
|
-
__publicField$
|
|
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$
|
|
5444
|
-
var __defNormalProp$
|
|
5445
|
-
var __publicField$
|
|
5446
|
-
__defNormalProp$
|
|
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$
|
|
5638
|
+
__publicField$v(this, "contentView");
|
|
5452
5639
|
//header
|
|
5453
|
-
__publicField$
|
|
5454
|
-
__publicField$
|
|
5455
|
-
__publicField$
|
|
5640
|
+
__publicField$v(this, "saveButton");
|
|
5641
|
+
__publicField$v(this, "header");
|
|
5642
|
+
__publicField$v(this, "smartBarHeader");
|
|
5456
5643
|
//tabs
|
|
5457
|
-
__publicField$
|
|
5458
|
-
__publicField$
|
|
5644
|
+
__publicField$v(this, "generalTab");
|
|
5645
|
+
__publicField$v(this, "flowTab");
|
|
5459
5646
|
//../general
|
|
5460
|
-
__publicField$
|
|
5461
|
-
__publicField$
|
|
5462
|
-
__publicField$
|
|
5463
|
-
__publicField$
|
|
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$
|
|
5466
|
-
__publicField$
|
|
5467
|
-
__publicField$
|
|
5468
|
-
__publicField$
|
|
5469
|
-
__publicField$
|
|
5470
|
-
__publicField$
|
|
5471
|
-
__publicField$
|
|
5472
|
-
__publicField$
|
|
5473
|
-
__publicField$
|
|
5474
|
-
__publicField$
|
|
5475
|
-
__publicField$
|
|
5476
|
-
__publicField$
|
|
5477
|
-
__publicField$
|
|
5478
|
-
__publicField$
|
|
5479
|
-
__publicField$
|
|
5480
|
-
__publicField$
|
|
5481
|
-
__publicField$
|
|
5482
|
-
__publicField$
|
|
5483
|
-
__publicField$
|
|
5484
|
-
__publicField$
|
|
5485
|
-
__publicField$
|
|
5486
|
-
__publicField$
|
|
5487
|
-
__publicField$
|
|
5488
|
-
__publicField$
|
|
5489
|
-
__publicField$
|
|
5490
|
-
__publicField$
|
|
5491
|
-
__publicField$
|
|
5492
|
-
__publicField$
|
|
5493
|
-
__publicField$
|
|
5494
|
-
__publicField$
|
|
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$
|
|
5552
|
-
var __defNormalProp$
|
|
5553
|
-
var __publicField$
|
|
5554
|
-
__defNormalProp$
|
|
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$
|
|
5560
|
-
__publicField$
|
|
5561
|
-
__publicField$
|
|
5562
|
-
__publicField$
|
|
5563
|
-
__publicField$
|
|
5564
|
-
__publicField$
|
|
5565
|
-
__publicField$
|
|
5566
|
-
__publicField$
|
|
5567
|
-
__publicField$
|
|
5568
|
-
__publicField$
|
|
5569
|
-
__publicField$
|
|
5570
|
-
__publicField$
|
|
5571
|
-
__publicField$
|
|
5572
|
-
__publicField$
|
|
5573
|
-
__publicField$
|
|
5574
|
-
__publicField$
|
|
5575
|
-
__publicField$
|
|
5576
|
-
__publicField$
|
|
5577
|
-
__publicField$
|
|
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$
|
|
5646
|
-
var __defNormalProp$
|
|
5647
|
-
var __publicField$
|
|
5648
|
-
__defNormalProp$
|
|
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$
|
|
5655
|
-
__publicField$
|
|
5656
|
-
__publicField$
|
|
5657
|
-
__publicField$
|
|
5658
|
-
__publicField$
|
|
5659
|
-
__publicField$
|
|
5660
|
-
__publicField$
|
|
5661
|
-
__publicField$
|
|
5662
|
-
__publicField$
|
|
5663
|
-
__publicField$
|
|
5664
|
-
__publicField$
|
|
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$
|
|
5696
|
-
var __defNormalProp$
|
|
5697
|
-
var __publicField$
|
|
5698
|
-
__defNormalProp$
|
|
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$
|
|
5704
|
-
__publicField$
|
|
5705
|
-
__publicField$
|
|
5706
|
-
__publicField$
|
|
5707
|
-
__publicField$
|
|
5708
|
-
__publicField$
|
|
5709
|
-
__publicField$
|
|
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$
|
|
5731
|
-
var __defNormalProp$
|
|
5732
|
-
var __publicField$
|
|
5733
|
-
__defNormalProp$
|
|
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$
|
|
5739
|
-
__publicField$
|
|
5740
|
-
__publicField$
|
|
5741
|
-
__publicField$
|
|
5742
|
-
__publicField$
|
|
5743
|
-
__publicField$
|
|
5744
|
-
__publicField$
|
|
5745
|
-
__publicField$
|
|
5746
|
-
__publicField$
|
|
5747
|
-
__publicField$
|
|
5748
|
-
__publicField$
|
|
5749
|
-
__publicField$
|
|
5750
|
-
__publicField$
|
|
5751
|
-
__publicField$
|
|
5752
|
-
__publicField$
|
|
5753
|
-
__publicField$
|
|
5754
|
-
__publicField$
|
|
5755
|
-
__publicField$
|
|
5756
|
-
__publicField$
|
|
5757
|
-
__publicField$
|
|
5758
|
-
__publicField$
|
|
5759
|
-
__publicField$
|
|
5760
|
-
__publicField$
|
|
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
|
|
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$
|
|
5791
|
-
var __defNormalProp$
|
|
5792
|
-
var __publicField$
|
|
5793
|
-
__defNormalProp$
|
|
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$
|
|
5799
|
-
__publicField$
|
|
5800
|
-
__publicField$
|
|
5801
|
-
__publicField$
|
|
5802
|
-
__publicField$
|
|
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$
|
|
5805
|
-
__publicField$
|
|
5806
|
-
__publicField$
|
|
5807
|
-
__publicField$
|
|
5808
|
-
__publicField$
|
|
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$
|
|
5826
|
-
var __defNormalProp$
|
|
5827
|
-
var __publicField$
|
|
5828
|
-
__defNormalProp$
|
|
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$
|
|
5834
|
-
__publicField$
|
|
5835
|
-
__publicField$
|
|
5836
|
-
__publicField$
|
|
5837
|
-
__publicField$
|
|
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$
|
|
5853
|
-
var __defNormalProp$
|
|
5854
|
-
var __publicField$
|
|
5855
|
-
__defNormalProp$
|
|
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$
|
|
5861
|
-
__publicField$
|
|
5862
|
-
__publicField$
|
|
5863
|
-
__publicField$
|
|
5864
|
-
__publicField$
|
|
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,36 +6073,36 @@ class PaymentDetail {
|
|
|
5876
6073
|
}
|
|
5877
6074
|
}
|
|
5878
6075
|
|
|
5879
|
-
var __defProp$
|
|
5880
|
-
var __defNormalProp$
|
|
5881
|
-
var __publicField$
|
|
5882
|
-
__defNormalProp$
|
|
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 {
|
|
5886
|
-
constructor(page) {
|
|
5887
|
-
/**
|
|
5888
|
-
* General
|
|
5889
|
-
*/
|
|
5890
|
-
__publicField$
|
|
5891
|
-
__publicField$
|
|
5892
|
-
__publicField$
|
|
5893
|
-
__publicField$
|
|
5894
|
-
__publicField$
|
|
5895
|
-
__publicField$
|
|
5896
|
-
__publicField$
|
|
6083
|
+
constructor(page) {
|
|
6084
|
+
/**
|
|
6085
|
+
* General
|
|
6086
|
+
*/
|
|
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$
|
|
5901
|
-
__publicField$
|
|
5902
|
-
__publicField$
|
|
5903
|
-
__publicField$
|
|
5904
|
-
__publicField$
|
|
5905
|
-
__publicField$
|
|
5906
|
-
__publicField$
|
|
5907
|
-
__publicField$
|
|
5908
|
-
__publicField$
|
|
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$
|
|
5935
|
-
var __defNormalProp$
|
|
5936
|
-
var __publicField$
|
|
5937
|
-
__defNormalProp$
|
|
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$
|
|
5946
|
-
__publicField$
|
|
5947
|
-
__publicField$
|
|
5948
|
-
__publicField$
|
|
5949
|
-
__publicField$
|
|
5950
|
-
__publicField$
|
|
5951
|
-
__publicField$
|
|
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$
|
|
5956
|
-
__publicField$
|
|
5957
|
-
__publicField$
|
|
5958
|
-
__publicField$
|
|
5959
|
-
__publicField$
|
|
5960
|
-
__publicField$
|
|
5961
|
-
__publicField$
|
|
5962
|
-
__publicField$
|
|
5963
|
-
__publicField$
|
|
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$
|
|
5989
|
-
var __defNormalProp$
|
|
5990
|
-
var __publicField$
|
|
5991
|
-
__defNormalProp$
|
|
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$
|
|
6196
|
+
__publicField$l(this, "contentView");
|
|
6000
6197
|
/**
|
|
6001
6198
|
* Landing pages
|
|
6002
6199
|
*/
|
|
6003
|
-
__publicField$
|
|
6004
|
-
__publicField$
|
|
6005
|
-
__publicField$
|
|
6006
|
-
__publicField$
|
|
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$
|
|
6011
|
-
__publicField$
|
|
6012
|
-
__publicField$
|
|
6013
|
-
__publicField$
|
|
6014
|
-
__publicField$
|
|
6015
|
-
__publicField$
|
|
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$
|
|
6020
|
-
__publicField$
|
|
6021
|
-
__publicField$
|
|
6022
|
-
__publicField$
|
|
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$
|
|
6027
|
-
__publicField$
|
|
6028
|
-
__publicField$
|
|
6029
|
-
__publicField$
|
|
6030
|
-
__publicField$
|
|
6031
|
-
__publicField$
|
|
6032
|
-
__publicField$
|
|
6033
|
-
__publicField$
|
|
6034
|
-
__publicField$
|
|
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$
|
|
6039
|
-
__publicField$
|
|
6040
|
-
__publicField$
|
|
6041
|
-
__publicField$
|
|
6042
|
-
__publicField$
|
|
6043
|
-
__publicField$
|
|
6044
|
-
__publicField$
|
|
6045
|
-
__publicField$
|
|
6046
|
-
__publicField$
|
|
6047
|
-
__publicField$
|
|
6048
|
-
__publicField$
|
|
6049
|
-
__publicField$
|
|
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$
|
|
6103
|
-
var __defNormalProp$
|
|
6104
|
-
var __publicField$
|
|
6105
|
-
__defNormalProp$
|
|
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$
|
|
6111
|
-
__publicField$
|
|
6112
|
-
__publicField$
|
|
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$
|
|
6142
|
-
var __defNormalProp$
|
|
6143
|
-
var __publicField$
|
|
6144
|
-
__defNormalProp$
|
|
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$
|
|
6150
|
-
__publicField$
|
|
6151
|
-
__publicField$
|
|
6152
|
-
__publicField$
|
|
6153
|
-
__publicField$
|
|
6154
|
-
__publicField$
|
|
6155
|
-
__publicField$
|
|
6156
|
-
__publicField$
|
|
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$
|
|
6172
|
-
var __defNormalProp$
|
|
6173
|
-
var __publicField$
|
|
6174
|
-
__defNormalProp$
|
|
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$
|
|
6181
|
-
__publicField$
|
|
6182
|
-
__publicField$
|
|
6183
|
-
__publicField$
|
|
6184
|
-
__publicField$
|
|
6185
|
-
__publicField$
|
|
6186
|
-
__publicField$
|
|
6187
|
-
__publicField$
|
|
6188
|
-
__publicField$
|
|
6189
|
-
__publicField$
|
|
6190
|
-
__publicField$
|
|
6191
|
-
__publicField$
|
|
6192
|
-
__publicField$
|
|
6193
|
-
__publicField$
|
|
6194
|
-
__publicField$
|
|
6195
|
-
__publicField$
|
|
6196
|
-
__publicField$
|
|
6197
|
-
__publicField$
|
|
6198
|
-
__publicField$
|
|
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$
|
|
6253
|
-
var __defNormalProp$
|
|
6254
|
-
var __publicField$
|
|
6255
|
-
__defNormalProp$
|
|
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$
|
|
6261
|
-
__publicField$
|
|
6262
|
-
__publicField$
|
|
6263
|
-
__publicField$
|
|
6264
|
-
__publicField$
|
|
6265
|
-
__publicField$
|
|
6266
|
-
__publicField$
|
|
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,26 +6495,28 @@ class CategoryDetail {
|
|
|
6298
6495
|
}
|
|
6299
6496
|
}
|
|
6300
6497
|
|
|
6301
|
-
var __defProp$
|
|
6302
|
-
var __defNormalProp$
|
|
6303
|
-
var __publicField$
|
|
6304
|
-
__defNormalProp$
|
|
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$
|
|
6310
|
-
__publicField$
|
|
6311
|
-
__publicField$
|
|
6312
|
-
__publicField$
|
|
6313
|
-
__publicField$
|
|
6314
|
-
__publicField$
|
|
6315
|
-
__publicField$
|
|
6316
|
-
__publicField$
|
|
6317
|
-
__publicField$
|
|
6318
|
-
__publicField$
|
|
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");
|
|
6319
6517
|
this.page = page;
|
|
6320
6518
|
this.instanceMeta = instanceMeta;
|
|
6519
|
+
this.header = page.locator(".smart-bar__header");
|
|
6321
6520
|
this.nameInput = page.getByLabel("Name");
|
|
6322
6521
|
this.priorityInput = page.getByLabel("Priority");
|
|
6323
6522
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -6335,33 +6534,37 @@ class RuleCreate {
|
|
|
6335
6534
|
}
|
|
6336
6535
|
}
|
|
6337
6536
|
|
|
6338
|
-
var __defProp$
|
|
6339
|
-
var __defNormalProp$
|
|
6340
|
-
var __publicField$
|
|
6341
|
-
__defNormalProp$
|
|
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);
|
|
6342
6541
|
return value;
|
|
6343
6542
|
};
|
|
6344
6543
|
class RuleDetail extends RuleCreate {
|
|
6345
6544
|
constructor(page, instanceMeta) {
|
|
6346
6545
|
super(page, instanceMeta);
|
|
6347
|
-
__publicField$
|
|
6348
|
-
__publicField$
|
|
6349
|
-
__publicField$
|
|
6350
|
-
__publicField$
|
|
6351
|
-
__publicField$
|
|
6352
|
-
__publicField$
|
|
6353
|
-
__publicField$
|
|
6354
|
-
__publicField$
|
|
6355
|
-
__publicField$
|
|
6356
|
-
__publicField$
|
|
6357
|
-
__publicField$
|
|
6358
|
-
__publicField$
|
|
6359
|
-
__publicField$
|
|
6360
|
-
__publicField$
|
|
6361
|
-
__publicField$
|
|
6362
|
-
__publicField$
|
|
6363
|
-
__publicField$
|
|
6364
|
-
__publicField$
|
|
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");
|
|
6567
|
+
this.contentView = page.locator(".sw-desktop__content");
|
|
6365
6568
|
this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
|
|
6366
6569
|
this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
|
|
6367
6570
|
this.shippingMethodAvailabilityRulesCardTable = page.locator(".sw-settings-rule-detail-assignments__entity-listing-shipping_method_availability_rule");
|
|
@@ -6378,12 +6581,14 @@ class RuleDetail extends RuleCreate {
|
|
|
6378
6581
|
this.promotionCustomerRulesCardEmptyState = this.promotionCustomerRulesCard.getByRole("alert");
|
|
6379
6582
|
this.promotionCartRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_cart_rule");
|
|
6380
6583
|
this.promotionCartRulesCardEmptyState = this.promotionCartRulesCard.getByRole("alert");
|
|
6381
|
-
this.
|
|
6584
|
+
this.assignmentModal = page.locator(".sw-settings-rule-add-assignment-modal");
|
|
6585
|
+
this.assignmentModalSearchField = this.assignmentModal.getByRole("textbox");
|
|
6382
6586
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
6383
|
-
this.assignmentModalAddButton =
|
|
6587
|
+
this.assignmentModalAddButton = this.assignmentModal.locator(".sw-button--primary").getByText("Add");
|
|
6384
6588
|
} else {
|
|
6385
|
-
this.assignmentModalAddButton =
|
|
6589
|
+
this.assignmentModalAddButton = this.assignmentModal.locator(".mt-button--primary").getByText("Add");
|
|
6386
6590
|
}
|
|
6591
|
+
this.conditionORContainer = page.locator(".sw-condition-or-container");
|
|
6387
6592
|
}
|
|
6388
6593
|
async getEntityCard(cardLocator) {
|
|
6389
6594
|
return {
|
|
@@ -6395,39 +6600,43 @@ class RuleDetail extends RuleCreate {
|
|
|
6395
6600
|
}
|
|
6396
6601
|
}
|
|
6397
6602
|
|
|
6398
|
-
var __defProp$
|
|
6399
|
-
var __defNormalProp$
|
|
6400
|
-
var __publicField$
|
|
6401
|
-
__defNormalProp$
|
|
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);
|
|
6402
6607
|
return value;
|
|
6403
6608
|
};
|
|
6404
6609
|
class RuleListing {
|
|
6405
6610
|
constructor(page) {
|
|
6406
|
-
__publicField$
|
|
6407
|
-
__publicField$
|
|
6611
|
+
__publicField$e(this, "createRuleButton");
|
|
6612
|
+
__publicField$e(this, "header");
|
|
6613
|
+
__publicField$e(this, "grid");
|
|
6614
|
+
__publicField$e(this, "page");
|
|
6408
6615
|
this.page = page;
|
|
6409
6616
|
this.createRuleButton = page.getByText("Create rule");
|
|
6617
|
+
this.header = page.locator(".smart-bar__header");
|
|
6618
|
+
this.grid = page.locator(".sw-data-grid__table)");
|
|
6410
6619
|
}
|
|
6411
6620
|
url() {
|
|
6412
6621
|
return `#/sw/settings/rule/index`;
|
|
6413
6622
|
}
|
|
6414
6623
|
}
|
|
6415
6624
|
|
|
6416
|
-
var __defProp$
|
|
6417
|
-
var __defNormalProp$
|
|
6418
|
-
var __publicField$
|
|
6419
|
-
__defNormalProp$
|
|
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);
|
|
6420
6629
|
return value;
|
|
6421
6630
|
};
|
|
6422
6631
|
class ManufacturerCreate {
|
|
6423
6632
|
constructor(page, instanceMeta) {
|
|
6424
|
-
__publicField$
|
|
6425
|
-
__publicField$
|
|
6426
|
-
__publicField$
|
|
6427
|
-
__publicField$
|
|
6428
|
-
__publicField$
|
|
6429
|
-
__publicField$
|
|
6430
|
-
__publicField$
|
|
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");
|
|
6431
6640
|
this.page = page;
|
|
6432
6641
|
this.instanceMeta = instanceMeta;
|
|
6433
6642
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
@@ -6445,17 +6654,17 @@ class ManufacturerCreate {
|
|
|
6445
6654
|
}
|
|
6446
6655
|
}
|
|
6447
6656
|
|
|
6448
|
-
var __defProp$
|
|
6449
|
-
var __defNormalProp$
|
|
6450
|
-
var __publicField$
|
|
6451
|
-
__defNormalProp$
|
|
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);
|
|
6452
6661
|
return value;
|
|
6453
6662
|
};
|
|
6454
6663
|
class ManufacturerListing {
|
|
6455
6664
|
constructor(page) {
|
|
6456
|
-
__publicField$
|
|
6457
|
-
__publicField$
|
|
6458
|
-
__publicField$
|
|
6665
|
+
__publicField$c(this, "addManufacturerButton");
|
|
6666
|
+
__publicField$c(this, "manufacturerRows");
|
|
6667
|
+
__publicField$c(this, "page");
|
|
6459
6668
|
this.page = page;
|
|
6460
6669
|
this.addManufacturerButton = page.getByText("Add manufacturer");
|
|
6461
6670
|
this.manufacturerRows = page.getByRole("row");
|
|
@@ -6488,18 +6697,18 @@ class ManufacturerListing {
|
|
|
6488
6697
|
}
|
|
6489
6698
|
}
|
|
6490
6699
|
|
|
6491
|
-
var __defProp$
|
|
6492
|
-
var __defNormalProp$
|
|
6493
|
-
var __publicField$
|
|
6494
|
-
__defNormalProp$
|
|
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);
|
|
6495
6704
|
return value;
|
|
6496
6705
|
};
|
|
6497
6706
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
6498
6707
|
constructor(page, instanceMeta) {
|
|
6499
6708
|
super(page, instanceMeta);
|
|
6500
|
-
__publicField$
|
|
6501
|
-
__publicField$
|
|
6502
|
-
__publicField$
|
|
6709
|
+
__publicField$b(this, "customFieldCard");
|
|
6710
|
+
__publicField$b(this, "customFieldSetTabs");
|
|
6711
|
+
__publicField$b(this, "customFieldSetTabCustomContent");
|
|
6503
6712
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
6504
6713
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
6505
6714
|
} else {
|
|
@@ -6527,10 +6736,10 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
6527
6736
|
}
|
|
6528
6737
|
}
|
|
6529
6738
|
|
|
6530
|
-
var __defProp$
|
|
6531
|
-
var __defNormalProp$
|
|
6532
|
-
var __publicField$
|
|
6533
|
-
__defNormalProp$
|
|
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);
|
|
6534
6743
|
return value;
|
|
6535
6744
|
};
|
|
6536
6745
|
class ProductListing {
|
|
@@ -6538,14 +6747,14 @@ class ProductListing {
|
|
|
6538
6747
|
/**
|
|
6539
6748
|
* Multi selection
|
|
6540
6749
|
*/
|
|
6541
|
-
__publicField$
|
|
6542
|
-
__publicField$
|
|
6543
|
-
__publicField$
|
|
6750
|
+
__publicField$a(this, "productsTable");
|
|
6751
|
+
__publicField$a(this, "bulkEditButton");
|
|
6752
|
+
__publicField$a(this, "page");
|
|
6544
6753
|
/**
|
|
6545
6754
|
* Bulk edit modal
|
|
6546
6755
|
*/
|
|
6547
|
-
__publicField$
|
|
6548
|
-
__publicField$
|
|
6756
|
+
__publicField$a(this, "bulkEditModal");
|
|
6757
|
+
__publicField$a(this, "startBulkEditButton");
|
|
6549
6758
|
this.page = page;
|
|
6550
6759
|
this.productsTable = page.locator(".sw-data-grid__table");
|
|
6551
6760
|
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
@@ -6596,10 +6805,10 @@ class ProductListing {
|
|
|
6596
6805
|
}
|
|
6597
6806
|
}
|
|
6598
6807
|
|
|
6599
|
-
var __defProp$
|
|
6600
|
-
var __defNormalProp$
|
|
6601
|
-
var __publicField$
|
|
6602
|
-
__defNormalProp$
|
|
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);
|
|
6603
6812
|
return value;
|
|
6604
6813
|
};
|
|
6605
6814
|
class ProductBulkEdit {
|
|
@@ -6607,50 +6816,50 @@ class ProductBulkEdit {
|
|
|
6607
6816
|
/**
|
|
6608
6817
|
* Bulk edit values
|
|
6609
6818
|
*/
|
|
6610
|
-
__publicField$
|
|
6611
|
-
__publicField$
|
|
6612
|
-
__publicField$
|
|
6613
|
-
__publicField$
|
|
6614
|
-
__publicField$
|
|
6615
|
-
__publicField$
|
|
6616
|
-
__publicField$
|
|
6617
|
-
__publicField$
|
|
6618
|
-
__publicField$
|
|
6619
|
-
__publicField$
|
|
6620
|
-
__publicField$
|
|
6621
|
-
__publicField$
|
|
6622
|
-
__publicField$
|
|
6623
|
-
__publicField$
|
|
6624
|
-
__publicField$
|
|
6625
|
-
__publicField$
|
|
6626
|
-
__publicField$
|
|
6627
|
-
__publicField$
|
|
6628
|
-
__publicField$
|
|
6629
|
-
__publicField$
|
|
6630
|
-
__publicField$
|
|
6631
|
-
__publicField$
|
|
6632
|
-
__publicField$
|
|
6633
|
-
__publicField$
|
|
6634
|
-
__publicField$
|
|
6635
|
-
__publicField$
|
|
6636
|
-
__publicField$
|
|
6637
|
-
__publicField$
|
|
6638
|
-
__publicField$
|
|
6639
|
-
__publicField$
|
|
6640
|
-
__publicField$
|
|
6641
|
-
__publicField$
|
|
6642
|
-
__publicField$
|
|
6643
|
-
__publicField$
|
|
6644
|
-
__publicField$
|
|
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");
|
|
6645
6854
|
/**
|
|
6646
6855
|
* Confirmation modal
|
|
6647
6856
|
*/
|
|
6648
|
-
__publicField$
|
|
6649
|
-
__publicField$
|
|
6650
|
-
__publicField$
|
|
6651
|
-
__publicField$
|
|
6652
|
-
__publicField$
|
|
6653
|
-
__publicField$
|
|
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");
|
|
6654
6863
|
this.page = page;
|
|
6655
6864
|
this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
|
|
6656
6865
|
this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
|
|
@@ -6701,42 +6910,42 @@ class ProductBulkEdit {
|
|
|
6701
6910
|
}
|
|
6702
6911
|
}
|
|
6703
6912
|
|
|
6704
|
-
var __defProp$
|
|
6705
|
-
var __defNormalProp$
|
|
6706
|
-
var __publicField$
|
|
6707
|
-
__defNormalProp$
|
|
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);
|
|
6708
6917
|
return value;
|
|
6709
6918
|
};
|
|
6710
6919
|
class CustomerBulkEdit {
|
|
6711
6920
|
constructor(page) {
|
|
6712
6921
|
//General
|
|
6713
|
-
__publicField$
|
|
6714
|
-
__publicField$
|
|
6922
|
+
__publicField$8(this, "applyChangesButton");
|
|
6923
|
+
__publicField$8(this, "filtersResultPopoverItemList");
|
|
6715
6924
|
//Account
|
|
6716
|
-
__publicField$
|
|
6717
|
-
__publicField$
|
|
6718
|
-
__publicField$
|
|
6719
|
-
__publicField$
|
|
6720
|
-
__publicField$
|
|
6721
|
-
__publicField$
|
|
6722
|
-
__publicField$
|
|
6723
|
-
__publicField$
|
|
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");
|
|
6724
6933
|
//Tags
|
|
6725
|
-
__publicField$
|
|
6726
|
-
__publicField$
|
|
6727
|
-
__publicField$
|
|
6934
|
+
__publicField$8(this, "changeTagsCheckbox");
|
|
6935
|
+
__publicField$8(this, "changeTypeSelect");
|
|
6936
|
+
__publicField$8(this, "enterTagsSelect");
|
|
6728
6937
|
//Custom fields
|
|
6729
|
-
__publicField$
|
|
6730
|
-
__publicField$
|
|
6731
|
-
__publicField$
|
|
6938
|
+
__publicField$8(this, "customFieldCheckbox");
|
|
6939
|
+
__publicField$8(this, "customFieldInput");
|
|
6940
|
+
__publicField$8(this, "customFieldArrowRightButton");
|
|
6732
6941
|
/**
|
|
6733
6942
|
* Confirmation modal
|
|
6734
6943
|
*/
|
|
6735
|
-
__publicField$
|
|
6736
|
-
__publicField$
|
|
6737
|
-
__publicField$
|
|
6738
|
-
__publicField$
|
|
6739
|
-
__publicField$
|
|
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");
|
|
6740
6949
|
this.page = page;
|
|
6741
6950
|
this.applyChangesButton = page.getByRole("button", { name: "Apply changes" });
|
|
6742
6951
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
@@ -6779,37 +6988,39 @@ class CustomerBulkEdit {
|
|
|
6779
6988
|
}
|
|
6780
6989
|
}
|
|
6781
6990
|
|
|
6782
|
-
var __defProp$
|
|
6783
|
-
var __defNormalProp$
|
|
6784
|
-
var __publicField$
|
|
6785
|
-
__defNormalProp$
|
|
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);
|
|
6786
6995
|
return value;
|
|
6787
6996
|
};
|
|
6788
6997
|
class SettingsListing {
|
|
6789
6998
|
constructor(page) {
|
|
6790
|
-
__publicField$
|
|
6791
|
-
__publicField$
|
|
6792
|
-
__publicField$
|
|
6999
|
+
__publicField$7(this, "contentView");
|
|
7000
|
+
__publicField$7(this, "header");
|
|
7001
|
+
__publicField$7(this, "shopwareServicesLink");
|
|
7002
|
+
__publicField$7(this, "page");
|
|
6793
7003
|
this.page = page;
|
|
6794
7004
|
this.header = page.locator(".sw-settings__content-header");
|
|
6795
7005
|
this.contentView = page.locator(".sw-desktop__content");
|
|
7006
|
+
this.shopwareServicesLink = page.locator(".sw-settings__content-grid").getByRole("link", { name: "Shopware Services" });
|
|
6796
7007
|
}
|
|
6797
7008
|
url() {
|
|
6798
7009
|
return "#/sw/settings/index/shop";
|
|
6799
7010
|
}
|
|
6800
7011
|
}
|
|
6801
7012
|
|
|
6802
|
-
var __defProp$
|
|
6803
|
-
var __defNormalProp$
|
|
6804
|
-
var __publicField$
|
|
6805
|
-
__defNormalProp$
|
|
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);
|
|
6806
7017
|
return value;
|
|
6807
7018
|
};
|
|
6808
7019
|
class DocumentListing {
|
|
6809
7020
|
constructor(page) {
|
|
6810
|
-
__publicField$
|
|
6811
|
-
__publicField$
|
|
6812
|
-
__publicField$
|
|
7021
|
+
__publicField$6(this, "addDocumentButton");
|
|
7022
|
+
__publicField$6(this, "invoiceLink");
|
|
7023
|
+
__publicField$6(this, "page");
|
|
6813
7024
|
this.page = page;
|
|
6814
7025
|
this.addDocumentButton = page.getByRole("button", { name: "Add document" });
|
|
6815
7026
|
this.invoiceLink = page.getByRole("link", { name: "invoice", exact: true });
|
|
@@ -6819,18 +7030,18 @@ class DocumentListing {
|
|
|
6819
7030
|
}
|
|
6820
7031
|
}
|
|
6821
7032
|
|
|
6822
|
-
var __defProp$
|
|
6823
|
-
var __defNormalProp$
|
|
6824
|
-
var __publicField$
|
|
6825
|
-
__defNormalProp$
|
|
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);
|
|
6826
7037
|
return value;
|
|
6827
7038
|
};
|
|
6828
7039
|
class DocumentDetail {
|
|
6829
7040
|
constructor(page) {
|
|
6830
|
-
__publicField$
|
|
6831
|
-
__publicField$
|
|
6832
|
-
__publicField$
|
|
6833
|
-
__publicField$
|
|
7041
|
+
__publicField$5(this, "showInAccountSwitch");
|
|
7042
|
+
__publicField$5(this, "saveButton");
|
|
7043
|
+
__publicField$5(this, "documentTypeSelect");
|
|
7044
|
+
__publicField$5(this, "page");
|
|
6834
7045
|
this.page = page;
|
|
6835
7046
|
this.showInAccountSwitch = page.getByRole("checkbox", { name: 'Display document in "My' });
|
|
6836
7047
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
@@ -6841,6 +7052,40 @@ class DocumentDetail {
|
|
|
6841
7052
|
}
|
|
6842
7053
|
}
|
|
6843
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
|
+
|
|
6844
7089
|
var __defProp$3 = Object.defineProperty;
|
|
6845
7090
|
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6846
7091
|
var __publicField$3 = (obj, key, value) => {
|
|
@@ -7066,6 +7311,7 @@ const AdminPageObjects = {
|
|
|
7066
7311
|
SettingsListing,
|
|
7067
7312
|
DocumentListing,
|
|
7068
7313
|
DocumentDetail,
|
|
7314
|
+
ShopwareServices,
|
|
7069
7315
|
PromotionsListing,
|
|
7070
7316
|
PromotionCreate,
|
|
7071
7317
|
PromotionDetail
|
|
@@ -7179,6 +7425,9 @@ const test$6 = test$e.extend({
|
|
|
7179
7425
|
AdminDocumentDetail: async ({ AdminPage }, use) => {
|
|
7180
7426
|
await use(new DocumentDetail(AdminPage));
|
|
7181
7427
|
},
|
|
7428
|
+
AdminShopwareServices: async ({ AdminPage }, use) => {
|
|
7429
|
+
await use(new ShopwareServices(AdminPage));
|
|
7430
|
+
},
|
|
7182
7431
|
AdminPromotionsListing: async ({ AdminPage, InstanceMeta }, use) => {
|
|
7183
7432
|
await use(new PromotionsListing(AdminPage, InstanceMeta));
|
|
7184
7433
|
},
|
|
@@ -8118,6 +8367,69 @@ const LoginViaReviewsTab = test$e.extend({
|
|
|
8118
8367
|
}
|
|
8119
8368
|
});
|
|
8120
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
|
+
|
|
8121
8433
|
const test$4 = mergeTests(
|
|
8122
8434
|
SaveProduct,
|
|
8123
8435
|
ExpectNotification,
|
|
@@ -8126,7 +8438,10 @@ const test$4 = mergeTests(
|
|
|
8126
8438
|
BulkEditCustomers,
|
|
8127
8439
|
AssignEntitiesToRule,
|
|
8128
8440
|
CreateFlow,
|
|
8129
|
-
LoginViaReviewsTab
|
|
8441
|
+
LoginViaReviewsTab,
|
|
8442
|
+
CheckAccessToShopwareServices,
|
|
8443
|
+
CheckVisibilityOfServicesBanner,
|
|
8444
|
+
DeactivateShopwareServices
|
|
8130
8445
|
);
|
|
8131
8446
|
|
|
8132
8447
|
const Login = test$e.extend({
|
|
@@ -8802,7 +9117,7 @@ async function replaceElements(page, selectors) {
|
|
|
8802
9117
|
const defaultOptions = {
|
|
8803
9118
|
requestURL: "api/notification/message?limit=5",
|
|
8804
9119
|
width: 1440,
|
|
8805
|
-
scrollableElementVertical: ".sw-
|
|
9120
|
+
scrollableElementVertical: ".sw-page__main-content",
|
|
8806
9121
|
scrollableElementHorizontal: ".sw-data-grid__wrapper",
|
|
8807
9122
|
additionalHeight: 0,
|
|
8808
9123
|
waitForSelector: "",
|
|
@@ -8817,7 +9132,7 @@ async function setViewport(page, options = {}) {
|
|
|
8817
9132
|
try {
|
|
8818
9133
|
await page.waitForResponse((response) => response.url().includes(config.requestURL));
|
|
8819
9134
|
} catch {
|
|
8820
|
-
console.warn(`[
|
|
9135
|
+
console.warn(`[Error] Timed out waiting for request: "${config.requestURL}".`);
|
|
8821
9136
|
}
|
|
8822
9137
|
}
|
|
8823
9138
|
if (config.waitForSelector) {
|
|
@@ -8825,7 +9140,7 @@ async function setViewport(page, options = {}) {
|
|
|
8825
9140
|
const locator2 = typeof config.waitForSelector === "string" ? page.locator(config.waitForSelector) : config.waitForSelector;
|
|
8826
9141
|
await locator2.waitFor({ state: "visible", timeout: 1e4 });
|
|
8827
9142
|
} catch {
|
|
8828
|
-
console.warn(`[
|
|
9143
|
+
console.warn(`[Error] ${config.waitForSelector} not found or timed out.`);
|
|
8829
9144
|
}
|
|
8830
9145
|
}
|
|
8831
9146
|
const locator = typeof config.scrollableElementVertical === "string" ? page.locator(config.scrollableElementVertical) : config.scrollableElementVertical;
|
|
@@ -8838,7 +9153,7 @@ async function setViewport(page, options = {}) {
|
|
|
8838
9153
|
contentHeight = await scrollableElementVertical.evaluate((el) => el.scrollHeight);
|
|
8839
9154
|
}
|
|
8840
9155
|
} catch {
|
|
8841
|
-
console.warn(`[
|
|
9156
|
+
console.warn(`[Warning] Scrollable element not found. Applying default height: ${config.contentHeight}.`);
|
|
8842
9157
|
}
|
|
8843
9158
|
}
|
|
8844
9159
|
let headerHeight = config.headerHeight;
|
|
@@ -8859,7 +9174,7 @@ async function setViewport(page, options = {}) {
|
|
|
8859
9174
|
}
|
|
8860
9175
|
}
|
|
8861
9176
|
} catch {
|
|
8862
|
-
console.warn(`[Info]
|
|
9177
|
+
console.warn(`[Info] Header not found.`);
|
|
8863
9178
|
}
|
|
8864
9179
|
}
|
|
8865
9180
|
let contentWidth = config.width;
|
|
@@ -8873,14 +9188,21 @@ async function setViewport(page, options = {}) {
|
|
|
8873
9188
|
contentWidth = config.width;
|
|
8874
9189
|
}
|
|
8875
9190
|
} catch {
|
|
8876
|
-
console.warn(`[
|
|
9191
|
+
console.warn(`[Warning] Scrollable element not found. Applying default width: ${config.width}.`);
|
|
8877
9192
|
}
|
|
8878
9193
|
}
|
|
8879
9194
|
const totalHeight = contentHeight + headerHeight + config.additionalHeight;
|
|
8880
9195
|
await page.setViewportSize({ width: contentWidth, height: totalHeight });
|
|
8881
|
-
console.warn(`[
|
|
9196
|
+
console.warn(`[Success] Viewport size: width=${contentWidth}, height=${totalHeight}`);
|
|
8882
9197
|
return;
|
|
8883
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
|
+
}
|
|
8884
9206
|
|
|
8885
9207
|
const test = mergeTests(
|
|
8886
9208
|
test$8,
|
|
@@ -8898,4 +9220,4 @@ const test = mergeTests(
|
|
|
8898
9220
|
test$3
|
|
8899
9221
|
);
|
|
8900
9222
|
|
|
8901
|
-
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 };
|