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