@shopware-ag/acceptance-test-suite 11.17.1 → 11.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +130 -3
- package/dist/index.d.ts +130 -3
- package/dist/index.mjs +1228 -997
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -155,16 +155,16 @@ const test$d = test$f.extend({
|
|
|
155
155
|
]
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
var __defProp$
|
|
159
|
-
var __defNormalProp$
|
|
160
|
-
var __publicField$
|
|
161
|
-
__defNormalProp$
|
|
158
|
+
var __defProp$11 = Object.defineProperty;
|
|
159
|
+
var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
160
|
+
var __publicField$11 = (obj, key, value) => {
|
|
161
|
+
__defNormalProp$11(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$11(this, "context");
|
|
167
|
+
__publicField$11(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$11(_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$_(_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$10 = Object.defineProperty;
|
|
298
|
+
var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
299
|
+
var __publicField$10 = (obj, key, value) => {
|
|
300
|
+
__defNormalProp$10(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$10(this, "context");
|
|
306
|
+
__publicField$10(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$10(_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$$ = Object.defineProperty;
|
|
372
|
+
var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
373
|
+
var __publicField$$ = (obj, key, value) => {
|
|
374
|
+
__defNormalProp$$(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$$(this, "context");
|
|
380
380
|
this.context = context;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
@@ -688,18 +688,18 @@ const test$b = test$f.extend({
|
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
690
|
|
|
691
|
-
var __defProp$
|
|
692
|
-
var __defNormalProp$
|
|
693
|
-
var __publicField$
|
|
694
|
-
__defNormalProp$
|
|
691
|
+
var __defProp$_ = Object.defineProperty;
|
|
692
|
+
var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
693
|
+
var __publicField$_ = (obj, key, value) => {
|
|
694
|
+
__defNormalProp$_(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
695
695
|
return value;
|
|
696
696
|
};
|
|
697
697
|
class Actor {
|
|
698
698
|
constructor(name, page, baseURL) {
|
|
699
|
-
__publicField$
|
|
700
|
-
__publicField$
|
|
701
|
-
__publicField$
|
|
702
|
-
__publicField$
|
|
699
|
+
__publicField$_(this, "page");
|
|
700
|
+
__publicField$_(this, "name");
|
|
701
|
+
__publicField$_(this, "baseURL");
|
|
702
|
+
__publicField$_(this, "expects", expect);
|
|
703
703
|
this.name = name;
|
|
704
704
|
this.page = page;
|
|
705
705
|
this.baseURL = baseURL;
|
|
@@ -1036,31 +1036,31 @@ const getPromotionWithDiscount = async (promotionId, adminApiContext) => {
|
|
|
1036
1036
|
return promotion[0];
|
|
1037
1037
|
};
|
|
1038
1038
|
|
|
1039
|
-
var __defProp$
|
|
1040
|
-
var __defNormalProp$
|
|
1041
|
-
var __publicField$
|
|
1042
|
-
__defNormalProp$
|
|
1039
|
+
var __defProp$Z = Object.defineProperty;
|
|
1040
|
+
var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1041
|
+
var __publicField$Z = (obj, key, value) => {
|
|
1042
|
+
__defNormalProp$Z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1043
1043
|
return value;
|
|
1044
1044
|
};
|
|
1045
1045
|
class TestDataService {
|
|
1046
1046
|
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$
|
|
1047
|
+
__publicField$Z(this, "AdminApiClient");
|
|
1048
|
+
__publicField$Z(this, "IdProvider");
|
|
1049
|
+
__publicField$Z(this, "namePrefix", "Test-");
|
|
1050
|
+
__publicField$Z(this, "nameSuffix", "");
|
|
1051
|
+
__publicField$Z(this, "defaultSalesChannel");
|
|
1052
|
+
__publicField$Z(this, "defaultTaxId");
|
|
1053
|
+
__publicField$Z(this, "defaultCurrencyId");
|
|
1054
|
+
__publicField$Z(this, "defaultCategoryId");
|
|
1055
|
+
__publicField$Z(this, "defaultLanguageId");
|
|
1056
|
+
__publicField$Z(this, "defaultCountryId");
|
|
1057
|
+
__publicField$Z(this, "defaultCustomerGroupId");
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Configures if an automated cleanup of the data should be executed.
|
|
1060
1060
|
*
|
|
1061
1061
|
* @private
|
|
1062
1062
|
*/
|
|
1063
|
-
__publicField$
|
|
1063
|
+
__publicField$Z(this, "shouldCleanUp", true);
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Configuration of higher priority entities for the cleanup operation.
|
|
1066
1066
|
* These entities will be deleted before others.
|
|
@@ -1068,26 +1068,26 @@ class TestDataService {
|
|
|
1068
1068
|
*
|
|
1069
1069
|
* @private
|
|
1070
1070
|
*/
|
|
1071
|
-
__publicField$
|
|
1071
|
+
__publicField$Z(this, "highPriorityEntities", ["order", "product", "product_cross_selling", "landing_page", "shipping_method", "sales_channel_domain", "sales_channel_currency", "sales_channel_country", "sales_channel_payment_method", "customer"]);
|
|
1072
1072
|
/**
|
|
1073
1073
|
* A registry of all created records.
|
|
1074
1074
|
*
|
|
1075
1075
|
* @private
|
|
1076
1076
|
*/
|
|
1077
|
-
__publicField$
|
|
1078
|
-
__publicField$
|
|
1077
|
+
__publicField$Z(this, "createdRecords", []);
|
|
1078
|
+
__publicField$Z(this, "restoreSystemConfig", {});
|
|
1079
1079
|
/**
|
|
1080
1080
|
* A registry of all created sales channel records.
|
|
1081
1081
|
*
|
|
1082
1082
|
* @private
|
|
1083
1083
|
*/
|
|
1084
|
-
__publicField$
|
|
1084
|
+
__publicField$Z(this, "createdSalesChannelRecords", []);
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Function that generates combinations from n number of arrays
|
|
1087
1087
|
* with m number of elements in them.
|
|
1088
1088
|
* @param array
|
|
1089
1089
|
*/
|
|
1090
|
-
__publicField$
|
|
1090
|
+
__publicField$Z(this, "combineAll", (array) => {
|
|
1091
1091
|
const result = [];
|
|
1092
1092
|
const max = array.length - 1;
|
|
1093
1093
|
const helper = (tmpArray, i) => {
|
|
@@ -3253,16 +3253,16 @@ const test$9 = test$f.extend({
|
|
|
3253
3253
|
}
|
|
3254
3254
|
});
|
|
3255
3255
|
|
|
3256
|
-
var __defProp$
|
|
3257
|
-
var __defNormalProp$
|
|
3258
|
-
var __publicField$
|
|
3259
|
-
__defNormalProp$
|
|
3256
|
+
var __defProp$Y = Object.defineProperty;
|
|
3257
|
+
var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3258
|
+
var __publicField$Y = (obj, key, value) => {
|
|
3259
|
+
__defNormalProp$Y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3260
3260
|
return value;
|
|
3261
3261
|
};
|
|
3262
3262
|
class IdProvider {
|
|
3263
3263
|
constructor(workerIndex, seed) {
|
|
3264
|
-
__publicField$
|
|
3265
|
-
__publicField$
|
|
3264
|
+
__publicField$Y(this, "workerIndex");
|
|
3265
|
+
__publicField$Y(this, "seed");
|
|
3266
3266
|
this.workerIndex = workerIndex;
|
|
3267
3267
|
this.seed = seed;
|
|
3268
3268
|
}
|
|
@@ -3343,127 +3343,87 @@ const test$8 = test$f.extend({
|
|
|
3343
3343
|
});
|
|
3344
3344
|
},
|
|
3345
3345
|
{ scope: "worker" }
|
|
3346
|
-
],
|
|
3347
|
-
/**
|
|
3348
|
-
* Hides the given page elements using `visibility: hidden`, so they become invisible
|
|
3349
|
-
* without affecting the layout (no realignment occurs).
|
|
3350
|
-
*
|
|
3351
|
-
* @param selectors - A list of CSS selectors for the elements to hide.
|
|
3352
|
-
*/
|
|
3353
|
-
HideElementsForScreenshot: [
|
|
3354
|
-
async ({}, use) => {
|
|
3355
|
-
const fn = async (page, selectors) => {
|
|
3356
|
-
if (!selectors.length)
|
|
3357
|
-
return;
|
|
3358
|
-
const css = selectors.map((selector) => `${selector} { visibility: hidden !important; }`).join("\n");
|
|
3359
|
-
await page.addStyleTag({ content: css });
|
|
3360
|
-
};
|
|
3361
|
-
await use(fn);
|
|
3362
|
-
},
|
|
3363
|
-
{ scope: "worker" }
|
|
3364
|
-
],
|
|
3365
|
-
/**
|
|
3366
|
-
* Replaces the visible text content of the selected elements with "***",
|
|
3367
|
-
* typically used to mask sensitive information (e.g. names, prices).
|
|
3368
|
-
*
|
|
3369
|
-
* @param selectors - A list of CSS selectors for the elements whose content should be replaced.
|
|
3370
|
-
*/
|
|
3371
|
-
ReplaceElementsForScreenshot: [
|
|
3372
|
-
async ({}, use) => {
|
|
3373
|
-
const fn = async (page, selectors) => {
|
|
3374
|
-
if (!selectors.length)
|
|
3375
|
-
return;
|
|
3376
|
-
await page.evaluate((selectors2) => {
|
|
3377
|
-
selectors2.forEach((selector) => {
|
|
3378
|
-
const elements = document.querySelectorAll(selector);
|
|
3379
|
-
elements.forEach((el) => {
|
|
3380
|
-
el.textContent = "***";
|
|
3381
|
-
});
|
|
3382
|
-
});
|
|
3383
|
-
}, selectors);
|
|
3384
|
-
};
|
|
3385
|
-
await use(fn);
|
|
3386
|
-
},
|
|
3387
|
-
{ scope: "worker" }
|
|
3388
3346
|
]
|
|
3389
3347
|
});
|
|
3390
3348
|
|
|
3391
|
-
var __defProp$
|
|
3392
|
-
var __defNormalProp$
|
|
3393
|
-
var __publicField$
|
|
3394
|
-
__defNormalProp$
|
|
3349
|
+
var __defProp$X = Object.defineProperty;
|
|
3350
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3351
|
+
var __publicField$X = (obj, key, value) => {
|
|
3352
|
+
__defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3395
3353
|
return value;
|
|
3396
3354
|
};
|
|
3397
3355
|
class Home {
|
|
3398
3356
|
constructor(page) {
|
|
3399
3357
|
this.page = page;
|
|
3400
|
-
__publicField$
|
|
3401
|
-
__publicField$
|
|
3402
|
-
__publicField$
|
|
3403
|
-
__publicField$
|
|
3404
|
-
__publicField$
|
|
3405
|
-
__publicField$
|
|
3358
|
+
__publicField$X(this, "categoryTitle");
|
|
3359
|
+
__publicField$X(this, "accountMenuButton");
|
|
3360
|
+
__publicField$X(this, "closeGuestSessionButton");
|
|
3361
|
+
__publicField$X(this, "productImages");
|
|
3362
|
+
__publicField$X(this, "productListItems");
|
|
3363
|
+
__publicField$X(this, "loader");
|
|
3364
|
+
__publicField$X(this, "productVariantCharacteristicsOptions");
|
|
3406
3365
|
/**
|
|
3407
3366
|
* @deprecated Use 'Header/languagesDropdown' instead
|
|
3408
3367
|
*/
|
|
3409
|
-
__publicField$
|
|
3368
|
+
__publicField$X(this, "languagesDropdown");
|
|
3410
3369
|
/**
|
|
3411
3370
|
* @deprecated Use 'Header/languagesMenuOptions' instead
|
|
3412
3371
|
*/
|
|
3413
|
-
__publicField$
|
|
3372
|
+
__publicField$X(this, "languagesMenuOptions");
|
|
3414
3373
|
/**
|
|
3415
3374
|
* @deprecated Use 'Header/currenciesDropdown' instead
|
|
3416
3375
|
*/
|
|
3417
|
-
__publicField$
|
|
3376
|
+
__publicField$X(this, "currenciesDropdown");
|
|
3418
3377
|
/**
|
|
3419
3378
|
* @deprecated Use 'Header/currenciesMenuOptions' instead
|
|
3420
3379
|
*/
|
|
3421
|
-
__publicField$
|
|
3422
|
-
__publicField$
|
|
3423
|
-
__publicField$
|
|
3424
|
-
__publicField$
|
|
3425
|
-
__publicField$
|
|
3426
|
-
__publicField$
|
|
3427
|
-
__publicField$
|
|
3428
|
-
__publicField$
|
|
3429
|
-
__publicField$
|
|
3380
|
+
__publicField$X(this, "currenciesMenuOptions");
|
|
3381
|
+
__publicField$X(this, "consentOnlyTechnicallyRequiredButton");
|
|
3382
|
+
__publicField$X(this, "consentConfigureButton");
|
|
3383
|
+
__publicField$X(this, "consentAcceptAllCookiesButton");
|
|
3384
|
+
__publicField$X(this, "consentCookiePreferences");
|
|
3385
|
+
__publicField$X(this, "consentCookiePermissionContent");
|
|
3386
|
+
__publicField$X(this, "consentDialog");
|
|
3387
|
+
__publicField$X(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
3388
|
+
__publicField$X(this, "consentDialogStatisticsCheckbox");
|
|
3430
3389
|
/**
|
|
3431
3390
|
* @deprecated Use 'consentDialogMarketingCheckbox' instead
|
|
3432
3391
|
*/
|
|
3433
|
-
__publicField$
|
|
3434
|
-
__publicField$
|
|
3435
|
-
__publicField$
|
|
3436
|
-
__publicField$
|
|
3437
|
-
__publicField$
|
|
3438
|
-
__publicField$
|
|
3392
|
+
__publicField$X(this, "consentDialogMarketingdCheckbox");
|
|
3393
|
+
__publicField$X(this, "consentDialogMarketingCheckbox");
|
|
3394
|
+
__publicField$X(this, "consentDialogAcceptAllCookiesButton");
|
|
3395
|
+
__publicField$X(this, "consentDialogSaveButton");
|
|
3396
|
+
__publicField$X(this, "consentCookieBannerContainer");
|
|
3397
|
+
__publicField$X(this, "offcanvasBackdrop");
|
|
3439
3398
|
/**
|
|
3440
3399
|
* @deprecated Use 'Header/mainNavigationLink' instead
|
|
3441
3400
|
*/
|
|
3442
|
-
__publicField$
|
|
3401
|
+
__publicField$X(this, "mainNavigationLink");
|
|
3443
3402
|
/**
|
|
3444
3403
|
* @deprecated Use 'Footer/contactFormLink' instead
|
|
3445
3404
|
*/
|
|
3446
|
-
__publicField$
|
|
3405
|
+
__publicField$X(this, "contactFormLink");
|
|
3447
3406
|
//wishlist
|
|
3448
3407
|
/**
|
|
3449
3408
|
* @deprecated Use 'Header/wishlistIcon' instead
|
|
3450
3409
|
*/
|
|
3451
|
-
__publicField$
|
|
3410
|
+
__publicField$X(this, "wishlistIcon");
|
|
3452
3411
|
/**
|
|
3453
3412
|
* @deprecated Use 'Header/wishlistBasket' instead
|
|
3454
3413
|
*/
|
|
3455
|
-
__publicField$
|
|
3414
|
+
__publicField$X(this, "wishlistBasket");
|
|
3456
3415
|
//product filters
|
|
3457
|
-
__publicField$
|
|
3458
|
-
__publicField$
|
|
3459
|
-
__publicField$
|
|
3460
|
-
__publicField$
|
|
3461
|
-
__publicField$
|
|
3462
|
-
__publicField$
|
|
3463
|
-
__publicField$
|
|
3464
|
-
__publicField$
|
|
3465
|
-
__publicField$
|
|
3466
|
-
__publicField$
|
|
3416
|
+
__publicField$X(this, "filterMultiSelect");
|
|
3417
|
+
__publicField$X(this, "manufacturerFilter");
|
|
3418
|
+
__publicField$X(this, "propertyFilters");
|
|
3419
|
+
__publicField$X(this, "priceFilterButton");
|
|
3420
|
+
__publicField$X(this, "resetAllButton");
|
|
3421
|
+
__publicField$X(this, "freeShippingFilter");
|
|
3422
|
+
__publicField$X(this, "productList");
|
|
3423
|
+
__publicField$X(this, "productItemNames");
|
|
3424
|
+
__publicField$X(this, "productRatingButton");
|
|
3425
|
+
__publicField$X(this, "productRatingList");
|
|
3426
|
+
this.categoryTitle = page.locator(".cms-element-text h1");
|
|
3467
3427
|
this.accountMenuButton = page.getByLabel("Your account");
|
|
3468
3428
|
this.closeGuestSessionButton = page.locator(".account-aside-btn");
|
|
3469
3429
|
this.productImages = page.locator(".product-image-wrapper");
|
|
@@ -3617,59 +3577,59 @@ class Home {
|
|
|
3617
3577
|
}
|
|
3618
3578
|
}
|
|
3619
3579
|
|
|
3620
|
-
var __defProp$
|
|
3621
|
-
var __defNormalProp$
|
|
3622
|
-
var __publicField$
|
|
3623
|
-
__defNormalProp$
|
|
3580
|
+
var __defProp$W = Object.defineProperty;
|
|
3581
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3582
|
+
var __publicField$W = (obj, key, value) => {
|
|
3583
|
+
__defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3624
3584
|
return value;
|
|
3625
3585
|
};
|
|
3626
3586
|
let ProductDetail$1 = class ProductDetail {
|
|
3627
3587
|
constructor(page) {
|
|
3628
3588
|
this.page = page;
|
|
3629
|
-
__publicField$
|
|
3630
|
-
__publicField$
|
|
3631
|
-
__publicField$
|
|
3632
|
-
__publicField$
|
|
3633
|
-
__publicField$
|
|
3634
|
-
__publicField$
|
|
3635
|
-
__publicField$
|
|
3636
|
-
__publicField$
|
|
3637
|
-
__publicField$
|
|
3638
|
-
__publicField$
|
|
3639
|
-
__publicField$
|
|
3640
|
-
__publicField$
|
|
3641
|
-
__publicField$
|
|
3642
|
-
__publicField$
|
|
3643
|
-
__publicField$
|
|
3644
|
-
__publicField$
|
|
3645
|
-
__publicField$
|
|
3646
|
-
__publicField$
|
|
3647
|
-
__publicField$
|
|
3648
|
-
__publicField$
|
|
3589
|
+
__publicField$W(this, "addToCartButton");
|
|
3590
|
+
__publicField$W(this, "quantitySelect");
|
|
3591
|
+
__publicField$W(this, "productSingleImage");
|
|
3592
|
+
__publicField$W(this, "productSinglePrice");
|
|
3593
|
+
__publicField$W(this, "productPriceRangesRow");
|
|
3594
|
+
__publicField$W(this, "productListingPriceBadge");
|
|
3595
|
+
__publicField$W(this, "productListingPrice");
|
|
3596
|
+
__publicField$W(this, "productListingPricePercentage");
|
|
3597
|
+
__publicField$W(this, "offCanvasCartTitle");
|
|
3598
|
+
__publicField$W(this, "offCanvasCart");
|
|
3599
|
+
__publicField$W(this, "offCanvasCartGoToCheckoutButton");
|
|
3600
|
+
__publicField$W(this, "offCanvasLineItemImages");
|
|
3601
|
+
__publicField$W(this, "offCanvasSummaryTotalPrice");
|
|
3602
|
+
__publicField$W(this, "offCanvas");
|
|
3603
|
+
__publicField$W(this, "wishlistAddedButton");
|
|
3604
|
+
__publicField$W(this, "wishlistNotAddedButton");
|
|
3605
|
+
__publicField$W(this, "productDetailConfigurator");
|
|
3606
|
+
__publicField$W(this, "productDetailConfiguratorGroupTitle");
|
|
3607
|
+
__publicField$W(this, "productDetailConfiguratorOptionInputs");
|
|
3608
|
+
__publicField$W(this, "productName");
|
|
3649
3609
|
//Reviews Tab
|
|
3650
|
-
__publicField$
|
|
3651
|
-
__publicField$
|
|
3652
|
-
__publicField$
|
|
3653
|
-
__publicField$
|
|
3654
|
-
__publicField$
|
|
3655
|
-
__publicField$
|
|
3656
|
-
__publicField$
|
|
3657
|
-
__publicField$
|
|
3658
|
-
__publicField$
|
|
3659
|
-
__publicField$
|
|
3660
|
-
__publicField$
|
|
3661
|
-
__publicField$
|
|
3662
|
-
__publicField$
|
|
3663
|
-
__publicField$
|
|
3664
|
-
__publicField$
|
|
3665
|
-
__publicField$
|
|
3666
|
-
__publicField$
|
|
3667
|
-
__publicField$
|
|
3668
|
-
__publicField$
|
|
3669
|
-
__publicField$
|
|
3670
|
-
__publicField$
|
|
3671
|
-
__publicField$
|
|
3672
|
-
__publicField$
|
|
3610
|
+
__publicField$W(this, "reviewsTab");
|
|
3611
|
+
__publicField$W(this, "reviewTeaserButton");
|
|
3612
|
+
__publicField$W(this, "reviewTeaserText");
|
|
3613
|
+
__publicField$W(this, "reviewListingItems");
|
|
3614
|
+
__publicField$W(this, "reviewEmptyListingText");
|
|
3615
|
+
__publicField$W(this, "reviewLoginForm");
|
|
3616
|
+
__publicField$W(this, "forgottenPasswordLink");
|
|
3617
|
+
__publicField$W(this, "reviewForm");
|
|
3618
|
+
__publicField$W(this, "reviewRatingPoints");
|
|
3619
|
+
__publicField$W(this, "reviewRatingText");
|
|
3620
|
+
__publicField$W(this, "reviewSubmitMessage");
|
|
3621
|
+
__publicField$W(this, "reviewCounter");
|
|
3622
|
+
__publicField$W(this, "reviewItemRatingPoints");
|
|
3623
|
+
__publicField$W(this, "reviewItemTitle");
|
|
3624
|
+
__publicField$W(this, "reviewReviewTextInput");
|
|
3625
|
+
__publicField$W(this, "reviewItemContent");
|
|
3626
|
+
__publicField$W(this, "reviewLoginButton");
|
|
3627
|
+
__publicField$W(this, "reviewEmailInput");
|
|
3628
|
+
__publicField$W(this, "reviewPasswordInput");
|
|
3629
|
+
__publicField$W(this, "reviewTitleInput");
|
|
3630
|
+
__publicField$W(this, "reviewSubmitButton");
|
|
3631
|
+
__publicField$W(this, "productReviewsLink");
|
|
3632
|
+
__publicField$W(this, "productReviewRating");
|
|
3673
3633
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
3674
3634
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
3675
3635
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -3734,18 +3694,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
3734
3694
|
}
|
|
3735
3695
|
};
|
|
3736
3696
|
|
|
3737
|
-
var __defProp$
|
|
3738
|
-
var __defNormalProp$
|
|
3739
|
-
var __publicField$
|
|
3740
|
-
__defNormalProp$
|
|
3697
|
+
var __defProp$V = Object.defineProperty;
|
|
3698
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3699
|
+
var __publicField$V = (obj, key, value) => {
|
|
3700
|
+
__defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3741
3701
|
return value;
|
|
3742
3702
|
};
|
|
3743
3703
|
class Category {
|
|
3744
3704
|
constructor(page) {
|
|
3745
3705
|
this.page = page;
|
|
3746
|
-
__publicField$
|
|
3747
|
-
__publicField$
|
|
3748
|
-
__publicField$
|
|
3706
|
+
__publicField$V(this, "sortingSelect");
|
|
3707
|
+
__publicField$V(this, "firstProductBuyButton");
|
|
3708
|
+
__publicField$V(this, "noProductsFoundAlert");
|
|
3749
3709
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
3750
3710
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
3751
3711
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -3755,24 +3715,24 @@ class Category {
|
|
|
3755
3715
|
}
|
|
3756
3716
|
}
|
|
3757
3717
|
|
|
3758
|
-
var __defProp$
|
|
3759
|
-
var __defNormalProp$
|
|
3760
|
-
var __publicField$
|
|
3761
|
-
__defNormalProp$
|
|
3718
|
+
var __defProp$U = Object.defineProperty;
|
|
3719
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3720
|
+
var __publicField$U = (obj, key, value) => {
|
|
3721
|
+
__defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3762
3722
|
return value;
|
|
3763
3723
|
};
|
|
3764
3724
|
class CheckoutCart {
|
|
3765
3725
|
constructor(page) {
|
|
3766
3726
|
this.page = page;
|
|
3767
|
-
__publicField$
|
|
3768
|
-
__publicField$
|
|
3769
|
-
__publicField$
|
|
3770
|
-
__publicField$
|
|
3771
|
-
__publicField$
|
|
3772
|
-
__publicField$
|
|
3773
|
-
__publicField$
|
|
3774
|
-
__publicField$
|
|
3775
|
-
__publicField$
|
|
3727
|
+
__publicField$U(this, "headline");
|
|
3728
|
+
__publicField$U(this, "goToCheckoutButton");
|
|
3729
|
+
__publicField$U(this, "enterPromoInput");
|
|
3730
|
+
__publicField$U(this, "grandTotalPrice");
|
|
3731
|
+
__publicField$U(this, "emptyCartAlert");
|
|
3732
|
+
__publicField$U(this, "stockReachedAlert");
|
|
3733
|
+
__publicField$U(this, "cartLineItemImages");
|
|
3734
|
+
__publicField$U(this, "unitPriceInfo");
|
|
3735
|
+
__publicField$U(this, "cartQuantityNumber");
|
|
3776
3736
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3777
3737
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
3778
3738
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -3813,25 +3773,25 @@ class CheckoutCart {
|
|
|
3813
3773
|
}
|
|
3814
3774
|
}
|
|
3815
3775
|
|
|
3816
|
-
var __defProp$
|
|
3817
|
-
var __defNormalProp$
|
|
3818
|
-
var __publicField$
|
|
3819
|
-
__defNormalProp$
|
|
3776
|
+
var __defProp$T = Object.defineProperty;
|
|
3777
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3778
|
+
var __publicField$T = (obj, key, value) => {
|
|
3779
|
+
__defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3820
3780
|
return value;
|
|
3821
3781
|
};
|
|
3822
3782
|
class OffCanvasCart {
|
|
3823
3783
|
constructor(page) {
|
|
3824
3784
|
this.page = page;
|
|
3825
|
-
__publicField$
|
|
3826
|
-
__publicField$
|
|
3827
|
-
__publicField$
|
|
3828
|
-
__publicField$
|
|
3829
|
-
__publicField$
|
|
3830
|
-
__publicField$
|
|
3831
|
-
__publicField$
|
|
3832
|
-
__publicField$
|
|
3833
|
-
__publicField$
|
|
3834
|
-
__publicField$
|
|
3785
|
+
__publicField$T(this, "headline");
|
|
3786
|
+
__publicField$T(this, "itemCount");
|
|
3787
|
+
__publicField$T(this, "goToCheckoutButton");
|
|
3788
|
+
__publicField$T(this, "goToCartButton");
|
|
3789
|
+
__publicField$T(this, "continueShoppingButton");
|
|
3790
|
+
__publicField$T(this, "enterPromoInput");
|
|
3791
|
+
__publicField$T(this, "submitDiscountButton");
|
|
3792
|
+
__publicField$T(this, "subTotalPrice");
|
|
3793
|
+
__publicField$T(this, "shippingCosts");
|
|
3794
|
+
__publicField$T(this, "cartQuantityNumber");
|
|
3835
3795
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3836
3796
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
3837
3797
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -3877,36 +3837,36 @@ class OffCanvasCart {
|
|
|
3877
3837
|
}
|
|
3878
3838
|
}
|
|
3879
3839
|
|
|
3880
|
-
var __defProp$
|
|
3881
|
-
var __defNormalProp$
|
|
3882
|
-
var __publicField$
|
|
3883
|
-
__defNormalProp$
|
|
3840
|
+
var __defProp$S = Object.defineProperty;
|
|
3841
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3842
|
+
var __publicField$S = (obj, key, value) => {
|
|
3843
|
+
__defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3884
3844
|
return value;
|
|
3885
3845
|
};
|
|
3886
3846
|
class CheckoutConfirm {
|
|
3887
3847
|
constructor(page) {
|
|
3888
3848
|
this.page = page;
|
|
3889
|
-
__publicField$
|
|
3890
|
-
__publicField$
|
|
3891
|
-
__publicField$
|
|
3892
|
-
__publicField$
|
|
3893
|
-
__publicField$
|
|
3894
|
-
__publicField$
|
|
3849
|
+
__publicField$S(this, "headline");
|
|
3850
|
+
__publicField$S(this, "termsAndConditionsCheckbox");
|
|
3851
|
+
__publicField$S(this, "immediateAccessToDigitalProductCheckbox");
|
|
3852
|
+
__publicField$S(this, "grandTotalPrice");
|
|
3853
|
+
__publicField$S(this, "taxPrice");
|
|
3854
|
+
__publicField$S(this, "submitOrderButton");
|
|
3895
3855
|
/**
|
|
3896
3856
|
* Payment options
|
|
3897
3857
|
*/
|
|
3898
|
-
__publicField$
|
|
3899
|
-
__publicField$
|
|
3900
|
-
__publicField$
|
|
3858
|
+
__publicField$S(this, "paymentCashOnDelivery");
|
|
3859
|
+
__publicField$S(this, "paymentPaidInAdvance");
|
|
3860
|
+
__publicField$S(this, "paymentInvoice");
|
|
3901
3861
|
/**
|
|
3902
3862
|
* Shipping options
|
|
3903
3863
|
*/
|
|
3904
|
-
__publicField$
|
|
3905
|
-
__publicField$
|
|
3864
|
+
__publicField$S(this, "shippingStandard");
|
|
3865
|
+
__publicField$S(this, "shippingExpress");
|
|
3906
3866
|
/**
|
|
3907
3867
|
* Product details
|
|
3908
3868
|
*/
|
|
3909
|
-
__publicField$
|
|
3869
|
+
__publicField$S(this, "cartLineItemImages");
|
|
3910
3870
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3911
3871
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3912
3872
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3925,21 +3885,21 @@ class CheckoutConfirm {
|
|
|
3925
3885
|
}
|
|
3926
3886
|
}
|
|
3927
3887
|
|
|
3928
|
-
var __defProp$
|
|
3929
|
-
var __defNormalProp$
|
|
3930
|
-
var __publicField$
|
|
3931
|
-
__defNormalProp$
|
|
3888
|
+
var __defProp$R = Object.defineProperty;
|
|
3889
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3890
|
+
var __publicField$R = (obj, key, value) => {
|
|
3891
|
+
__defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3932
3892
|
return value;
|
|
3933
3893
|
};
|
|
3934
3894
|
class CheckoutFinish {
|
|
3935
3895
|
constructor(page) {
|
|
3936
3896
|
this.page = page;
|
|
3937
|
-
__publicField$
|
|
3938
|
-
__publicField$
|
|
3939
|
-
__publicField$
|
|
3940
|
-
__publicField$
|
|
3941
|
-
__publicField$
|
|
3942
|
-
__publicField$
|
|
3897
|
+
__publicField$R(this, "headline");
|
|
3898
|
+
__publicField$R(this, "orderNumberText");
|
|
3899
|
+
__publicField$R(this, "grandTotalPrice");
|
|
3900
|
+
__publicField$R(this, "taxPrice");
|
|
3901
|
+
__publicField$R(this, "cartLineItemImages");
|
|
3902
|
+
__publicField$R(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3943
3903
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3944
3904
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3945
3905
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3968,16 +3928,16 @@ class CheckoutFinish {
|
|
|
3968
3928
|
}
|
|
3969
3929
|
}
|
|
3970
3930
|
|
|
3971
|
-
var __defProp$
|
|
3972
|
-
var __defNormalProp$
|
|
3973
|
-
var __publicField$
|
|
3974
|
-
__defNormalProp$
|
|
3931
|
+
var __defProp$Q = Object.defineProperty;
|
|
3932
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3933
|
+
var __publicField$Q = (obj, key, value) => {
|
|
3934
|
+
__defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3975
3935
|
return value;
|
|
3976
3936
|
};
|
|
3977
3937
|
class CheckoutRegister {
|
|
3978
3938
|
constructor(page) {
|
|
3979
3939
|
this.page = page;
|
|
3980
|
-
__publicField$
|
|
3940
|
+
__publicField$Q(this, "cartLineItemImages");
|
|
3981
3941
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3982
3942
|
}
|
|
3983
3943
|
url() {
|
|
@@ -3985,26 +3945,26 @@ class CheckoutRegister {
|
|
|
3985
3945
|
}
|
|
3986
3946
|
}
|
|
3987
3947
|
|
|
3988
|
-
var __defProp$
|
|
3989
|
-
var __defNormalProp$
|
|
3990
|
-
var __publicField$
|
|
3991
|
-
__defNormalProp$
|
|
3948
|
+
var __defProp$P = Object.defineProperty;
|
|
3949
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3950
|
+
var __publicField$P = (obj, key, value) => {
|
|
3951
|
+
__defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3992
3952
|
return value;
|
|
3993
3953
|
};
|
|
3994
3954
|
class Account {
|
|
3995
3955
|
constructor(page, instanceMeta) {
|
|
3996
3956
|
this.page = page;
|
|
3997
3957
|
this.instanceMeta = instanceMeta;
|
|
3998
|
-
__publicField$
|
|
3999
|
-
__publicField$
|
|
4000
|
-
__publicField$
|
|
4001
|
-
__publicField$
|
|
4002
|
-
__publicField$
|
|
4003
|
-
__publicField$
|
|
4004
|
-
__publicField$
|
|
4005
|
-
__publicField$
|
|
4006
|
-
__publicField$
|
|
4007
|
-
__publicField$
|
|
3958
|
+
__publicField$P(this, "headline");
|
|
3959
|
+
__publicField$P(this, "personalDataCardTitle");
|
|
3960
|
+
__publicField$P(this, "paymentMethodCardTitle");
|
|
3961
|
+
__publicField$P(this, "billingAddressCardTitle");
|
|
3962
|
+
__publicField$P(this, "shippingAddressCardTitle");
|
|
3963
|
+
__publicField$P(this, "newsletterCheckbox");
|
|
3964
|
+
__publicField$P(this, "newsletterRegistrationSuccessMessage");
|
|
3965
|
+
__publicField$P(this, "customerGroupRequestMessage");
|
|
3966
|
+
__publicField$P(this, "cannotDeliverToCountryAlert");
|
|
3967
|
+
__publicField$P(this, "shippingToAddressNotPossibleAlert");
|
|
4008
3968
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
4009
3969
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
4010
3970
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -4028,57 +3988,57 @@ class Account {
|
|
|
4028
3988
|
}
|
|
4029
3989
|
}
|
|
4030
3990
|
|
|
4031
|
-
var __defProp$
|
|
4032
|
-
var __defNormalProp$
|
|
4033
|
-
var __publicField$
|
|
4034
|
-
__defNormalProp$
|
|
3991
|
+
var __defProp$O = Object.defineProperty;
|
|
3992
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3993
|
+
var __publicField$O = (obj, key, value) => {
|
|
3994
|
+
__defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4035
3995
|
return value;
|
|
4036
3996
|
};
|
|
4037
3997
|
class AccountLogin {
|
|
4038
3998
|
constructor(page) {
|
|
4039
3999
|
this.page = page;
|
|
4040
|
-
__publicField$
|
|
4041
|
-
__publicField$
|
|
4042
|
-
__publicField$
|
|
4043
|
-
__publicField$
|
|
4044
|
-
__publicField$
|
|
4045
|
-
__publicField$
|
|
4046
|
-
__publicField$
|
|
4047
|
-
__publicField$
|
|
4000
|
+
__publicField$O(this, "emailInput");
|
|
4001
|
+
__publicField$O(this, "passwordInput");
|
|
4002
|
+
__publicField$O(this, "forgotPasswordLink");
|
|
4003
|
+
__publicField$O(this, "loginButton");
|
|
4004
|
+
__publicField$O(this, "logoutLink");
|
|
4005
|
+
__publicField$O(this, "successAlert");
|
|
4006
|
+
__publicField$O(this, "invalidCredentialsAlert");
|
|
4007
|
+
__publicField$O(this, "passwordUpdatedAlert");
|
|
4048
4008
|
// Inputs for registration
|
|
4049
|
-
__publicField$
|
|
4050
|
-
__publicField$
|
|
4051
|
-
__publicField$
|
|
4052
|
-
__publicField$
|
|
4053
|
-
__publicField$
|
|
4054
|
-
__publicField$
|
|
4055
|
-
__publicField$
|
|
4056
|
-
__publicField$
|
|
4057
|
-
__publicField$
|
|
4058
|
-
__publicField$
|
|
4059
|
-
__publicField$
|
|
4060
|
-
__publicField$
|
|
4061
|
-
__publicField$
|
|
4062
|
-
__publicField$
|
|
4063
|
-
__publicField$
|
|
4064
|
-
__publicField$
|
|
4009
|
+
__publicField$O(this, "personalFormArea");
|
|
4010
|
+
__publicField$O(this, "billingAddressFormArea");
|
|
4011
|
+
__publicField$O(this, "accountTypeSelect");
|
|
4012
|
+
__publicField$O(this, "salutationSelect");
|
|
4013
|
+
__publicField$O(this, "firstNameInput");
|
|
4014
|
+
__publicField$O(this, "lastNameInput");
|
|
4015
|
+
__publicField$O(this, "companyInput");
|
|
4016
|
+
__publicField$O(this, "departmentInput");
|
|
4017
|
+
__publicField$O(this, "vatRegNoInput");
|
|
4018
|
+
__publicField$O(this, "registerEmailInput");
|
|
4019
|
+
__publicField$O(this, "registerPasswordInput");
|
|
4020
|
+
__publicField$O(this, "streetAddressInput");
|
|
4021
|
+
__publicField$O(this, "cityInput");
|
|
4022
|
+
__publicField$O(this, "countryInput");
|
|
4023
|
+
__publicField$O(this, "postalCodeInput");
|
|
4024
|
+
__publicField$O(this, "registerButton");
|
|
4065
4025
|
// Inputs for reCaptcha
|
|
4066
|
-
__publicField$
|
|
4067
|
-
__publicField$
|
|
4068
|
-
__publicField$
|
|
4069
|
-
__publicField$
|
|
4070
|
-
__publicField$
|
|
4026
|
+
__publicField$O(this, "greCaptchaV2Container");
|
|
4027
|
+
__publicField$O(this, "greCaptchaV2Input");
|
|
4028
|
+
__publicField$O(this, "greCaptchaV3Input");
|
|
4029
|
+
__publicField$O(this, "greCaptchaProtectionInformation");
|
|
4030
|
+
__publicField$O(this, "greCaptchaBadge");
|
|
4071
4031
|
//Input for shipping address
|
|
4072
|
-
__publicField$
|
|
4073
|
-
__publicField$
|
|
4074
|
-
__publicField$
|
|
4075
|
-
__publicField$
|
|
4076
|
-
__publicField$
|
|
4077
|
-
__publicField$
|
|
4078
|
-
__publicField$
|
|
4079
|
-
__publicField$
|
|
4080
|
-
__publicField$
|
|
4081
|
-
__publicField$
|
|
4032
|
+
__publicField$O(this, "differentShippingAddressCheckbox");
|
|
4033
|
+
__publicField$O(this, "registerShippingAddressFormArea");
|
|
4034
|
+
__publicField$O(this, "shippingAddressSalutationSelect");
|
|
4035
|
+
__publicField$O(this, "shippingAddressFirstNameInput");
|
|
4036
|
+
__publicField$O(this, "shippingAddressLastNameInput");
|
|
4037
|
+
__publicField$O(this, "shippingAddressStreetAddressInput");
|
|
4038
|
+
__publicField$O(this, "shippingAddressCityInput");
|
|
4039
|
+
__publicField$O(this, "shippingAddressCountryInput");
|
|
4040
|
+
__publicField$O(this, "shippingAddressPostalCodeInput");
|
|
4041
|
+
__publicField$O(this, "shippingAddressStateInput");
|
|
4082
4042
|
this.emailInput = page.getByLabel("Your email address");
|
|
4083
4043
|
this.passwordInput = page.getByLabel("Your password");
|
|
4084
4044
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -4128,26 +4088,26 @@ class AccountLogin {
|
|
|
4128
4088
|
}
|
|
4129
4089
|
}
|
|
4130
4090
|
|
|
4131
|
-
var __defProp$
|
|
4132
|
-
var __defNormalProp$
|
|
4133
|
-
var __publicField$
|
|
4134
|
-
__defNormalProp$
|
|
4091
|
+
var __defProp$N = Object.defineProperty;
|
|
4092
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4093
|
+
var __publicField$N = (obj, key, value) => {
|
|
4094
|
+
__defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4135
4095
|
return value;
|
|
4136
4096
|
};
|
|
4137
4097
|
class AccountRecover {
|
|
4138
4098
|
constructor(page) {
|
|
4139
4099
|
this.page = page;
|
|
4140
|
-
__publicField$
|
|
4141
|
-
__publicField$
|
|
4142
|
-
__publicField$
|
|
4143
|
-
__publicField$
|
|
4144
|
-
__publicField$
|
|
4145
|
-
__publicField$
|
|
4146
|
-
__publicField$
|
|
4147
|
-
__publicField$
|
|
4148
|
-
__publicField$
|
|
4149
|
-
__publicField$
|
|
4150
|
-
__publicField$
|
|
4100
|
+
__publicField$N(this, "passwordRecoveryForm");
|
|
4101
|
+
__publicField$N(this, "title");
|
|
4102
|
+
__publicField$N(this, "subtitle");
|
|
4103
|
+
__publicField$N(this, "emailInput");
|
|
4104
|
+
__publicField$N(this, "requestEmailButton");
|
|
4105
|
+
__publicField$N(this, "backButton");
|
|
4106
|
+
__publicField$N(this, "passwordResetEmailSentMessage");
|
|
4107
|
+
__publicField$N(this, "newPasswordInput");
|
|
4108
|
+
__publicField$N(this, "newPasswordConfirmInput");
|
|
4109
|
+
__publicField$N(this, "changePasswordButton");
|
|
4110
|
+
__publicField$N(this, "invalidLinkMessage");
|
|
4151
4111
|
this.passwordRecoveryForm = page.locator(".account-recover-password-form");
|
|
4152
4112
|
const cardTitle = this.passwordRecoveryForm.locator(".card-title");
|
|
4153
4113
|
this.title = cardTitle.getByText("Password recovery");
|
|
@@ -4169,36 +4129,36 @@ class AccountRecover {
|
|
|
4169
4129
|
}
|
|
4170
4130
|
}
|
|
4171
4131
|
|
|
4172
|
-
var __defProp$
|
|
4173
|
-
var __defNormalProp$
|
|
4174
|
-
var __publicField$
|
|
4175
|
-
__defNormalProp$
|
|
4132
|
+
var __defProp$M = Object.defineProperty;
|
|
4133
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4134
|
+
var __publicField$M = (obj, key, value) => {
|
|
4135
|
+
__defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4176
4136
|
return value;
|
|
4177
4137
|
};
|
|
4178
4138
|
class AccountProfile {
|
|
4179
4139
|
constructor(page, instanceMeta) {
|
|
4180
4140
|
this.page = page;
|
|
4181
4141
|
this.instanceMeta = instanceMeta;
|
|
4182
|
-
__publicField$
|
|
4183
|
-
__publicField$
|
|
4184
|
-
__publicField$
|
|
4185
|
-
__publicField$
|
|
4186
|
-
__publicField$
|
|
4187
|
-
__publicField$
|
|
4188
|
-
__publicField$
|
|
4189
|
-
__publicField$
|
|
4190
|
-
__publicField$
|
|
4191
|
-
__publicField$
|
|
4192
|
-
__publicField$
|
|
4193
|
-
__publicField$
|
|
4194
|
-
__publicField$
|
|
4195
|
-
__publicField$
|
|
4196
|
-
__publicField$
|
|
4197
|
-
__publicField$
|
|
4198
|
-
__publicField$
|
|
4199
|
-
__publicField$
|
|
4200
|
-
__publicField$
|
|
4201
|
-
__publicField$
|
|
4142
|
+
__publicField$M(this, "salutationSelect");
|
|
4143
|
+
__publicField$M(this, "firstNameInput");
|
|
4144
|
+
__publicField$M(this, "lastNameInput");
|
|
4145
|
+
__publicField$M(this, "saveProfileButton");
|
|
4146
|
+
__publicField$M(this, "changeEmailButton");
|
|
4147
|
+
__publicField$M(this, "emailAddressInput");
|
|
4148
|
+
__publicField$M(this, "emailAddressConfirmInput");
|
|
4149
|
+
__publicField$M(this, "emailConfirmPasswordInput");
|
|
4150
|
+
__publicField$M(this, "saveEmailAddressButton");
|
|
4151
|
+
__publicField$M(this, "changePasswordButton");
|
|
4152
|
+
__publicField$M(this, "newPasswordInput");
|
|
4153
|
+
__publicField$M(this, "newPasswordConfirmInput");
|
|
4154
|
+
__publicField$M(this, "currentPasswordInput");
|
|
4155
|
+
__publicField$M(this, "saveNewPasswordButton");
|
|
4156
|
+
__publicField$M(this, "loginDataEmailAddress");
|
|
4157
|
+
__publicField$M(this, "emailUpdateMessage");
|
|
4158
|
+
__publicField$M(this, "passwordUpdateMessage");
|
|
4159
|
+
__publicField$M(this, "emailValidationAlert");
|
|
4160
|
+
__publicField$M(this, "emailUpdateFailureAlert");
|
|
4161
|
+
__publicField$M(this, "passwordUpdateFailureAlert");
|
|
4202
4162
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
4203
4163
|
this.firstNameInput = page.getByLabel("First name");
|
|
4204
4164
|
this.lastNameInput = page.getByLabel("Last name");
|
|
@@ -4238,27 +4198,33 @@ class AccountProfile {
|
|
|
4238
4198
|
}
|
|
4239
4199
|
}
|
|
4240
4200
|
|
|
4241
|
-
var __defProp$
|
|
4242
|
-
var __defNormalProp$
|
|
4243
|
-
var __publicField$
|
|
4244
|
-
__defNormalProp$
|
|
4201
|
+
var __defProp$L = Object.defineProperty;
|
|
4202
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4203
|
+
var __publicField$L = (obj, key, value) => {
|
|
4204
|
+
__defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4245
4205
|
return value;
|
|
4246
4206
|
};
|
|
4247
4207
|
class AccountOrder {
|
|
4248
4208
|
constructor(page) {
|
|
4249
4209
|
this.page = page;
|
|
4250
|
-
__publicField$
|
|
4251
|
-
__publicField$
|
|
4252
|
-
__publicField$
|
|
4253
|
-
__publicField$
|
|
4254
|
-
__publicField$
|
|
4255
|
-
__publicField$
|
|
4210
|
+
__publicField$L(this, "cartLineItemImages");
|
|
4211
|
+
__publicField$L(this, "orderExpandButton");
|
|
4212
|
+
__publicField$L(this, "digitalProductDownloadButton");
|
|
4213
|
+
__publicField$L(this, "dialogOrderCancel");
|
|
4214
|
+
__publicField$L(this, "dialogOrderCancelButton");
|
|
4215
|
+
__publicField$L(this, "dialogBackButton");
|
|
4216
|
+
__publicField$L(this, "orderDetails");
|
|
4217
|
+
__publicField$L(this, "invoiceHTML");
|
|
4218
|
+
__publicField$L(this, "creditItem");
|
|
4256
4219
|
this.orderExpandButton = page.getByRole("button", { name: /Expand|Show details/ }).first();
|
|
4257
4220
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
4258
4221
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
4259
4222
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
4260
4223
|
this.dialogOrderCancelButton = this.dialogOrderCancel.getByRole("button", { name: "Cancel order" });
|
|
4261
4224
|
this.dialogBackButton = this.dialogOrderCancel.getByRole("button", { name: "Back" });
|
|
4225
|
+
this.orderDetails = page.locator(".order-item-detail");
|
|
4226
|
+
this.invoiceHTML = page.getByRole("link", { name: ".html" });
|
|
4227
|
+
this.creditItem = page.locator('.line-item:has-text("CreditItem")');
|
|
4262
4228
|
}
|
|
4263
4229
|
async getOrderByOrderNumber(orderNumber) {
|
|
4264
4230
|
const orderItem = this.page.getByRole("listitem").getByLabel(`Order number ${orderNumber}`);
|
|
@@ -4300,27 +4266,27 @@ class AccountOrder {
|
|
|
4300
4266
|
}
|
|
4301
4267
|
}
|
|
4302
4268
|
|
|
4303
|
-
var __defProp$
|
|
4304
|
-
var __defNormalProp$
|
|
4305
|
-
var __publicField$
|
|
4306
|
-
__defNormalProp$
|
|
4269
|
+
var __defProp$K = Object.defineProperty;
|
|
4270
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4271
|
+
var __publicField$K = (obj, key, value) => {
|
|
4272
|
+
__defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4307
4273
|
return value;
|
|
4308
4274
|
};
|
|
4309
4275
|
class AccountAddresses {
|
|
4310
4276
|
constructor(page, instanceMeta) {
|
|
4311
4277
|
this.page = page;
|
|
4312
4278
|
this.instanceMeta = instanceMeta;
|
|
4313
|
-
__publicField$
|
|
4314
|
-
__publicField$
|
|
4315
|
-
__publicField$
|
|
4316
|
-
__publicField$
|
|
4317
|
-
__publicField$
|
|
4318
|
-
__publicField$
|
|
4319
|
-
__publicField$
|
|
4320
|
-
__publicField$
|
|
4321
|
-
__publicField$
|
|
4322
|
-
__publicField$
|
|
4323
|
-
__publicField$
|
|
4279
|
+
__publicField$K(this, "addNewAddressButton");
|
|
4280
|
+
__publicField$K(this, "editBillingAddressButton");
|
|
4281
|
+
__publicField$K(this, "editShippingAddressButton");
|
|
4282
|
+
__publicField$K(this, "useDefaultBillingAddressButton");
|
|
4283
|
+
__publicField$K(this, "useDefaultShippingAddressButton");
|
|
4284
|
+
__publicField$K(this, "deliveryNotPossibleAlert");
|
|
4285
|
+
__publicField$K(this, "availableAddresses");
|
|
4286
|
+
__publicField$K(this, "addressDropdownButton");
|
|
4287
|
+
__publicField$K(this, "addressDropdownButtons");
|
|
4288
|
+
__publicField$K(this, "availableAddressesUseAsBillingAddress");
|
|
4289
|
+
__publicField$K(this, "availableAddressesUseAsShippingAddress");
|
|
4324
4290
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
4325
4291
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
4326
4292
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -4342,19 +4308,19 @@ class AccountAddresses {
|
|
|
4342
4308
|
}
|
|
4343
4309
|
}
|
|
4344
4310
|
|
|
4345
|
-
var __defProp$
|
|
4346
|
-
var __defNormalProp$
|
|
4347
|
-
var __publicField$
|
|
4348
|
-
__defNormalProp$
|
|
4311
|
+
var __defProp$J = Object.defineProperty;
|
|
4312
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4313
|
+
var __publicField$J = (obj, key, value) => {
|
|
4314
|
+
__defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4349
4315
|
return value;
|
|
4350
4316
|
};
|
|
4351
4317
|
class AccountPayment {
|
|
4352
4318
|
constructor(page) {
|
|
4353
4319
|
this.page = page;
|
|
4354
|
-
__publicField$
|
|
4355
|
-
__publicField$
|
|
4356
|
-
__publicField$
|
|
4357
|
-
__publicField$
|
|
4320
|
+
__publicField$J(this, "cashOnDeliveryOption");
|
|
4321
|
+
__publicField$J(this, "paidInAdvanceOption");
|
|
4322
|
+
__publicField$J(this, "invoiceOption");
|
|
4323
|
+
__publicField$J(this, "changeDefaultPaymentButton");
|
|
4358
4324
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
4359
4325
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
4360
4326
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -4365,17 +4331,17 @@ class AccountPayment {
|
|
|
4365
4331
|
}
|
|
4366
4332
|
}
|
|
4367
4333
|
|
|
4368
|
-
var __defProp$
|
|
4369
|
-
var __defNormalProp$
|
|
4370
|
-
var __publicField$
|
|
4371
|
-
__defNormalProp$
|
|
4334
|
+
var __defProp$I = Object.defineProperty;
|
|
4335
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4336
|
+
var __publicField$I = (obj, key, value) => {
|
|
4337
|
+
__defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4372
4338
|
return value;
|
|
4373
4339
|
};
|
|
4374
4340
|
class Search {
|
|
4375
4341
|
constructor(page) {
|
|
4376
4342
|
this.page = page;
|
|
4377
|
-
__publicField$
|
|
4378
|
-
__publicField$
|
|
4343
|
+
__publicField$I(this, "headline");
|
|
4344
|
+
__publicField$I(this, "productImages");
|
|
4379
4345
|
this.headline = page.locator("h1.search-headline");
|
|
4380
4346
|
this.productImages = page.locator(".product-image-wrapper");
|
|
4381
4347
|
}
|
|
@@ -4384,25 +4350,25 @@ class Search {
|
|
|
4384
4350
|
}
|
|
4385
4351
|
}
|
|
4386
4352
|
|
|
4387
|
-
var __defProp$
|
|
4388
|
-
var __defNormalProp$
|
|
4389
|
-
var __publicField$
|
|
4390
|
-
__defNormalProp$
|
|
4353
|
+
var __defProp$H = Object.defineProperty;
|
|
4354
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4355
|
+
var __publicField$H = (obj, key, value) => {
|
|
4356
|
+
__defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4391
4357
|
return value;
|
|
4392
4358
|
};
|
|
4393
4359
|
class SearchSuggest extends Home {
|
|
4394
4360
|
constructor(page) {
|
|
4395
4361
|
super(page);
|
|
4396
4362
|
this.page = page;
|
|
4397
|
-
__publicField$
|
|
4398
|
-
__publicField$
|
|
4399
|
-
__publicField$
|
|
4400
|
-
__publicField$
|
|
4401
|
-
__publicField$
|
|
4402
|
-
__publicField$
|
|
4403
|
-
__publicField$
|
|
4404
|
-
__publicField$
|
|
4405
|
-
__publicField$
|
|
4363
|
+
__publicField$H(this, "searchSuggestLineItemImages");
|
|
4364
|
+
__publicField$H(this, "searchInput");
|
|
4365
|
+
__publicField$H(this, "searchIcon");
|
|
4366
|
+
__publicField$H(this, "searchSuggestNoResult");
|
|
4367
|
+
__publicField$H(this, "searchSuggestLineItemName");
|
|
4368
|
+
__publicField$H(this, "searchSuggestLineItemPrice");
|
|
4369
|
+
__publicField$H(this, "searchSuggestTotalLink");
|
|
4370
|
+
__publicField$H(this, "searchResultTotal");
|
|
4371
|
+
__publicField$H(this, "searchHeadline");
|
|
4406
4372
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
4407
4373
|
this.searchInput = page.locator(".header-search-input");
|
|
4408
4374
|
this.searchIcon = page.locator(".header-search-icon");
|
|
@@ -4432,31 +4398,31 @@ class CustomRegister extends AccountLogin {
|
|
|
4432
4398
|
}
|
|
4433
4399
|
}
|
|
4434
4400
|
|
|
4435
|
-
var __defProp$
|
|
4436
|
-
var __defNormalProp$
|
|
4437
|
-
var __publicField$
|
|
4438
|
-
__defNormalProp$
|
|
4401
|
+
var __defProp$G = Object.defineProperty;
|
|
4402
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4403
|
+
var __publicField$G = (obj, key, value) => {
|
|
4404
|
+
__defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4439
4405
|
return value;
|
|
4440
4406
|
};
|
|
4441
4407
|
class CheckoutOrderEdit {
|
|
4442
4408
|
constructor(page) {
|
|
4443
4409
|
this.page = page;
|
|
4444
|
-
__publicField$
|
|
4445
|
-
__publicField$
|
|
4446
|
-
__publicField$
|
|
4447
|
-
__publicField$
|
|
4448
|
-
__publicField$
|
|
4410
|
+
__publicField$G(this, "completePaymentButton");
|
|
4411
|
+
__publicField$G(this, "orderCancelButton");
|
|
4412
|
+
__publicField$G(this, "dialogOrderCancel");
|
|
4413
|
+
__publicField$G(this, "dialogOrderCancelButton");
|
|
4414
|
+
__publicField$G(this, "dialogBackButton");
|
|
4449
4415
|
/**
|
|
4450
4416
|
* Payment options
|
|
4451
4417
|
*/
|
|
4452
|
-
__publicField$
|
|
4453
|
-
__publicField$
|
|
4454
|
-
__publicField$
|
|
4418
|
+
__publicField$G(this, "paymentCashOnDelivery");
|
|
4419
|
+
__publicField$G(this, "paymentPaidInAdvance");
|
|
4420
|
+
__publicField$G(this, "paymentInvoice");
|
|
4455
4421
|
/**
|
|
4456
4422
|
* Shipping options
|
|
4457
4423
|
*/
|
|
4458
|
-
__publicField$
|
|
4459
|
-
__publicField$
|
|
4424
|
+
__publicField$G(this, "shippingStandard");
|
|
4425
|
+
__publicField$G(this, "shippingExpress");
|
|
4460
4426
|
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
4461
4427
|
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
4462
4428
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
@@ -4481,26 +4447,26 @@ class CheckoutOrderEdit {
|
|
|
4481
4447
|
}
|
|
4482
4448
|
}
|
|
4483
4449
|
|
|
4484
|
-
var __defProp$
|
|
4485
|
-
var __defNormalProp$
|
|
4486
|
-
var __publicField$
|
|
4487
|
-
__defNormalProp$
|
|
4450
|
+
var __defProp$F = Object.defineProperty;
|
|
4451
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4452
|
+
var __publicField$F = (obj, key, value) => {
|
|
4453
|
+
__defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4488
4454
|
return value;
|
|
4489
4455
|
};
|
|
4490
4456
|
class AccountAddressCreate {
|
|
4491
4457
|
constructor(page) {
|
|
4492
4458
|
this.page = page;
|
|
4493
|
-
__publicField$
|
|
4494
|
-
__publicField$
|
|
4495
|
-
__publicField$
|
|
4496
|
-
__publicField$
|
|
4497
|
-
__publicField$
|
|
4498
|
-
__publicField$
|
|
4499
|
-
__publicField$
|
|
4500
|
-
__publicField$
|
|
4501
|
-
__publicField$
|
|
4502
|
-
__publicField$
|
|
4503
|
-
__publicField$
|
|
4459
|
+
__publicField$F(this, "salutationDropdown");
|
|
4460
|
+
__publicField$F(this, "firstNameInput");
|
|
4461
|
+
__publicField$F(this, "lastNameInput");
|
|
4462
|
+
__publicField$F(this, "companyInput");
|
|
4463
|
+
__publicField$F(this, "departmentInput");
|
|
4464
|
+
__publicField$F(this, "streetInput");
|
|
4465
|
+
__publicField$F(this, "zipcodeInput");
|
|
4466
|
+
__publicField$F(this, "cityInput");
|
|
4467
|
+
__publicField$F(this, "countryDropdown");
|
|
4468
|
+
__publicField$F(this, "saveAddressButton");
|
|
4469
|
+
__publicField$F(this, "stateDropdown");
|
|
4504
4470
|
this.salutationDropdown = page.getByRole("combobox", { name: "Salutation" });
|
|
4505
4471
|
this.firstNameInput = page.getByRole("textbox", { name: "First name" });
|
|
4506
4472
|
this.lastNameInput = page.getByRole("textbox", { name: "Last name" });
|
|
@@ -4518,19 +4484,19 @@ class AccountAddressCreate {
|
|
|
4518
4484
|
}
|
|
4519
4485
|
}
|
|
4520
4486
|
|
|
4521
|
-
var __defProp$
|
|
4522
|
-
var __defNormalProp$
|
|
4523
|
-
var __publicField$
|
|
4524
|
-
__defNormalProp$
|
|
4487
|
+
var __defProp$E = Object.defineProperty;
|
|
4488
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4489
|
+
var __publicField$E = (obj, key, value) => {
|
|
4490
|
+
__defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4525
4491
|
return value;
|
|
4526
4492
|
};
|
|
4527
4493
|
class PageNotFound {
|
|
4528
4494
|
constructor(page) {
|
|
4529
4495
|
this.page = page;
|
|
4530
|
-
__publicField$
|
|
4531
|
-
__publicField$
|
|
4532
|
-
__publicField$
|
|
4533
|
-
__publicField$
|
|
4496
|
+
__publicField$E(this, "pageNotFoundImage");
|
|
4497
|
+
__publicField$E(this, "headline");
|
|
4498
|
+
__publicField$E(this, "pageNotFoundMessage");
|
|
4499
|
+
__publicField$E(this, "backToShopButton");
|
|
4534
4500
|
this.pageNotFoundImage = page.getByAltText("Page not found");
|
|
4535
4501
|
this.headline = page.getByRole("heading", { name: "Page not found" });
|
|
4536
4502
|
this.pageNotFoundMessage = page.getByText(`We are sorry, the page you're looking for could not be found. It may no longer exist or may have been moved.`);
|
|
@@ -4541,10 +4507,10 @@ class PageNotFound {
|
|
|
4541
4507
|
}
|
|
4542
4508
|
}
|
|
4543
4509
|
|
|
4544
|
-
var __defProp$
|
|
4545
|
-
var __defNormalProp$
|
|
4546
|
-
var __publicField$
|
|
4547
|
-
__defNormalProp$
|
|
4510
|
+
var __defProp$D = Object.defineProperty;
|
|
4511
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4512
|
+
var __publicField$D = (obj, key, value) => {
|
|
4513
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4548
4514
|
return value;
|
|
4549
4515
|
};
|
|
4550
4516
|
class ContactForm extends Home {
|
|
@@ -4555,35 +4521,35 @@ class ContactForm extends Home {
|
|
|
4555
4521
|
/**
|
|
4556
4522
|
* @deprecated Compatible until shopware v6.6.x, will be removed in 6.8.0.0, use 'contactWrapper' instead
|
|
4557
4523
|
*/
|
|
4558
|
-
__publicField$
|
|
4524
|
+
__publicField$D(this, "contactModal");
|
|
4559
4525
|
/**
|
|
4560
4526
|
* @deprecated Compatible until shopware v6.6.x, will be removed in 6.8.0.0, use 'contactSuccessMessage' instead
|
|
4561
4527
|
*/
|
|
4562
|
-
__publicField$
|
|
4563
|
-
__publicField$
|
|
4564
|
-
__publicField$
|
|
4565
|
-
__publicField$
|
|
4566
|
-
__publicField$
|
|
4567
|
-
__publicField$
|
|
4568
|
-
__publicField$
|
|
4569
|
-
__publicField$
|
|
4570
|
-
__publicField$
|
|
4571
|
-
__publicField$
|
|
4572
|
-
__publicField$
|
|
4573
|
-
__publicField$
|
|
4574
|
-
__publicField$
|
|
4575
|
-
__publicField$
|
|
4576
|
-
__publicField$
|
|
4528
|
+
__publicField$D(this, "contactSuccessModal");
|
|
4529
|
+
__publicField$D(this, "contactWrapper");
|
|
4530
|
+
__publicField$D(this, "salutationSelect");
|
|
4531
|
+
__publicField$D(this, "firstNameInput");
|
|
4532
|
+
__publicField$D(this, "lastNameInput");
|
|
4533
|
+
__publicField$D(this, "emailInput");
|
|
4534
|
+
__publicField$D(this, "phoneInput");
|
|
4535
|
+
__publicField$D(this, "subjectInput");
|
|
4536
|
+
__publicField$D(this, "commentInput");
|
|
4537
|
+
__publicField$D(this, "privacyPolicyCheckbox");
|
|
4538
|
+
__publicField$D(this, "submitButton");
|
|
4539
|
+
__publicField$D(this, "contactSuccessMessage");
|
|
4540
|
+
__publicField$D(this, "cardTitle");
|
|
4541
|
+
__publicField$D(this, "formFieldFeedback");
|
|
4542
|
+
__publicField$D(this, "formAlert");
|
|
4577
4543
|
/**
|
|
4578
4544
|
* Captcha locators
|
|
4579
4545
|
*/
|
|
4580
|
-
__publicField$
|
|
4581
|
-
__publicField$
|
|
4582
|
-
__publicField$
|
|
4583
|
-
__publicField$
|
|
4584
|
-
__publicField$
|
|
4585
|
-
__publicField$
|
|
4586
|
-
__publicField$
|
|
4546
|
+
__publicField$D(this, "basicCaptcha");
|
|
4547
|
+
__publicField$D(this, "basicCaptchaImage");
|
|
4548
|
+
__publicField$D(this, "basicCaptchaRefreshButton");
|
|
4549
|
+
__publicField$D(this, "basicCaptchaInput");
|
|
4550
|
+
__publicField$D(this, "greCaptchaV2Container");
|
|
4551
|
+
__publicField$D(this, "greCaptchaV2Input");
|
|
4552
|
+
__publicField$D(this, "greCaptchaProtectionInformation");
|
|
4587
4553
|
this.contactWrapper = this.page.locator(".card").filter({ has: this.page.getByText("Contact") });
|
|
4588
4554
|
this.formFieldFeedback = this.contactWrapper.locator(".form-field-feedback");
|
|
4589
4555
|
this.formAlert = this.page.getByRole("alert");
|
|
@@ -4618,19 +4584,19 @@ class ContactForm extends Home {
|
|
|
4618
4584
|
}
|
|
4619
4585
|
}
|
|
4620
4586
|
|
|
4621
|
-
var __defProp$
|
|
4622
|
-
var __defNormalProp$
|
|
4623
|
-
var __publicField$
|
|
4624
|
-
__defNormalProp$
|
|
4587
|
+
var __defProp$C = Object.defineProperty;
|
|
4588
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4589
|
+
var __publicField$C = (obj, key, value) => {
|
|
4590
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4625
4591
|
return value;
|
|
4626
4592
|
};
|
|
4627
4593
|
class Wishlist extends Home {
|
|
4628
4594
|
constructor(page) {
|
|
4629
4595
|
super(page);
|
|
4630
4596
|
this.page = page;
|
|
4631
|
-
__publicField$
|
|
4632
|
-
__publicField$
|
|
4633
|
-
__publicField$
|
|
4597
|
+
__publicField$C(this, "wishListHeader");
|
|
4598
|
+
__publicField$C(this, "removeAlert");
|
|
4599
|
+
__publicField$C(this, "emptyListing");
|
|
4634
4600
|
this.wishListHeader = page.locator(".wishlist-headline");
|
|
4635
4601
|
this.removeAlert = page.locator(".alert-success");
|
|
4636
4602
|
this.emptyListing = page.locator(".wishlist-listing-empty");
|
|
@@ -4649,20 +4615,20 @@ class Wishlist extends Home {
|
|
|
4649
4615
|
}
|
|
4650
4616
|
}
|
|
4651
4617
|
|
|
4652
|
-
var __defProp$
|
|
4653
|
-
var __defNormalProp$
|
|
4654
|
-
var __publicField$
|
|
4655
|
-
__defNormalProp$
|
|
4618
|
+
var __defProp$B = Object.defineProperty;
|
|
4619
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4620
|
+
var __publicField$B = (obj, key, value) => {
|
|
4621
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4656
4622
|
return value;
|
|
4657
4623
|
};
|
|
4658
4624
|
class Footer {
|
|
4659
4625
|
constructor(page) {
|
|
4660
4626
|
this.page = page;
|
|
4661
|
-
__publicField$
|
|
4662
|
-
__publicField$
|
|
4663
|
-
__publicField$
|
|
4664
|
-
__publicField$
|
|
4665
|
-
__publicField$
|
|
4627
|
+
__publicField$B(this, "footerHeadline");
|
|
4628
|
+
__publicField$B(this, "footerContent");
|
|
4629
|
+
__publicField$B(this, "footerHotline");
|
|
4630
|
+
__publicField$B(this, "footerContactForm");
|
|
4631
|
+
__publicField$B(this, "footerContactFormLink");
|
|
4666
4632
|
this.footerHeadline = page.locator(".footer-column-headline");
|
|
4667
4633
|
this.footerContent = page.locator(".footer-column-content-inner");
|
|
4668
4634
|
this.footerHotline = page.locator(".footer-contact-hotline");
|
|
@@ -4674,23 +4640,23 @@ class Footer {
|
|
|
4674
4640
|
}
|
|
4675
4641
|
}
|
|
4676
4642
|
|
|
4677
|
-
var __defProp$
|
|
4678
|
-
var __defNormalProp$
|
|
4679
|
-
var __publicField$
|
|
4680
|
-
__defNormalProp$
|
|
4643
|
+
var __defProp$A = Object.defineProperty;
|
|
4644
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4645
|
+
var __publicField$A = (obj, key, value) => {
|
|
4646
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4681
4647
|
return value;
|
|
4682
4648
|
};
|
|
4683
4649
|
class Header {
|
|
4684
4650
|
constructor(page) {
|
|
4685
4651
|
this.page = page;
|
|
4686
|
-
__publicField$
|
|
4687
|
-
__publicField$
|
|
4688
|
-
__publicField$
|
|
4689
|
-
__publicField$
|
|
4690
|
-
__publicField$
|
|
4652
|
+
__publicField$A(this, "mainNavigationLink");
|
|
4653
|
+
__publicField$A(this, "languagesDropdown");
|
|
4654
|
+
__publicField$A(this, "languagesMenuOptions");
|
|
4655
|
+
__publicField$A(this, "currenciesDropdown");
|
|
4656
|
+
__publicField$A(this, "currenciesMenuOptions");
|
|
4691
4657
|
//wishlist
|
|
4692
|
-
__publicField$
|
|
4693
|
-
__publicField$
|
|
4658
|
+
__publicField$A(this, "wishlistIcon");
|
|
4659
|
+
__publicField$A(this, "wishlistBasket");
|
|
4694
4660
|
this.mainNavigationLink = page.locator(".main-navigation-link-text");
|
|
4695
4661
|
this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
|
|
4696
4662
|
this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
|
|
@@ -4827,85 +4793,89 @@ async function getCustomFieldCardLocators(page, customFieldSetName, customFieldN
|
|
|
4827
4793
|
};
|
|
4828
4794
|
}
|
|
4829
4795
|
|
|
4830
|
-
var __defProp$
|
|
4831
|
-
var __defNormalProp$
|
|
4832
|
-
var __publicField$
|
|
4833
|
-
__defNormalProp$
|
|
4796
|
+
var __defProp$z = Object.defineProperty;
|
|
4797
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4798
|
+
var __publicField$z = (obj, key, value) => {
|
|
4799
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4834
4800
|
return value;
|
|
4835
4801
|
};
|
|
4836
4802
|
class ProductDetail {
|
|
4837
4803
|
constructor(page, instanceMeta) {
|
|
4838
4804
|
this.page = page;
|
|
4839
4805
|
this.instanceMeta = instanceMeta;
|
|
4806
|
+
__publicField$z(this, "contentView");
|
|
4807
|
+
__publicField$z(this, "productHeadline");
|
|
4840
4808
|
/**
|
|
4841
4809
|
* Save interactions
|
|
4842
4810
|
*/
|
|
4843
|
-
__publicField$
|
|
4844
|
-
__publicField$
|
|
4845
|
-
__publicField$
|
|
4811
|
+
__publicField$z(this, "savePhysicalProductButton");
|
|
4812
|
+
__publicField$z(this, "saveButtonLoadingSpinner");
|
|
4813
|
+
__publicField$z(this, "saveButtonCheckMark");
|
|
4846
4814
|
/**
|
|
4847
4815
|
* General Info
|
|
4848
4816
|
*/
|
|
4849
|
-
__publicField$
|
|
4817
|
+
__publicField$z(this, "manufacturerDropdownText");
|
|
4850
4818
|
/**
|
|
4851
4819
|
* Prices
|
|
4852
4820
|
*/
|
|
4853
|
-
__publicField$
|
|
4821
|
+
__publicField$z(this, "priceGrossInput");
|
|
4854
4822
|
/**
|
|
4855
4823
|
* Deliverability
|
|
4856
4824
|
*/
|
|
4857
|
-
__publicField$
|
|
4858
|
-
__publicField$
|
|
4825
|
+
__publicField$z(this, "stockInput");
|
|
4826
|
+
__publicField$z(this, "restockTimeInput");
|
|
4859
4827
|
/**
|
|
4860
4828
|
* Visibility
|
|
4861
4829
|
*/
|
|
4862
|
-
__publicField$
|
|
4863
|
-
__publicField$
|
|
4864
|
-
__publicField$
|
|
4830
|
+
__publicField$z(this, "activeForAllSalesChannelsToggle");
|
|
4831
|
+
__publicField$z(this, "tagsInput");
|
|
4832
|
+
__publicField$z(this, "saleChannelsInput");
|
|
4865
4833
|
/**
|
|
4866
4834
|
* Labelling
|
|
4867
4835
|
*/
|
|
4868
|
-
__publicField$
|
|
4836
|
+
__publicField$z(this, "releaseDateInput");
|
|
4869
4837
|
/**
|
|
4870
4838
|
* Media Upload interactions
|
|
4871
4839
|
*/
|
|
4872
|
-
__publicField$
|
|
4873
|
-
__publicField$
|
|
4874
|
-
__publicField$
|
|
4840
|
+
__publicField$z(this, "uploadMediaButton");
|
|
4841
|
+
__publicField$z(this, "coverImage");
|
|
4842
|
+
__publicField$z(this, "productImage");
|
|
4875
4843
|
/**
|
|
4876
4844
|
* Tabs
|
|
4877
4845
|
*/
|
|
4878
|
-
__publicField$
|
|
4879
|
-
__publicField$
|
|
4880
|
-
__publicField$
|
|
4881
|
-
__publicField$
|
|
4882
|
-
__publicField$
|
|
4883
|
-
__publicField$
|
|
4884
|
-
__publicField$
|
|
4846
|
+
__publicField$z(this, "variantsTabLink");
|
|
4847
|
+
__publicField$z(this, "specificationsTabLink");
|
|
4848
|
+
__publicField$z(this, "advancedPricingTabLink");
|
|
4849
|
+
__publicField$z(this, "layoutTabLink");
|
|
4850
|
+
__publicField$z(this, "crossSellingTabLink");
|
|
4851
|
+
__publicField$z(this, "SEOTabLink");
|
|
4852
|
+
__publicField$z(this, "reviewsTabLink");
|
|
4885
4853
|
/**
|
|
4886
4854
|
* Variants Generation
|
|
4887
4855
|
*/
|
|
4888
|
-
__publicField$
|
|
4889
|
-
__publicField$
|
|
4890
|
-
__publicField$
|
|
4891
|
-
__publicField$
|
|
4892
|
-
__publicField$
|
|
4856
|
+
__publicField$z(this, "generateVariantsButton");
|
|
4857
|
+
__publicField$z(this, "variantsModal");
|
|
4858
|
+
__publicField$z(this, "variantsModalHeadline");
|
|
4859
|
+
__publicField$z(this, "variantsNextButton");
|
|
4860
|
+
__publicField$z(this, "variantsSaveButton");
|
|
4893
4861
|
/**
|
|
4894
4862
|
* Property Selection
|
|
4895
4863
|
*/
|
|
4896
|
-
__publicField$
|
|
4897
|
-
__publicField$
|
|
4898
|
-
__publicField$
|
|
4899
|
-
__publicField$
|
|
4900
|
-
__publicField$
|
|
4901
|
-
__publicField$
|
|
4902
|
-
__publicField$
|
|
4903
|
-
__publicField$
|
|
4904
|
-
__publicField$
|
|
4864
|
+
__publicField$z(this, "propertyGroupColor");
|
|
4865
|
+
__publicField$z(this, "propertyGroupSize");
|
|
4866
|
+
__publicField$z(this, "propertyOptionGrid");
|
|
4867
|
+
__publicField$z(this, "propertyOptionColorBlue");
|
|
4868
|
+
__publicField$z(this, "propertyOptionColorRed");
|
|
4869
|
+
__publicField$z(this, "propertyOptionColorGreen");
|
|
4870
|
+
__publicField$z(this, "propertyOptionSizeSmall");
|
|
4871
|
+
__publicField$z(this, "propertyOptionSizeMedium");
|
|
4872
|
+
__publicField$z(this, "propertyOptionSizeLarge");
|
|
4905
4873
|
/**
|
|
4906
4874
|
* Cards
|
|
4907
4875
|
*/
|
|
4908
|
-
__publicField$
|
|
4876
|
+
__publicField$z(this, "customFieldCard");
|
|
4877
|
+
this.contentView = page.locator(".sw-desktop__content");
|
|
4878
|
+
this.productHeadline = page.locator(".smart-bar__header");
|
|
4909
4879
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
4910
4880
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
4911
4881
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
@@ -4973,29 +4943,47 @@ class ProductDetail {
|
|
|
4973
4943
|
}
|
|
4974
4944
|
}
|
|
4975
4945
|
|
|
4976
|
-
var __defProp$
|
|
4977
|
-
var __defNormalProp$
|
|
4978
|
-
var __publicField$
|
|
4979
|
-
__defNormalProp$
|
|
4946
|
+
var __defProp$y = Object.defineProperty;
|
|
4947
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4948
|
+
var __publicField$y = (obj, key, value) => {
|
|
4949
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4980
4950
|
return value;
|
|
4981
4951
|
};
|
|
4982
4952
|
class OrderDetail {
|
|
4983
4953
|
constructor(page, instanceMeta) {
|
|
4984
4954
|
this.page = page;
|
|
4985
4955
|
this.instanceMeta = instanceMeta;
|
|
4986
|
-
__publicField$
|
|
4987
|
-
__publicField$
|
|
4988
|
-
__publicField$
|
|
4989
|
-
__publicField$
|
|
4956
|
+
__publicField$y(this, "saveButton");
|
|
4957
|
+
__publicField$y(this, "dataGridContextButton");
|
|
4958
|
+
__publicField$y(this, "orderTag");
|
|
4959
|
+
__publicField$y(this, "lineItem");
|
|
4960
|
+
__publicField$y(this, "lineItemsTable");
|
|
4961
|
+
__publicField$y(this, "documentType");
|
|
4962
|
+
__publicField$y(this, "contextMenuButton");
|
|
4963
|
+
__publicField$y(this, "contextMenu");
|
|
4964
|
+
__publicField$y(this, "contextMenuSendDocument");
|
|
4965
|
+
__publicField$y(this, "sendDocumentModal");
|
|
4966
|
+
__publicField$y(this, "sendDocumentButton");
|
|
4967
|
+
__publicField$y(this, "itemsCardHeader");
|
|
4968
|
+
__publicField$y(this, "sentCheckmark");
|
|
4990
4969
|
/**
|
|
4991
4970
|
* Tabs
|
|
4992
4971
|
*/
|
|
4993
|
-
__publicField$
|
|
4994
|
-
__publicField$
|
|
4995
|
-
__publicField$
|
|
4972
|
+
__publicField$y(this, "generalTabLink");
|
|
4973
|
+
__publicField$y(this, "detailsTabLink");
|
|
4974
|
+
__publicField$y(this, "documentsTabLink");
|
|
4996
4975
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
4997
4976
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
4998
4977
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
4978
|
+
this.lineItem = page.locator(".sw-data-grid__row");
|
|
4979
|
+
this.lineItemsTable = page.locator(".sw-data-grid__table");
|
|
4980
|
+
this.documentType = page.locator(".sw-data-grid__cell--documentType-name");
|
|
4981
|
+
this.contextMenu = page.locator(".sw-context-menu");
|
|
4982
|
+
this.contextMenuSendDocument = this.contextMenu.getByText("Send document");
|
|
4983
|
+
this.contextMenuButton = page.getByLabel("Open actions menu");
|
|
4984
|
+
this.sendDocumentModal = page.locator(".sw-order-send-document-modal");
|
|
4985
|
+
this.sendDocumentButton = page.getByRole("button").getByText("Send document");
|
|
4986
|
+
this.sentCheckmark = page.locator(".icon--regular-checkmark-xs");
|
|
4999
4987
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5000
4988
|
this.itemsCardHeader = page.locator(".sw-card__header").getByText("Items");
|
|
5001
4989
|
} else {
|
|
@@ -5013,24 +5001,24 @@ class OrderDetail {
|
|
|
5013
5001
|
}
|
|
5014
5002
|
}
|
|
5015
5003
|
|
|
5016
|
-
var __defProp$
|
|
5017
|
-
var __defNormalProp$
|
|
5018
|
-
var __publicField$
|
|
5019
|
-
__defNormalProp$
|
|
5004
|
+
var __defProp$x = Object.defineProperty;
|
|
5005
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5006
|
+
var __publicField$x = (obj, key, value) => {
|
|
5007
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5020
5008
|
return value;
|
|
5021
5009
|
};
|
|
5022
5010
|
class CustomerListing {
|
|
5023
5011
|
constructor(page) {
|
|
5024
5012
|
this.page = page;
|
|
5025
|
-
__publicField$
|
|
5026
|
-
__publicField$
|
|
5027
|
-
__publicField$
|
|
5028
|
-
__publicField$
|
|
5013
|
+
__publicField$x(this, "headline");
|
|
5014
|
+
__publicField$x(this, "addCustomerButton");
|
|
5015
|
+
__publicField$x(this, "bulkEditButton");
|
|
5016
|
+
__publicField$x(this, "deleteButton");
|
|
5029
5017
|
//Customer Bulk Edit Modal
|
|
5030
|
-
__publicField$
|
|
5031
|
-
__publicField$
|
|
5032
|
-
__publicField$
|
|
5033
|
-
__publicField$
|
|
5018
|
+
__publicField$x(this, "bulkEditModal");
|
|
5019
|
+
__publicField$x(this, "startBulkEditButton");
|
|
5020
|
+
__publicField$x(this, "cancelButton");
|
|
5021
|
+
__publicField$x(this, "modalHeaderCheckbox");
|
|
5034
5022
|
this.headline = page.getByRole("heading", { name: "Customers" });
|
|
5035
5023
|
this.addCustomerButton = page.locator(".sw-customer-list__button-create");
|
|
5036
5024
|
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
@@ -5091,27 +5079,27 @@ class CustomerListing {
|
|
|
5091
5079
|
}
|
|
5092
5080
|
}
|
|
5093
5081
|
|
|
5094
|
-
var __defProp$
|
|
5095
|
-
var __defNormalProp$
|
|
5096
|
-
var __publicField$
|
|
5097
|
-
__defNormalProp$
|
|
5082
|
+
var __defProp$w = Object.defineProperty;
|
|
5083
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5084
|
+
var __publicField$w = (obj, key, value) => {
|
|
5085
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5098
5086
|
return value;
|
|
5099
5087
|
};
|
|
5100
5088
|
class CustomerDetail {
|
|
5101
5089
|
constructor(page, instanceMeta) {
|
|
5102
5090
|
this.page = page;
|
|
5103
5091
|
this.instanceMeta = instanceMeta;
|
|
5104
|
-
__publicField$
|
|
5105
|
-
__publicField$
|
|
5106
|
-
__publicField$
|
|
5107
|
-
__publicField$
|
|
5108
|
-
__publicField$
|
|
5109
|
-
__publicField$
|
|
5110
|
-
__publicField$
|
|
5111
|
-
__publicField$
|
|
5112
|
-
__publicField$
|
|
5113
|
-
__publicField$
|
|
5114
|
-
__publicField$
|
|
5092
|
+
__publicField$w(this, "editButton");
|
|
5093
|
+
__publicField$w(this, "generalTab");
|
|
5094
|
+
__publicField$w(this, "accountCard");
|
|
5095
|
+
__publicField$w(this, "customFieldCard");
|
|
5096
|
+
__publicField$w(this, "customFieldSetTabs");
|
|
5097
|
+
__publicField$w(this, "customFieldSetTabCustomContent");
|
|
5098
|
+
__publicField$w(this, "customerGroupRequestMessage");
|
|
5099
|
+
__publicField$w(this, "customerGroupAcceptButton");
|
|
5100
|
+
__publicField$w(this, "customerGroupDeclineButton");
|
|
5101
|
+
__publicField$w(this, "tagList");
|
|
5102
|
+
__publicField$w(this, "tagItems");
|
|
5115
5103
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
5116
5104
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
5117
5105
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -5172,17 +5160,17 @@ class CustomerDetail {
|
|
|
5172
5160
|
}
|
|
5173
5161
|
}
|
|
5174
5162
|
|
|
5175
|
-
var __defProp$
|
|
5176
|
-
var __defNormalProp$
|
|
5177
|
-
var __publicField$
|
|
5178
|
-
__defNormalProp$
|
|
5163
|
+
var __defProp$v = Object.defineProperty;
|
|
5164
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5165
|
+
var __publicField$v = (obj, key, value) => {
|
|
5166
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5179
5167
|
return value;
|
|
5180
5168
|
};
|
|
5181
5169
|
class CustomerGroupListing {
|
|
5182
5170
|
constructor(page) {
|
|
5183
5171
|
this.page = page;
|
|
5184
|
-
__publicField$
|
|
5185
|
-
__publicField$
|
|
5172
|
+
__publicField$v(this, "headline");
|
|
5173
|
+
__publicField$v(this, "addCustomerGroupButton");
|
|
5186
5174
|
this.headline = page.getByRole("heading", { name: "Customer groups" });
|
|
5187
5175
|
this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
|
|
5188
5176
|
}
|
|
@@ -5204,30 +5192,30 @@ class CustomerGroupListing {
|
|
|
5204
5192
|
}
|
|
5205
5193
|
}
|
|
5206
5194
|
|
|
5207
|
-
var __defProp$
|
|
5208
|
-
var __defNormalProp$
|
|
5209
|
-
var __publicField$
|
|
5210
|
-
__defNormalProp$
|
|
5195
|
+
var __defProp$u = Object.defineProperty;
|
|
5196
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5197
|
+
var __publicField$u = (obj, key, value) => {
|
|
5198
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5211
5199
|
return value;
|
|
5212
5200
|
};
|
|
5213
5201
|
class CustomerGroupCreate {
|
|
5214
5202
|
constructor(page, instanceMeta) {
|
|
5215
5203
|
this.page = page;
|
|
5216
5204
|
this.instanceMeta = instanceMeta;
|
|
5217
|
-
__publicField$
|
|
5218
|
-
__publicField$
|
|
5219
|
-
__publicField$
|
|
5220
|
-
__publicField$
|
|
5221
|
-
__publicField$
|
|
5222
|
-
__publicField$
|
|
5223
|
-
__publicField$
|
|
5224
|
-
__publicField$
|
|
5225
|
-
__publicField$
|
|
5226
|
-
__publicField$
|
|
5227
|
-
__publicField$
|
|
5228
|
-
__publicField$
|
|
5229
|
-
__publicField$
|
|
5230
|
-
__publicField$
|
|
5205
|
+
__publicField$u(this, "headline");
|
|
5206
|
+
__publicField$u(this, "saveButton");
|
|
5207
|
+
__publicField$u(this, "cancelButton");
|
|
5208
|
+
__publicField$u(this, "cardTitle");
|
|
5209
|
+
__publicField$u(this, "customerGroupNameField");
|
|
5210
|
+
__publicField$u(this, "customerGroupGrossTaxDisplay");
|
|
5211
|
+
__publicField$u(this, "customerGroupNetTaxDisplay");
|
|
5212
|
+
__publicField$u(this, "customSignupFormToggle");
|
|
5213
|
+
__publicField$u(this, "signupFormTitle");
|
|
5214
|
+
__publicField$u(this, "signupFormIntroduction");
|
|
5215
|
+
__publicField$u(this, "signupFormSeoDescription");
|
|
5216
|
+
__publicField$u(this, "signupFormCompanySignupToggle");
|
|
5217
|
+
__publicField$u(this, "customerGroupSaleschannelSelection");
|
|
5218
|
+
__publicField$u(this, "customerGroupSaleschannelResultList");
|
|
5231
5219
|
this.headline = page.getByRole("heading", { name: "New customer group" });
|
|
5232
5220
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
5233
5221
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
@@ -5253,10 +5241,10 @@ class CustomerGroupCreate {
|
|
|
5253
5241
|
}
|
|
5254
5242
|
}
|
|
5255
5243
|
|
|
5256
|
-
var __defProp$
|
|
5257
|
-
var __defNormalProp$
|
|
5258
|
-
var __publicField$
|
|
5259
|
-
__defNormalProp$
|
|
5244
|
+
var __defProp$t = Object.defineProperty;
|
|
5245
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5246
|
+
var __publicField$t = (obj, key, value) => {
|
|
5247
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5260
5248
|
return value;
|
|
5261
5249
|
};
|
|
5262
5250
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
@@ -5264,10 +5252,10 @@ class CustomerGroupDetail extends CustomerGroupCreate {
|
|
|
5264
5252
|
super(page, instanceMeta);
|
|
5265
5253
|
this.page = page;
|
|
5266
5254
|
this.instanceMeta = instanceMeta;
|
|
5267
|
-
__publicField$
|
|
5268
|
-
__publicField$
|
|
5269
|
-
__publicField$
|
|
5270
|
-
__publicField$
|
|
5255
|
+
__publicField$t(this, "headline");
|
|
5256
|
+
__publicField$t(this, "selectedSalesChannel");
|
|
5257
|
+
__publicField$t(this, "technicalUrl");
|
|
5258
|
+
__publicField$t(this, "saleschannelUrl");
|
|
5271
5259
|
this.headline = page.locator(".smart-bar__header");
|
|
5272
5260
|
this.selectedSalesChannel = page.locator(".sw-select-selection-list");
|
|
5273
5261
|
this.technicalUrl = page.getByLabel("Technical URL");
|
|
@@ -5278,66 +5266,66 @@ class CustomerGroupDetail extends CustomerGroupCreate {
|
|
|
5278
5266
|
}
|
|
5279
5267
|
}
|
|
5280
5268
|
|
|
5281
|
-
var __defProp$
|
|
5282
|
-
var __defNormalProp$
|
|
5283
|
-
var __publicField$
|
|
5284
|
-
__defNormalProp$
|
|
5269
|
+
var __defProp$s = Object.defineProperty;
|
|
5270
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5271
|
+
var __publicField$s = (obj, key, value) => {
|
|
5272
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5285
5273
|
return value;
|
|
5286
5274
|
};
|
|
5287
5275
|
class FirstRunWizard {
|
|
5288
5276
|
constructor(page, instanceMeta) {
|
|
5289
5277
|
this.page = page;
|
|
5290
5278
|
this.instanceMeta = instanceMeta;
|
|
5291
|
-
__publicField$
|
|
5292
|
-
__publicField$
|
|
5293
|
-
__publicField$
|
|
5294
|
-
__publicField$
|
|
5295
|
-
__publicField$
|
|
5296
|
-
__publicField$
|
|
5297
|
-
__publicField$
|
|
5298
|
-
__publicField$
|
|
5299
|
-
__publicField$
|
|
5300
|
-
__publicField$
|
|
5301
|
-
__publicField$
|
|
5302
|
-
__publicField$
|
|
5303
|
-
__publicField$
|
|
5304
|
-
__publicField$
|
|
5305
|
-
__publicField$
|
|
5306
|
-
__publicField$
|
|
5307
|
-
__publicField$
|
|
5308
|
-
__publicField$
|
|
5309
|
-
__publicField$
|
|
5310
|
-
__publicField$
|
|
5311
|
-
__publicField$
|
|
5312
|
-
__publicField$
|
|
5313
|
-
__publicField$
|
|
5314
|
-
__publicField$
|
|
5279
|
+
__publicField$s(this, "nextButton");
|
|
5280
|
+
__publicField$s(this, "configureLaterButton");
|
|
5281
|
+
__publicField$s(this, "skipButton");
|
|
5282
|
+
__publicField$s(this, "finishButton");
|
|
5283
|
+
__publicField$s(this, "backButton");
|
|
5284
|
+
__publicField$s(this, "smtpServerButton");
|
|
5285
|
+
__publicField$s(this, "dataImportHeader");
|
|
5286
|
+
__publicField$s(this, "installLanguagePackButton");
|
|
5287
|
+
__publicField$s(this, "installDemoDataButton");
|
|
5288
|
+
__publicField$s(this, "installMigrationAssistantButton");
|
|
5289
|
+
__publicField$s(this, "defaultValuesHeader");
|
|
5290
|
+
__publicField$s(this, "mailerConfigurationHeader");
|
|
5291
|
+
__publicField$s(this, "payPalSetupHeader");
|
|
5292
|
+
__publicField$s(this, "extensionsHeader");
|
|
5293
|
+
__publicField$s(this, "shopwareAccountHeader");
|
|
5294
|
+
__publicField$s(this, "shopwareStoreHeader");
|
|
5295
|
+
__publicField$s(this, "doneHeader");
|
|
5296
|
+
__publicField$s(this, "frwSuccessText");
|
|
5297
|
+
__publicField$s(this, "welcomeText");
|
|
5298
|
+
__publicField$s(this, "pluginCardInfo");
|
|
5299
|
+
__publicField$s(this, "dataImportCard");
|
|
5300
|
+
__publicField$s(this, "salesChannelSelectionList");
|
|
5301
|
+
__publicField$s(this, "salesChannelSelectionMultiSelect");
|
|
5302
|
+
__publicField$s(this, "smtpServerTitle");
|
|
5315
5303
|
/**
|
|
5316
5304
|
* @deprecated - Use `smtpServerFieldInputs` instead.
|
|
5317
5305
|
*/
|
|
5318
|
-
__publicField$
|
|
5319
|
-
__publicField$
|
|
5320
|
-
__publicField$
|
|
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$
|
|
5306
|
+
__publicField$s(this, "smtpServerFields");
|
|
5307
|
+
__publicField$s(this, "smtpServerFieldInputs");
|
|
5308
|
+
__publicField$s(this, "smtpServerHostInput");
|
|
5309
|
+
__publicField$s(this, "smtpServerPortInput");
|
|
5310
|
+
__publicField$s(this, "smtpServerUsernameInput");
|
|
5311
|
+
__publicField$s(this, "smtpServerPasswordInput");
|
|
5312
|
+
__publicField$s(this, "smtpServerEncryptionInput");
|
|
5313
|
+
__publicField$s(this, "smtpServerSenderAddressInput");
|
|
5314
|
+
__publicField$s(this, "smtpServerDeliveryAddressInput");
|
|
5315
|
+
__publicField$s(this, "smtpServerDisableEmailDeliveryCheckbox");
|
|
5316
|
+
__publicField$s(this, "payPalPaymethods");
|
|
5317
|
+
__publicField$s(this, "payPalInfoCard");
|
|
5318
|
+
__publicField$s(this, "emailAddressInputField");
|
|
5319
|
+
__publicField$s(this, "passwordInputField");
|
|
5320
|
+
__publicField$s(this, "forgotPasswordLink");
|
|
5321
|
+
__publicField$s(this, "extensionStoreHeading");
|
|
5322
|
+
__publicField$s(this, "documentationLink");
|
|
5323
|
+
__publicField$s(this, "forumLink");
|
|
5324
|
+
__publicField$s(this, "roadmapLink");
|
|
5325
|
+
__publicField$s(this, "germanRegionSelector");
|
|
5326
|
+
__publicField$s(this, "toolsSelector");
|
|
5327
|
+
__publicField$s(this, "recommendationHeader");
|
|
5328
|
+
__publicField$s(this, "toolsRecommendedPlugin");
|
|
5341
5329
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
5342
5330
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
5343
5331
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -5395,23 +5383,23 @@ class FirstRunWizard {
|
|
|
5395
5383
|
}
|
|
5396
5384
|
}
|
|
5397
5385
|
|
|
5398
|
-
var __defProp$
|
|
5399
|
-
var __defNormalProp$
|
|
5400
|
-
var __publicField$
|
|
5401
|
-
__defNormalProp$
|
|
5386
|
+
var __defProp$r = Object.defineProperty;
|
|
5387
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5388
|
+
var __publicField$r = (obj, key, value) => {
|
|
5389
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5402
5390
|
return value;
|
|
5403
5391
|
};
|
|
5404
5392
|
class FlowBuilderCreate {
|
|
5405
5393
|
constructor(page) {
|
|
5406
5394
|
this.page = page;
|
|
5407
|
-
__publicField$
|
|
5408
|
-
__publicField$
|
|
5409
|
-
__publicField$
|
|
5410
|
-
__publicField$
|
|
5411
|
-
__publicField$
|
|
5412
|
-
__publicField$
|
|
5413
|
-
__publicField$
|
|
5414
|
-
__publicField$
|
|
5395
|
+
__publicField$r(this, "saveButton");
|
|
5396
|
+
__publicField$r(this, "header");
|
|
5397
|
+
__publicField$r(this, "nameField");
|
|
5398
|
+
__publicField$r(this, "flowTab");
|
|
5399
|
+
__publicField$r(this, "triggerSelectField");
|
|
5400
|
+
__publicField$r(this, "addActionField");
|
|
5401
|
+
__publicField$r(this, "smartBarHeader");
|
|
5402
|
+
__publicField$r(this, "newFlowHeader");
|
|
5415
5403
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
5416
5404
|
this.header = page.locator("h2");
|
|
5417
5405
|
this.nameField = page.locator(".sw-flow-detail-general__general-name").getByLabel("Name");
|
|
@@ -5429,29 +5417,29 @@ class FlowBuilderCreate {
|
|
|
5429
5417
|
}
|
|
5430
5418
|
}
|
|
5431
5419
|
|
|
5432
|
-
var __defProp$
|
|
5433
|
-
var __defNormalProp$
|
|
5434
|
-
var __publicField$
|
|
5435
|
-
__defNormalProp$
|
|
5420
|
+
var __defProp$q = Object.defineProperty;
|
|
5421
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5422
|
+
var __publicField$q = (obj, key, value) => {
|
|
5423
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5436
5424
|
return value;
|
|
5437
5425
|
};
|
|
5438
5426
|
class FlowBuilderListing {
|
|
5439
5427
|
constructor(page) {
|
|
5440
5428
|
this.page = page;
|
|
5441
|
-
__publicField$
|
|
5442
|
-
__publicField$
|
|
5443
|
-
__publicField$
|
|
5444
|
-
__publicField$
|
|
5445
|
-
__publicField$
|
|
5446
|
-
__publicField$
|
|
5447
|
-
__publicField$
|
|
5448
|
-
__publicField$
|
|
5449
|
-
__publicField$
|
|
5450
|
-
__publicField$
|
|
5451
|
-
__publicField$
|
|
5452
|
-
__publicField$
|
|
5453
|
-
__publicField$
|
|
5454
|
-
__publicField$
|
|
5429
|
+
__publicField$q(this, "createFlowButton");
|
|
5430
|
+
__publicField$q(this, "firstFlowName");
|
|
5431
|
+
__publicField$q(this, "firstFlowContextButton");
|
|
5432
|
+
__publicField$q(this, "flowContextMenu");
|
|
5433
|
+
__publicField$q(this, "contextMenuDownload");
|
|
5434
|
+
__publicField$q(this, "contextMenuDuplicate");
|
|
5435
|
+
__publicField$q(this, "contextMenuEdit");
|
|
5436
|
+
__publicField$q(this, "contextMenuDelete");
|
|
5437
|
+
__publicField$q(this, "flowDownloadModal");
|
|
5438
|
+
__publicField$q(this, "downloadFlowButton");
|
|
5439
|
+
__publicField$q(this, "flowDeleteButton");
|
|
5440
|
+
__publicField$q(this, "successAlert");
|
|
5441
|
+
__publicField$q(this, "successAlertMessage");
|
|
5442
|
+
__publicField$q(this, "searchBar");
|
|
5455
5443
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
5456
5444
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
5457
5445
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -5509,10 +5497,10 @@ class FlowBuilderTemplates extends FlowBuilderListing {
|
|
|
5509
5497
|
}
|
|
5510
5498
|
}
|
|
5511
5499
|
|
|
5512
|
-
var __defProp$
|
|
5513
|
-
var __defNormalProp$
|
|
5514
|
-
var __publicField$
|
|
5515
|
-
__defNormalProp$
|
|
5500
|
+
var __defProp$p = Object.defineProperty;
|
|
5501
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5502
|
+
var __publicField$p = (obj, key, value) => {
|
|
5503
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5516
5504
|
return value;
|
|
5517
5505
|
};
|
|
5518
5506
|
class FlowBuilderDetail extends FlowBuilderCreate {
|
|
@@ -5520,13 +5508,13 @@ class FlowBuilderDetail extends FlowBuilderCreate {
|
|
|
5520
5508
|
super(page);
|
|
5521
5509
|
this.page = page;
|
|
5522
5510
|
this.instanceMeta = instanceMeta;
|
|
5523
|
-
__publicField$
|
|
5524
|
-
__publicField$
|
|
5525
|
-
__publicField$
|
|
5526
|
-
__publicField$
|
|
5527
|
-
__publicField$
|
|
5528
|
-
__publicField$
|
|
5529
|
-
__publicField$
|
|
5511
|
+
__publicField$p(this, "saveButtonLoader");
|
|
5512
|
+
__publicField$p(this, "saveButton");
|
|
5513
|
+
__publicField$p(this, "generalTab");
|
|
5514
|
+
__publicField$p(this, "flowTab");
|
|
5515
|
+
__publicField$p(this, "alertWarning");
|
|
5516
|
+
__publicField$p(this, "templateName");
|
|
5517
|
+
__publicField$p(this, "alertMessage");
|
|
5530
5518
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
5531
5519
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5532
5520
|
this.saveButtonLoader = page.locator(".sw-button--primary").locator(".sw-button_loader");
|
|
@@ -5546,21 +5534,21 @@ class FlowBuilderDetail extends FlowBuilderCreate {
|
|
|
5546
5534
|
}
|
|
5547
5535
|
}
|
|
5548
5536
|
|
|
5549
|
-
var __defProp$
|
|
5550
|
-
var __defNormalProp$
|
|
5551
|
-
var __publicField$
|
|
5552
|
-
__defNormalProp$
|
|
5537
|
+
var __defProp$o = Object.defineProperty;
|
|
5538
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5539
|
+
var __publicField$o = (obj, key, value) => {
|
|
5540
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5553
5541
|
return value;
|
|
5554
5542
|
};
|
|
5555
5543
|
class DataSharing {
|
|
5556
5544
|
constructor(page, instanceMeta) {
|
|
5557
5545
|
this.page = page;
|
|
5558
5546
|
this.instanceMeta = instanceMeta;
|
|
5559
|
-
__publicField$
|
|
5560
|
-
__publicField$
|
|
5561
|
-
__publicField$
|
|
5562
|
-
__publicField$
|
|
5563
|
-
__publicField$
|
|
5547
|
+
__publicField$o(this, "dataConsentHeadline");
|
|
5548
|
+
__publicField$o(this, "dataSharingSuccessMessageLabel");
|
|
5549
|
+
__publicField$o(this, "dataSharingAgreeButton");
|
|
5550
|
+
__publicField$o(this, "dataSharingDisableButton");
|
|
5551
|
+
__publicField$o(this, "dataSharingTermsAgreementLabel");
|
|
5564
5552
|
if (satisfies(instanceMeta.version, "<6.6.1")) {
|
|
5565
5553
|
this.dataConsentHeadline = page.locator("header.sw-usage-data-consent-banner__title");
|
|
5566
5554
|
} else {
|
|
@@ -5579,24 +5567,50 @@ class DataSharing {
|
|
|
5579
5567
|
}
|
|
5580
5568
|
}
|
|
5581
5569
|
|
|
5582
|
-
var __defProp$
|
|
5583
|
-
var __defNormalProp$
|
|
5584
|
-
var __publicField$
|
|
5585
|
-
__defNormalProp$
|
|
5570
|
+
var __defProp$n = Object.defineProperty;
|
|
5571
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5572
|
+
var __publicField$n = (obj, key, value) => {
|
|
5573
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5586
5574
|
return value;
|
|
5587
5575
|
};
|
|
5588
5576
|
class Dashboard {
|
|
5589
5577
|
constructor(page) {
|
|
5590
5578
|
this.page = page;
|
|
5591
|
-
__publicField$
|
|
5592
|
-
__publicField$
|
|
5593
|
-
__publicField$
|
|
5594
|
-
__publicField$
|
|
5595
|
-
__publicField$
|
|
5596
|
-
__publicField$
|
|
5597
|
-
__publicField$
|
|
5598
|
-
__publicField$
|
|
5579
|
+
__publicField$n(this, "contentView");
|
|
5580
|
+
__publicField$n(this, "adminMenuView");
|
|
5581
|
+
__publicField$n(this, "adminMenuCatalog");
|
|
5582
|
+
__publicField$n(this, "adminMenuOrder");
|
|
5583
|
+
__publicField$n(this, "adminMenuCustomer");
|
|
5584
|
+
__publicField$n(this, "adminMenuContent");
|
|
5585
|
+
__publicField$n(this, "adminMenuMarketing");
|
|
5586
|
+
__publicField$n(this, "adminMenuExtension");
|
|
5587
|
+
__publicField$n(this, "adminMenuUserChevron");
|
|
5588
|
+
__publicField$n(this, "adminMenuUserIcon");
|
|
5589
|
+
__publicField$n(this, "adminMenuUserName");
|
|
5590
|
+
__publicField$n(this, "welcomeHeadline");
|
|
5591
|
+
__publicField$n(this, "welcomeMessage");
|
|
5592
|
+
__publicField$n(this, "dataSharingConsentBanner");
|
|
5593
|
+
__publicField$n(this, "dataSharingAgreeButton");
|
|
5594
|
+
__publicField$n(this, "dataSharingNotAtTheMomentButton");
|
|
5595
|
+
__publicField$n(this, "dataSharingTermsAgreementLabel");
|
|
5596
|
+
__publicField$n(this, "dataSharingSettingsLink");
|
|
5597
|
+
__publicField$n(this, "dataSharingAcceptMessageText");
|
|
5598
|
+
__publicField$n(this, "dataSharingNotAtTheMomentMessageText");
|
|
5599
|
+
__publicField$n(this, "statisticsDateRange");
|
|
5600
|
+
__publicField$n(this, "statisticsChart");
|
|
5601
|
+
this.adminMenuView = page.locator(".sw-admin-menu");
|
|
5602
|
+
this.contentView = page.locator(".sw-desktop__content");
|
|
5603
|
+
this.adminMenuCatalog = page.locator(".sw-catalogue");
|
|
5604
|
+
this.adminMenuOrder = page.locator(".sw-order");
|
|
5605
|
+
this.adminMenuCustomer = page.locator(".sw-customer");
|
|
5606
|
+
this.adminMenuContent = page.locator(".sw-content");
|
|
5607
|
+
this.adminMenuMarketing = page.locator(".sw-marketing");
|
|
5608
|
+
this.adminMenuExtension = page.locator(".sw-extension");
|
|
5609
|
+
this.adminMenuUserChevron = page.locator(".sw-admin-menu__user-actions-indicator");
|
|
5610
|
+
this.adminMenuUserIcon = page.locator(".sw-avatar");
|
|
5611
|
+
this.adminMenuUserName = page.locator(".sw-admin-menu__user-name");
|
|
5599
5612
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
5613
|
+
this.welcomeMessage = page.locator(".sw-dashboard-index__welcome-message");
|
|
5600
5614
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
5601
5615
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
5602
5616
|
this.dataSharingNotAtTheMomentButton = page.getByRole("button", { name: "Not at the moment" });
|
|
@@ -5604,31 +5618,33 @@ class Dashboard {
|
|
|
5604
5618
|
this.dataSharingAcceptMessageText = page.getByText("Thank you for your participation!");
|
|
5605
5619
|
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");
|
|
5606
5620
|
this.dataSharingTermsAgreementLabel = page.getByText('By clicking "Agree", you confirm that you are authorized to enter into this agreement on behalf of your company.');
|
|
5621
|
+
this.statisticsDateRange = page.locator(".mt-card__subtitle");
|
|
5622
|
+
this.statisticsChart = page.locator(".vue-apexcharts");
|
|
5607
5623
|
}
|
|
5608
5624
|
url() {
|
|
5609
5625
|
return "#/sw/dashboard/index";
|
|
5610
5626
|
}
|
|
5611
5627
|
}
|
|
5612
5628
|
|
|
5613
|
-
var __defProp$
|
|
5614
|
-
var __defNormalProp$
|
|
5615
|
-
var __publicField$
|
|
5616
|
-
__defNormalProp$
|
|
5629
|
+
var __defProp$m = Object.defineProperty;
|
|
5630
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5631
|
+
var __publicField$m = (obj, key, value) => {
|
|
5632
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5617
5633
|
return value;
|
|
5618
5634
|
};
|
|
5619
5635
|
class ShippingListing {
|
|
5620
5636
|
constructor(page) {
|
|
5621
5637
|
this.page = page;
|
|
5622
|
-
__publicField$
|
|
5623
|
-
__publicField$
|
|
5624
|
-
__publicField$
|
|
5625
|
-
__publicField$
|
|
5626
|
-
__publicField$
|
|
5638
|
+
__publicField$m(this, "header");
|
|
5639
|
+
__publicField$m(this, "addShippingMethod");
|
|
5640
|
+
__publicField$m(this, "contextMenu");
|
|
5641
|
+
__publicField$m(this, "editButton");
|
|
5642
|
+
__publicField$m(this, "deleteButton");
|
|
5627
5643
|
//warning modal
|
|
5628
|
-
__publicField$
|
|
5629
|
-
__publicField$
|
|
5630
|
-
__publicField$
|
|
5631
|
-
__publicField$
|
|
5644
|
+
__publicField$m(this, "modal");
|
|
5645
|
+
__publicField$m(this, "modalHeader");
|
|
5646
|
+
__publicField$m(this, "modalCancelButton");
|
|
5647
|
+
__publicField$m(this, "modalDeleteButton");
|
|
5632
5648
|
this.header = page.locator(".smart-bar__header");
|
|
5633
5649
|
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
5634
5650
|
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
@@ -5644,19 +5660,19 @@ class ShippingListing {
|
|
|
5644
5660
|
}
|
|
5645
5661
|
}
|
|
5646
5662
|
|
|
5647
|
-
var __defProp$
|
|
5648
|
-
var __defNormalProp$
|
|
5649
|
-
var __publicField$
|
|
5650
|
-
__defNormalProp$
|
|
5663
|
+
var __defProp$l = Object.defineProperty;
|
|
5664
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5665
|
+
var __publicField$l = (obj, key, value) => {
|
|
5666
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5651
5667
|
return value;
|
|
5652
5668
|
};
|
|
5653
5669
|
class ShippingDetail {
|
|
5654
5670
|
constructor(page) {
|
|
5655
5671
|
this.page = page;
|
|
5656
|
-
__publicField$
|
|
5657
|
-
__publicField$
|
|
5658
|
-
__publicField$
|
|
5659
|
-
__publicField$
|
|
5672
|
+
__publicField$l(this, "header");
|
|
5673
|
+
__publicField$l(this, "nameField");
|
|
5674
|
+
__publicField$l(this, "availabilityRuleField");
|
|
5675
|
+
__publicField$l(this, "availabilityRuleListItem");
|
|
5660
5676
|
this.header = page.locator(".smart-bar__header");
|
|
5661
5677
|
this.nameField = page.getByLabel("Name", { exact: true });
|
|
5662
5678
|
this.availabilityRuleField = page.locator(".sw-settings-shipping-detail__top-rule").locator(".sw-entity-single-select__selection-text");
|
|
@@ -5670,19 +5686,19 @@ class ShippingDetail {
|
|
|
5670
5686
|
}
|
|
5671
5687
|
}
|
|
5672
5688
|
|
|
5673
|
-
var __defProp$
|
|
5674
|
-
var __defNormalProp$
|
|
5675
|
-
var __publicField$
|
|
5676
|
-
__defNormalProp$
|
|
5689
|
+
var __defProp$k = Object.defineProperty;
|
|
5690
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5691
|
+
var __publicField$k = (obj, key, value) => {
|
|
5692
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5677
5693
|
return value;
|
|
5678
5694
|
};
|
|
5679
5695
|
class PaymentDetail {
|
|
5680
5696
|
constructor(page) {
|
|
5681
5697
|
this.page = page;
|
|
5682
|
-
__publicField$
|
|
5683
|
-
__publicField$
|
|
5684
|
-
__publicField$
|
|
5685
|
-
__publicField$
|
|
5698
|
+
__publicField$k(this, "header");
|
|
5699
|
+
__publicField$k(this, "nameField");
|
|
5700
|
+
__publicField$k(this, "availabilityRuleField");
|
|
5701
|
+
__publicField$k(this, "availabilityRuleListItem");
|
|
5686
5702
|
this.header = page.locator(".smart-bar__header");
|
|
5687
5703
|
this.nameField = page.getByLabel("Name", { exact: true });
|
|
5688
5704
|
this.availabilityRuleField = page.locator(".sw-settings-payment-detail__field-availability-rule").locator(".sw-entity-single-select__selection-text");
|
|
@@ -5696,10 +5712,10 @@ class PaymentDetail {
|
|
|
5696
5712
|
}
|
|
5697
5713
|
}
|
|
5698
5714
|
|
|
5699
|
-
var __defProp$
|
|
5700
|
-
var __defNormalProp$
|
|
5701
|
-
var __publicField$
|
|
5702
|
-
__defNormalProp$
|
|
5715
|
+
var __defProp$j = Object.defineProperty;
|
|
5716
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5717
|
+
var __publicField$j = (obj, key, value) => {
|
|
5718
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5703
5719
|
return value;
|
|
5704
5720
|
};
|
|
5705
5721
|
class LandingPageCreate {
|
|
@@ -5708,24 +5724,24 @@ class LandingPageCreate {
|
|
|
5708
5724
|
/**
|
|
5709
5725
|
* General
|
|
5710
5726
|
*/
|
|
5711
|
-
__publicField$
|
|
5712
|
-
__publicField$
|
|
5713
|
-
__publicField$
|
|
5714
|
-
__publicField$
|
|
5715
|
-
__publicField$
|
|
5716
|
-
__publicField$
|
|
5717
|
-
__publicField$
|
|
5727
|
+
__publicField$j(this, "nameInput");
|
|
5728
|
+
__publicField$j(this, "landingPageStatus");
|
|
5729
|
+
__publicField$j(this, "salesChannelSelectionList");
|
|
5730
|
+
__publicField$j(this, "filtersResultPopoverItemList");
|
|
5731
|
+
__publicField$j(this, "saveLandingPageButton");
|
|
5732
|
+
__publicField$j(this, "loadingSpinner");
|
|
5733
|
+
__publicField$j(this, "seoUrlInput");
|
|
5718
5734
|
/**
|
|
5719
5735
|
* Layout
|
|
5720
5736
|
*/
|
|
5721
|
-
__publicField$
|
|
5722
|
-
__publicField$
|
|
5723
|
-
__publicField$
|
|
5724
|
-
__publicField$
|
|
5725
|
-
__publicField$
|
|
5726
|
-
__publicField$
|
|
5727
|
-
__publicField$
|
|
5728
|
-
__publicField$
|
|
5737
|
+
__publicField$j(this, "layoutTab");
|
|
5738
|
+
__publicField$j(this, "assignLayoutButton");
|
|
5739
|
+
__publicField$j(this, "searchLayoutInput");
|
|
5740
|
+
__publicField$j(this, "layoutItems");
|
|
5741
|
+
__publicField$j(this, "layoutSaveButton");
|
|
5742
|
+
__publicField$j(this, "layoutEmptyState");
|
|
5743
|
+
__publicField$j(this, "createNewLayoutButton");
|
|
5744
|
+
__publicField$j(this, "layoutCheckboxes");
|
|
5729
5745
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
5730
5746
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
5731
5747
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -5750,10 +5766,10 @@ class LandingPageCreate {
|
|
|
5750
5766
|
}
|
|
5751
5767
|
}
|
|
5752
5768
|
|
|
5753
|
-
var __defProp$
|
|
5754
|
-
var __defNormalProp$
|
|
5755
|
-
var __publicField$
|
|
5756
|
-
__defNormalProp$
|
|
5769
|
+
var __defProp$i = Object.defineProperty;
|
|
5770
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5771
|
+
var __publicField$i = (obj, key, value) => {
|
|
5772
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5757
5773
|
return value;
|
|
5758
5774
|
};
|
|
5759
5775
|
class LandingPageDetail {
|
|
@@ -5762,24 +5778,24 @@ class LandingPageDetail {
|
|
|
5762
5778
|
/**
|
|
5763
5779
|
* General
|
|
5764
5780
|
*/
|
|
5765
|
-
__publicField$
|
|
5766
|
-
__publicField$
|
|
5767
|
-
__publicField$
|
|
5768
|
-
__publicField$
|
|
5769
|
-
__publicField$
|
|
5770
|
-
__publicField$
|
|
5771
|
-
__publicField$
|
|
5781
|
+
__publicField$i(this, "nameInput");
|
|
5782
|
+
__publicField$i(this, "landingPageStatus");
|
|
5783
|
+
__publicField$i(this, "salesChannelSelectionList");
|
|
5784
|
+
__publicField$i(this, "filtersResultPopoverItemList");
|
|
5785
|
+
__publicField$i(this, "saveLandingPageButton");
|
|
5786
|
+
__publicField$i(this, "loadingSpinner");
|
|
5787
|
+
__publicField$i(this, "seoUrlInput");
|
|
5772
5788
|
/**
|
|
5773
5789
|
* Layout
|
|
5774
5790
|
*/
|
|
5775
|
-
__publicField$
|
|
5776
|
-
__publicField$
|
|
5777
|
-
__publicField$
|
|
5778
|
-
__publicField$
|
|
5779
|
-
__publicField$
|
|
5780
|
-
__publicField$
|
|
5781
|
-
__publicField$
|
|
5782
|
-
__publicField$
|
|
5791
|
+
__publicField$i(this, "layoutTab");
|
|
5792
|
+
__publicField$i(this, "layoutAssignmentCardTitle");
|
|
5793
|
+
__publicField$i(this, "layoutAssignmentCardHeadline");
|
|
5794
|
+
__publicField$i(this, "changeLayoutButton");
|
|
5795
|
+
__publicField$i(this, "editInDesignerButton");
|
|
5796
|
+
__publicField$i(this, "layoutResetButton");
|
|
5797
|
+
__publicField$i(this, "layoutAssignmentStatus");
|
|
5798
|
+
__publicField$i(this, "layoutAssignmentContentSection");
|
|
5783
5799
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
5784
5800
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
5785
5801
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -5803,55 +5819,69 @@ class LandingPageDetail {
|
|
|
5803
5819
|
}
|
|
5804
5820
|
}
|
|
5805
5821
|
|
|
5806
|
-
var __defProp$
|
|
5807
|
-
var __defNormalProp$
|
|
5808
|
-
var __publicField$
|
|
5809
|
-
__defNormalProp$
|
|
5822
|
+
var __defProp$h = Object.defineProperty;
|
|
5823
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5824
|
+
var __publicField$h = (obj, key, value) => {
|
|
5825
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5810
5826
|
return value;
|
|
5811
5827
|
};
|
|
5812
5828
|
class Categories {
|
|
5813
5829
|
constructor(page, instanceMeta) {
|
|
5814
5830
|
this.page = page;
|
|
5815
5831
|
this.instanceMeta = instanceMeta;
|
|
5832
|
+
/**
|
|
5833
|
+
* Visual tests
|
|
5834
|
+
*/
|
|
5835
|
+
__publicField$h(this, "contentView");
|
|
5816
5836
|
/**
|
|
5817
5837
|
* Landing pages
|
|
5818
5838
|
*/
|
|
5819
|
-
__publicField$
|
|
5820
|
-
__publicField$
|
|
5821
|
-
__publicField$
|
|
5822
|
-
__publicField$
|
|
5839
|
+
__publicField$h(this, "landingPageArea");
|
|
5840
|
+
__publicField$h(this, "landingPageHeadline");
|
|
5841
|
+
__publicField$h(this, "addLandingPageButton");
|
|
5842
|
+
__publicField$h(this, "landingPageItems");
|
|
5823
5843
|
/**
|
|
5824
5844
|
* Category tree
|
|
5825
5845
|
*/
|
|
5826
|
-
__publicField$
|
|
5827
|
-
__publicField$
|
|
5828
|
-
__publicField$
|
|
5829
|
-
__publicField$
|
|
5830
|
-
__publicField$
|
|
5831
|
-
__publicField$
|
|
5846
|
+
__publicField$h(this, "categoryTree");
|
|
5847
|
+
__publicField$h(this, "categoryMenuItemList");
|
|
5848
|
+
__publicField$h(this, "createCategoryInput");
|
|
5849
|
+
__publicField$h(this, "confirmCategoryCreationButton");
|
|
5850
|
+
__publicField$h(this, "confirmCategoryCancelButton");
|
|
5851
|
+
__publicField$h(this, "categoryItems");
|
|
5852
|
+
/**
|
|
5853
|
+
* Tabs
|
|
5854
|
+
*/
|
|
5855
|
+
__publicField$h(this, "generalTab");
|
|
5856
|
+
__publicField$h(this, "productsTab");
|
|
5857
|
+
__publicField$h(this, "layoutTab");
|
|
5858
|
+
__publicField$h(this, "seoTab");
|
|
5832
5859
|
/**
|
|
5833
5860
|
* General
|
|
5834
5861
|
*/
|
|
5835
|
-
__publicField$
|
|
5836
|
-
__publicField$
|
|
5837
|
-
__publicField$
|
|
5838
|
-
__publicField$
|
|
5839
|
-
__publicField$
|
|
5840
|
-
__publicField$
|
|
5841
|
-
__publicField$
|
|
5862
|
+
__publicField$h(this, "nameInput");
|
|
5863
|
+
__publicField$h(this, "activeCheckbox");
|
|
5864
|
+
__publicField$h(this, "categoryTypeSelectionList");
|
|
5865
|
+
__publicField$h(this, "filtersResultPopoverItemList");
|
|
5866
|
+
__publicField$h(this, "saveButton");
|
|
5867
|
+
__publicField$h(this, "loadingSpinner");
|
|
5868
|
+
__publicField$h(this, "fadingBar");
|
|
5869
|
+
__publicField$h(this, "configureHomePageButton");
|
|
5870
|
+
__publicField$h(this, "configureModalCancelButton");
|
|
5842
5871
|
/**
|
|
5843
5872
|
* Customisable link
|
|
5844
5873
|
*/
|
|
5845
|
-
__publicField$
|
|
5846
|
-
__publicField$
|
|
5847
|
-
__publicField$
|
|
5848
|
-
__publicField$
|
|
5849
|
-
__publicField$
|
|
5850
|
-
__publicField$
|
|
5851
|
-
__publicField$
|
|
5852
|
-
__publicField$
|
|
5853
|
-
__publicField$
|
|
5854
|
-
__publicField$
|
|
5874
|
+
__publicField$h(this, "entitySelectionList");
|
|
5875
|
+
__publicField$h(this, "linkTypeSelectionList");
|
|
5876
|
+
__publicField$h(this, "categorySelectionList");
|
|
5877
|
+
__publicField$h(this, "productSelectionList");
|
|
5878
|
+
__publicField$h(this, "landingPageSelectionList");
|
|
5879
|
+
__publicField$h(this, "filterResultPopoverTreeCheckboxItemList");
|
|
5880
|
+
__publicField$h(this, "openInNewTabCheckbox");
|
|
5881
|
+
__publicField$h(this, "popoverCategoryTree");
|
|
5882
|
+
__publicField$h(this, "categorySelectionListWrapper");
|
|
5883
|
+
__publicField$h(this, "productSelectionInput");
|
|
5884
|
+
this.contentView = page.locator(".sw-desktop__content");
|
|
5855
5885
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
5856
5886
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
5857
5887
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
@@ -5862,6 +5892,10 @@ class Categories {
|
|
|
5862
5892
|
this.confirmCategoryCreationButton = page.locator(".sw-confirm-field").locator(".sw-confirm-field__button--submit");
|
|
5863
5893
|
this.categoryItems = this.categoryTree.locator(".tree-link");
|
|
5864
5894
|
this.confirmCategoryCancelButton = page.locator(".sw-confirm-field").locator(".sw-confirm-field__button--cancel");
|
|
5895
|
+
this.generalTab = page.locator(".sw-tabs__content").getByText("General");
|
|
5896
|
+
this.productsTab = page.locator(".sw-tabs__content").getByText("Products");
|
|
5897
|
+
this.layoutTab = page.locator(".sw-tabs__content").getByText("Layout");
|
|
5898
|
+
this.seoTab = page.locator(".sw-tabs__content").getByText("SEO");
|
|
5865
5899
|
this.nameInput = page.getByLabel("Name");
|
|
5866
5900
|
this.activeCheckbox = page.getByRole("checkbox", { name: "Active" });
|
|
5867
5901
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
@@ -5880,6 +5914,8 @@ class Categories {
|
|
|
5880
5914
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
5881
5915
|
this.loadingSpinner = page.locator(".mt-loader");
|
|
5882
5916
|
this.fadingBar = page.locator(".fade-leave-active");
|
|
5917
|
+
this.configureHomePageButton = page.getByRole("button", { name: "Configure home page" });
|
|
5918
|
+
this.configureModalCancelButton = page.locator(".sw-modal").getByRole("button", { name: "Cancel" });
|
|
5883
5919
|
}
|
|
5884
5920
|
async getLandingPageByName(landingPageName) {
|
|
5885
5921
|
return this.landingPageItems.locator(`text="${landingPageName}"`);
|
|
@@ -5895,17 +5931,17 @@ class Categories {
|
|
|
5895
5931
|
}
|
|
5896
5932
|
}
|
|
5897
5933
|
|
|
5898
|
-
var __defProp$
|
|
5899
|
-
var __defNormalProp$
|
|
5900
|
-
var __publicField$
|
|
5901
|
-
__defNormalProp$
|
|
5934
|
+
var __defProp$g = Object.defineProperty;
|
|
5935
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5936
|
+
var __publicField$g = (obj, key, value) => {
|
|
5937
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5902
5938
|
return value;
|
|
5903
5939
|
};
|
|
5904
5940
|
class CustomFieldListing {
|
|
5905
5941
|
constructor(page) {
|
|
5906
5942
|
this.page = page;
|
|
5907
|
-
__publicField$
|
|
5908
|
-
__publicField$
|
|
5943
|
+
__publicField$g(this, "addNewSetButton");
|
|
5944
|
+
__publicField$g(this, "customFieldRows");
|
|
5909
5945
|
this.addNewSetButton = page.getByText("Add new set");
|
|
5910
5946
|
this.customFieldRows = page.getByRole("row");
|
|
5911
5947
|
}
|
|
@@ -5933,22 +5969,22 @@ class CustomFieldListing {
|
|
|
5933
5969
|
}
|
|
5934
5970
|
}
|
|
5935
5971
|
|
|
5936
|
-
var __defProp$
|
|
5937
|
-
var __defNormalProp$
|
|
5938
|
-
var __publicField$
|
|
5939
|
-
__defNormalProp$
|
|
5972
|
+
var __defProp$f = Object.defineProperty;
|
|
5973
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5974
|
+
var __publicField$f = (obj, key, value) => {
|
|
5975
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5940
5976
|
return value;
|
|
5941
5977
|
};
|
|
5942
5978
|
class CustomFieldCreate {
|
|
5943
5979
|
constructor(page) {
|
|
5944
5980
|
this.page = page;
|
|
5945
|
-
__publicField$
|
|
5946
|
-
__publicField$
|
|
5947
|
-
__publicField$
|
|
5948
|
-
__publicField$
|
|
5949
|
-
__publicField$
|
|
5950
|
-
__publicField$
|
|
5951
|
-
__publicField$
|
|
5981
|
+
__publicField$f(this, "saveButton");
|
|
5982
|
+
__publicField$f(this, "cancelButton");
|
|
5983
|
+
__publicField$f(this, "technicalNameInput");
|
|
5984
|
+
__publicField$f(this, "positionInput");
|
|
5985
|
+
__publicField$f(this, "labelEnglishGBInput");
|
|
5986
|
+
__publicField$f(this, "assignToSelectionList");
|
|
5987
|
+
__publicField$f(this, "resultAssignToPopoverItemList");
|
|
5952
5988
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
5953
5989
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
5954
5990
|
this.technicalNameInput = page.getByLabel("Technical name");
|
|
@@ -5973,10 +6009,10 @@ async function getSelectFieldListitem(page, selectField, listItem, instanceMeta)
|
|
|
5973
6009
|
}
|
|
5974
6010
|
}
|
|
5975
6011
|
|
|
5976
|
-
var __defProp$
|
|
5977
|
-
var __defNormalProp$
|
|
5978
|
-
var __publicField$
|
|
5979
|
-
__defNormalProp$
|
|
6012
|
+
var __defProp$e = Object.defineProperty;
|
|
6013
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6014
|
+
var __publicField$e = (obj, key, value) => {
|
|
6015
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5980
6016
|
return value;
|
|
5981
6017
|
};
|
|
5982
6018
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
@@ -5984,24 +6020,24 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
5984
6020
|
super(page);
|
|
5985
6021
|
this.page = page;
|
|
5986
6022
|
this.instanceMeta = instanceMeta;
|
|
5987
|
-
__publicField$
|
|
5988
|
-
__publicField$
|
|
5989
|
-
__publicField$
|
|
5990
|
-
__publicField$
|
|
5991
|
-
__publicField$
|
|
5992
|
-
__publicField$
|
|
5993
|
-
__publicField$
|
|
5994
|
-
__publicField$
|
|
5995
|
-
__publicField$
|
|
5996
|
-
__publicField$
|
|
5997
|
-
__publicField$
|
|
5998
|
-
__publicField$
|
|
5999
|
-
__publicField$
|
|
6000
|
-
__publicField$
|
|
6001
|
-
__publicField$
|
|
6002
|
-
__publicField$
|
|
6003
|
-
__publicField$
|
|
6004
|
-
__publicField$
|
|
6023
|
+
__publicField$e(this, "newCustomFieldButton");
|
|
6024
|
+
__publicField$e(this, "customFieldEditDialog");
|
|
6025
|
+
__publicField$e(this, "newCustomFieldDialog");
|
|
6026
|
+
__publicField$e(this, "customFieldTechnicalNameInput");
|
|
6027
|
+
__publicField$e(this, "customFieldPositionInput");
|
|
6028
|
+
__publicField$e(this, "customFieldTypeSelectionList");
|
|
6029
|
+
__publicField$e(this, "customFieldModifyByStoreApiCheckbox");
|
|
6030
|
+
__publicField$e(this, "customFieldCancelButton");
|
|
6031
|
+
__publicField$e(this, "customFieldAddButton");
|
|
6032
|
+
__publicField$e(this, "customFieldEditApplyButton");
|
|
6033
|
+
__publicField$e(this, "customFieldLabelEnglishGBInput");
|
|
6034
|
+
__publicField$e(this, "customFieldPlaceholderEnglishGBInput");
|
|
6035
|
+
__publicField$e(this, "customFieldHelpTextEnglishGBInput");
|
|
6036
|
+
__publicField$e(this, "customFieldDeleteListButton");
|
|
6037
|
+
__publicField$e(this, "customFieldDeleteDialog");
|
|
6038
|
+
__publicField$e(this, "customFieldDeleteCancelButton");
|
|
6039
|
+
__publicField$e(this, "customFieldDeleteButton");
|
|
6040
|
+
__publicField$e(this, "customFieldEditAvailableInShoppingCartCheckbox");
|
|
6005
6041
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
6006
6042
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
6007
6043
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
@@ -6054,21 +6090,21 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
6054
6090
|
}
|
|
6055
6091
|
}
|
|
6056
6092
|
|
|
6057
|
-
var __defProp$
|
|
6058
|
-
var __defNormalProp$
|
|
6059
|
-
var __publicField$
|
|
6060
|
-
__defNormalProp$
|
|
6093
|
+
var __defProp$d = Object.defineProperty;
|
|
6094
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6095
|
+
var __publicField$d = (obj, key, value) => {
|
|
6096
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6061
6097
|
return value;
|
|
6062
6098
|
};
|
|
6063
6099
|
class CategoryDetail {
|
|
6064
6100
|
constructor(page, instanceMeta) {
|
|
6065
6101
|
this.page = page;
|
|
6066
6102
|
this.instanceMeta = instanceMeta;
|
|
6067
|
-
__publicField$
|
|
6068
|
-
__publicField$
|
|
6069
|
-
__publicField$
|
|
6070
|
-
__publicField$
|
|
6071
|
-
__publicField$
|
|
6103
|
+
__publicField$d(this, "saveButton");
|
|
6104
|
+
__publicField$d(this, "cancelButton");
|
|
6105
|
+
__publicField$d(this, "customFieldCard");
|
|
6106
|
+
__publicField$d(this, "customFieldSetTabs");
|
|
6107
|
+
__publicField$d(this, "customFieldSetTabCustomContent");
|
|
6072
6108
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
6073
6109
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
6074
6110
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
@@ -6101,24 +6137,24 @@ class CategoryDetail {
|
|
|
6101
6137
|
}
|
|
6102
6138
|
}
|
|
6103
6139
|
|
|
6104
|
-
var __defProp$
|
|
6105
|
-
var __defNormalProp$
|
|
6106
|
-
var __publicField$
|
|
6107
|
-
__defNormalProp$
|
|
6140
|
+
var __defProp$c = Object.defineProperty;
|
|
6141
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6142
|
+
var __publicField$c = (obj, key, value) => {
|
|
6143
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6108
6144
|
return value;
|
|
6109
6145
|
};
|
|
6110
6146
|
class RuleCreate {
|
|
6111
6147
|
constructor(page, instanceMeta) {
|
|
6112
6148
|
this.page = page;
|
|
6113
6149
|
this.instanceMeta = instanceMeta;
|
|
6114
|
-
__publicField$
|
|
6115
|
-
__publicField$
|
|
6116
|
-
__publicField$
|
|
6117
|
-
__publicField$
|
|
6118
|
-
__publicField$
|
|
6119
|
-
__publicField$
|
|
6120
|
-
__publicField$
|
|
6121
|
-
__publicField$
|
|
6150
|
+
__publicField$c(this, "nameInput");
|
|
6151
|
+
__publicField$c(this, "priorityInput");
|
|
6152
|
+
__publicField$c(this, "conditionTypeSelectionInput");
|
|
6153
|
+
__publicField$c(this, "conditionValueSelectionInput");
|
|
6154
|
+
__publicField$c(this, "filtersResultPopoverSelectionList");
|
|
6155
|
+
__publicField$c(this, "saveButton");
|
|
6156
|
+
__publicField$c(this, "cancelButton");
|
|
6157
|
+
__publicField$c(this, "valueNotAvailableTooltip");
|
|
6122
6158
|
this.nameInput = page.getByLabel("Name");
|
|
6123
6159
|
this.priorityInput = page.getByLabel("Priority");
|
|
6124
6160
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -6136,10 +6172,10 @@ class RuleCreate {
|
|
|
6136
6172
|
}
|
|
6137
6173
|
}
|
|
6138
6174
|
|
|
6139
|
-
var __defProp$
|
|
6140
|
-
var __defNormalProp$
|
|
6141
|
-
var __publicField$
|
|
6142
|
-
__defNormalProp$
|
|
6175
|
+
var __defProp$b = Object.defineProperty;
|
|
6176
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6177
|
+
var __publicField$b = (obj, key, value) => {
|
|
6178
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6143
6179
|
return value;
|
|
6144
6180
|
};
|
|
6145
6181
|
class RuleDetail extends RuleCreate {
|
|
@@ -6147,24 +6183,24 @@ class RuleDetail extends RuleCreate {
|
|
|
6147
6183
|
super(page, instanceMeta);
|
|
6148
6184
|
this.page = page;
|
|
6149
6185
|
this.instanceMeta = instanceMeta;
|
|
6150
|
-
__publicField$
|
|
6151
|
-
__publicField$
|
|
6152
|
-
__publicField$
|
|
6153
|
-
__publicField$
|
|
6154
|
-
__publicField$
|
|
6155
|
-
__publicField$
|
|
6156
|
-
__publicField$
|
|
6157
|
-
__publicField$
|
|
6158
|
-
__publicField$
|
|
6159
|
-
__publicField$
|
|
6160
|
-
__publicField$
|
|
6161
|
-
__publicField$
|
|
6162
|
-
__publicField$
|
|
6163
|
-
__publicField$
|
|
6164
|
-
__publicField$
|
|
6165
|
-
__publicField$
|
|
6166
|
-
__publicField$
|
|
6167
|
-
__publicField$
|
|
6186
|
+
__publicField$b(this, "shippingMethodAvailabilityRulesCard");
|
|
6187
|
+
__publicField$b(this, "shippingMethodAvailabilityRulesCardLink");
|
|
6188
|
+
__publicField$b(this, "shippingMethodAvailabilityRulesCardTable");
|
|
6189
|
+
__publicField$b(this, "shippingMethodAvailabilityRulesCardEmptyState");
|
|
6190
|
+
__publicField$b(this, "shippingMethodAvailabilityRulesCardSearchField");
|
|
6191
|
+
__publicField$b(this, "taxProviderRulesCard");
|
|
6192
|
+
__publicField$b(this, "taxProviderRulesCardEmptyState");
|
|
6193
|
+
__publicField$b(this, "paymentMethodsAvailabilityRulesCard");
|
|
6194
|
+
__publicField$b(this, "paymentMethodsAvailabilityRulesCardEmptyState");
|
|
6195
|
+
__publicField$b(this, "paymentMethodsAvailabilityRulesCardLink");
|
|
6196
|
+
__publicField$b(this, "promotionOrderRulesCard");
|
|
6197
|
+
__publicField$b(this, "promotionOrderRulesCardEmptyState");
|
|
6198
|
+
__publicField$b(this, "promotionCustomerRulesCard");
|
|
6199
|
+
__publicField$b(this, "promotionCustomerRulesCardEmptyState");
|
|
6200
|
+
__publicField$b(this, "promotionCartRulesCard");
|
|
6201
|
+
__publicField$b(this, "promotionCartRulesCardEmptyState");
|
|
6202
|
+
__publicField$b(this, "assignmentModalAddButton");
|
|
6203
|
+
__publicField$b(this, "assignmentModalSearchField");
|
|
6168
6204
|
this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
|
|
6169
6205
|
this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
|
|
6170
6206
|
this.shippingMethodAvailabilityRulesCardTable = page.locator(".sw-settings-rule-detail-assignments__entity-listing-shipping_method_availability_rule");
|
|
@@ -6198,16 +6234,16 @@ class RuleDetail extends RuleCreate {
|
|
|
6198
6234
|
}
|
|
6199
6235
|
}
|
|
6200
6236
|
|
|
6201
|
-
var __defProp$
|
|
6202
|
-
var __defNormalProp$
|
|
6203
|
-
var __publicField$
|
|
6204
|
-
__defNormalProp$
|
|
6237
|
+
var __defProp$a = Object.defineProperty;
|
|
6238
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6239
|
+
var __publicField$a = (obj, key, value) => {
|
|
6240
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6205
6241
|
return value;
|
|
6206
6242
|
};
|
|
6207
6243
|
class RuleListing {
|
|
6208
6244
|
constructor(page) {
|
|
6209
6245
|
this.page = page;
|
|
6210
|
-
__publicField$
|
|
6246
|
+
__publicField$a(this, "createRuleButton");
|
|
6211
6247
|
this.createRuleButton = page.getByText("Create rule");
|
|
6212
6248
|
}
|
|
6213
6249
|
url() {
|
|
@@ -6215,21 +6251,21 @@ class RuleListing {
|
|
|
6215
6251
|
}
|
|
6216
6252
|
}
|
|
6217
6253
|
|
|
6218
|
-
var __defProp$
|
|
6219
|
-
var __defNormalProp$
|
|
6220
|
-
var __publicField$
|
|
6221
|
-
__defNormalProp$
|
|
6254
|
+
var __defProp$9 = Object.defineProperty;
|
|
6255
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6256
|
+
var __publicField$9 = (obj, key, value) => {
|
|
6257
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6222
6258
|
return value;
|
|
6223
6259
|
};
|
|
6224
6260
|
class ManufacturerCreate {
|
|
6225
6261
|
constructor(page, instanceMeta) {
|
|
6226
6262
|
this.page = page;
|
|
6227
6263
|
this.instanceMeta = instanceMeta;
|
|
6228
|
-
__publicField$
|
|
6229
|
-
__publicField$
|
|
6230
|
-
__publicField$
|
|
6231
|
-
__publicField$
|
|
6232
|
-
__publicField$
|
|
6264
|
+
__publicField$9(this, "saveButton");
|
|
6265
|
+
__publicField$9(this, "cancelButton");
|
|
6266
|
+
__publicField$9(this, "nameInput");
|
|
6267
|
+
__publicField$9(this, "websiteInput");
|
|
6268
|
+
__publicField$9(this, "descriptionInput");
|
|
6233
6269
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
6234
6270
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
6235
6271
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -6245,17 +6281,17 @@ class ManufacturerCreate {
|
|
|
6245
6281
|
}
|
|
6246
6282
|
}
|
|
6247
6283
|
|
|
6248
|
-
var __defProp$
|
|
6249
|
-
var __defNormalProp$
|
|
6250
|
-
var __publicField$
|
|
6251
|
-
__defNormalProp$
|
|
6284
|
+
var __defProp$8 = Object.defineProperty;
|
|
6285
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6286
|
+
var __publicField$8 = (obj, key, value) => {
|
|
6287
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6252
6288
|
return value;
|
|
6253
6289
|
};
|
|
6254
6290
|
class ManufacturerListing {
|
|
6255
6291
|
constructor(page) {
|
|
6256
6292
|
this.page = page;
|
|
6257
|
-
__publicField$
|
|
6258
|
-
__publicField$
|
|
6293
|
+
__publicField$8(this, "addManufacturerButton");
|
|
6294
|
+
__publicField$8(this, "manufacturerRows");
|
|
6259
6295
|
this.addManufacturerButton = page.getByText("Add manufacturer");
|
|
6260
6296
|
this.manufacturerRows = page.getByRole("row");
|
|
6261
6297
|
}
|
|
@@ -6287,10 +6323,10 @@ class ManufacturerListing {
|
|
|
6287
6323
|
}
|
|
6288
6324
|
}
|
|
6289
6325
|
|
|
6290
|
-
var __defProp$
|
|
6291
|
-
var __defNormalProp$
|
|
6292
|
-
var __publicField$
|
|
6293
|
-
__defNormalProp$
|
|
6326
|
+
var __defProp$7 = Object.defineProperty;
|
|
6327
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6328
|
+
var __publicField$7 = (obj, key, value) => {
|
|
6329
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6294
6330
|
return value;
|
|
6295
6331
|
};
|
|
6296
6332
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
@@ -6298,9 +6334,9 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
6298
6334
|
super(page, instanceMeta);
|
|
6299
6335
|
this.page = page;
|
|
6300
6336
|
this.instanceMeta = instanceMeta;
|
|
6301
|
-
__publicField$
|
|
6302
|
-
__publicField$
|
|
6303
|
-
__publicField$
|
|
6337
|
+
__publicField$7(this, "customFieldCard");
|
|
6338
|
+
__publicField$7(this, "customFieldSetTabs");
|
|
6339
|
+
__publicField$7(this, "customFieldSetTabCustomContent");
|
|
6304
6340
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
6305
6341
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
6306
6342
|
} else {
|
|
@@ -6328,10 +6364,10 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
6328
6364
|
}
|
|
6329
6365
|
}
|
|
6330
6366
|
|
|
6331
|
-
var __defProp$
|
|
6332
|
-
var __defNormalProp$
|
|
6333
|
-
var __publicField$
|
|
6334
|
-
__defNormalProp$
|
|
6367
|
+
var __defProp$6 = Object.defineProperty;
|
|
6368
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6369
|
+
var __publicField$6 = (obj, key, value) => {
|
|
6370
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6335
6371
|
return value;
|
|
6336
6372
|
};
|
|
6337
6373
|
class ProductListing {
|
|
@@ -6340,13 +6376,13 @@ class ProductListing {
|
|
|
6340
6376
|
/**
|
|
6341
6377
|
* Multi selection
|
|
6342
6378
|
*/
|
|
6343
|
-
__publicField$
|
|
6344
|
-
__publicField$
|
|
6379
|
+
__publicField$6(this, "productsTable");
|
|
6380
|
+
__publicField$6(this, "bulkEditButton");
|
|
6345
6381
|
/**
|
|
6346
6382
|
* Bulk edit modal
|
|
6347
6383
|
*/
|
|
6348
|
-
__publicField$
|
|
6349
|
-
__publicField$
|
|
6384
|
+
__publicField$6(this, "bulkEditModal");
|
|
6385
|
+
__publicField$6(this, "startBulkEditButton");
|
|
6350
6386
|
this.productsTable = page.locator(".sw-data-grid__table");
|
|
6351
6387
|
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
6352
6388
|
this.bulkEditModal = page.locator(".sw-product-bulk-edit-modal");
|
|
@@ -6396,10 +6432,10 @@ class ProductListing {
|
|
|
6396
6432
|
}
|
|
6397
6433
|
}
|
|
6398
6434
|
|
|
6399
|
-
var __defProp$
|
|
6400
|
-
var __defNormalProp$
|
|
6401
|
-
var __publicField$
|
|
6402
|
-
__defNormalProp$
|
|
6435
|
+
var __defProp$5 = Object.defineProperty;
|
|
6436
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6437
|
+
var __publicField$5 = (obj, key, value) => {
|
|
6438
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6403
6439
|
return value;
|
|
6404
6440
|
};
|
|
6405
6441
|
class ProductBulkEdit {
|
|
@@ -6408,49 +6444,49 @@ class ProductBulkEdit {
|
|
|
6408
6444
|
/**
|
|
6409
6445
|
* Bulk edit values
|
|
6410
6446
|
*/
|
|
6411
|
-
__publicField$
|
|
6412
|
-
__publicField$
|
|
6413
|
-
__publicField$
|
|
6414
|
-
__publicField$
|
|
6415
|
-
__publicField$
|
|
6416
|
-
__publicField$
|
|
6417
|
-
__publicField$
|
|
6418
|
-
__publicField$
|
|
6419
|
-
__publicField$
|
|
6420
|
-
__publicField$
|
|
6421
|
-
__publicField$
|
|
6422
|
-
__publicField$
|
|
6423
|
-
__publicField$
|
|
6424
|
-
__publicField$
|
|
6425
|
-
__publicField$
|
|
6426
|
-
__publicField$
|
|
6427
|
-
__publicField$
|
|
6428
|
-
__publicField$
|
|
6429
|
-
__publicField$
|
|
6430
|
-
__publicField$
|
|
6431
|
-
__publicField$
|
|
6432
|
-
__publicField$
|
|
6433
|
-
__publicField$
|
|
6434
|
-
__publicField$
|
|
6435
|
-
__publicField$
|
|
6436
|
-
__publicField$
|
|
6437
|
-
__publicField$
|
|
6438
|
-
__publicField$
|
|
6439
|
-
__publicField$
|
|
6440
|
-
__publicField$
|
|
6441
|
-
__publicField$
|
|
6442
|
-
__publicField$
|
|
6443
|
-
__publicField$
|
|
6444
|
-
__publicField$
|
|
6445
|
-
__publicField$
|
|
6447
|
+
__publicField$5(this, "changeManufacturerRow");
|
|
6448
|
+
__publicField$5(this, "changeManufacturerCheckbox");
|
|
6449
|
+
__publicField$5(this, "manufacturerDropdown");
|
|
6450
|
+
__publicField$5(this, "manufacturerDropdownInput");
|
|
6451
|
+
__publicField$5(this, "manufacturerListResult");
|
|
6452
|
+
__publicField$5(this, "changeActiveRow");
|
|
6453
|
+
__publicField$5(this, "changeActiveCheckbox");
|
|
6454
|
+
__publicField$5(this, "activeToggle");
|
|
6455
|
+
__publicField$5(this, "changePriceRow");
|
|
6456
|
+
__publicField$5(this, "changePriceCheckbox");
|
|
6457
|
+
__publicField$5(this, "grossPriceInput");
|
|
6458
|
+
__publicField$5(this, "changeReleaseDateRow");
|
|
6459
|
+
__publicField$5(this, "changeReleaseDateCheckbox");
|
|
6460
|
+
__publicField$5(this, "releaseDateInput");
|
|
6461
|
+
__publicField$5(this, "changeStockRow");
|
|
6462
|
+
__publicField$5(this, "changeStockCheckbox");
|
|
6463
|
+
__publicField$5(this, "stockChangeMethodDropdown");
|
|
6464
|
+
__publicField$5(this, "stockChangeMethodInput");
|
|
6465
|
+
__publicField$5(this, "stockInput");
|
|
6466
|
+
__publicField$5(this, "changeRestockTimeRow");
|
|
6467
|
+
__publicField$5(this, "changeRestockTimeCheckbox");
|
|
6468
|
+
__publicField$5(this, "restockTimeChangeMethodDropdown");
|
|
6469
|
+
__publicField$5(this, "restockTimeChangeMethodInput");
|
|
6470
|
+
__publicField$5(this, "restockTimeInput");
|
|
6471
|
+
__publicField$5(this, "changeTagsRow");
|
|
6472
|
+
__publicField$5(this, "changeTagsCheckbox");
|
|
6473
|
+
__publicField$5(this, "tagsChangeMethodDropdown");
|
|
6474
|
+
__publicField$5(this, "tagsChangeMethodInput");
|
|
6475
|
+
__publicField$5(this, "tagsInput");
|
|
6476
|
+
__publicField$5(this, "changeSalesChannelRow");
|
|
6477
|
+
__publicField$5(this, "changeSalesChannelCheckbox");
|
|
6478
|
+
__publicField$5(this, "salesChannelChangeMethodDropdown");
|
|
6479
|
+
__publicField$5(this, "salesChannelChangeMethodInput");
|
|
6480
|
+
__publicField$5(this, "salesChannelInput");
|
|
6481
|
+
__publicField$5(this, "applyChangesButton");
|
|
6446
6482
|
/**
|
|
6447
6483
|
* Confirmation modal
|
|
6448
6484
|
*/
|
|
6449
|
-
__publicField$
|
|
6450
|
-
__publicField$
|
|
6451
|
-
__publicField$
|
|
6452
|
-
__publicField$
|
|
6453
|
-
__publicField$
|
|
6485
|
+
__publicField$5(this, "confirmModal");
|
|
6486
|
+
__publicField$5(this, "confirmModalApplyChangesButton");
|
|
6487
|
+
__publicField$5(this, "confirmModalLoadingSpinner");
|
|
6488
|
+
__publicField$5(this, "confirmModalSuccessHeader");
|
|
6489
|
+
__publicField$5(this, "confirmModalSuccessCloseButton");
|
|
6454
6490
|
this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
|
|
6455
6491
|
this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
|
|
6456
6492
|
this.manufacturerDropdown = this.changeManufacturerRow.locator(".sw-select__selection");
|
|
@@ -6500,42 +6536,42 @@ class ProductBulkEdit {
|
|
|
6500
6536
|
}
|
|
6501
6537
|
}
|
|
6502
6538
|
|
|
6503
|
-
var __defProp$
|
|
6504
|
-
var __defNormalProp$
|
|
6505
|
-
var __publicField$
|
|
6506
|
-
__defNormalProp$
|
|
6539
|
+
var __defProp$4 = Object.defineProperty;
|
|
6540
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6541
|
+
var __publicField$4 = (obj, key, value) => {
|
|
6542
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6507
6543
|
return value;
|
|
6508
6544
|
};
|
|
6509
6545
|
class CustomerBulkEdit {
|
|
6510
6546
|
constructor(page) {
|
|
6511
6547
|
this.page = page;
|
|
6512
6548
|
//General
|
|
6513
|
-
__publicField$
|
|
6514
|
-
__publicField$
|
|
6549
|
+
__publicField$4(this, "applyChangesButton");
|
|
6550
|
+
__publicField$4(this, "filtersResultPopoverItemList");
|
|
6515
6551
|
//Account
|
|
6516
|
-
__publicField$
|
|
6517
|
-
__publicField$
|
|
6518
|
-
__publicField$
|
|
6519
|
-
__publicField$
|
|
6520
|
-
__publicField$
|
|
6521
|
-
__publicField$
|
|
6522
|
-
__publicField$
|
|
6523
|
-
__publicField$
|
|
6552
|
+
__publicField$4(this, "changeCustomerGroupCheckbox");
|
|
6553
|
+
__publicField$4(this, "customerGroupInput");
|
|
6554
|
+
__publicField$4(this, "changeAccountStatusCheckbox");
|
|
6555
|
+
__publicField$4(this, "accountStatusInput");
|
|
6556
|
+
__publicField$4(this, "changeLanguageCheckbox");
|
|
6557
|
+
__publicField$4(this, "changeLanguageInput");
|
|
6558
|
+
__publicField$4(this, "replyToCustomerGroupRequest");
|
|
6559
|
+
__publicField$4(this, "replyToCustomerGroupRequestInput");
|
|
6524
6560
|
//Tags
|
|
6525
|
-
__publicField$
|
|
6526
|
-
__publicField$
|
|
6527
|
-
__publicField$
|
|
6561
|
+
__publicField$4(this, "changeTagsCheckbox");
|
|
6562
|
+
__publicField$4(this, "changeTypeSelect");
|
|
6563
|
+
__publicField$4(this, "enterTagsSelect");
|
|
6528
6564
|
//Custom fields
|
|
6529
|
-
__publicField$
|
|
6530
|
-
__publicField$
|
|
6531
|
-
__publicField$
|
|
6565
|
+
__publicField$4(this, "customFieldCheckbox");
|
|
6566
|
+
__publicField$4(this, "customFieldInput");
|
|
6567
|
+
__publicField$4(this, "customFieldArrowRightButton");
|
|
6532
6568
|
/**
|
|
6533
6569
|
* Confirmation modal
|
|
6534
6570
|
*/
|
|
6535
|
-
__publicField$
|
|
6536
|
-
__publicField$
|
|
6537
|
-
__publicField$
|
|
6538
|
-
__publicField$
|
|
6571
|
+
__publicField$4(this, "confirmModal");
|
|
6572
|
+
__publicField$4(this, "confirmModalApplyChangesButton");
|
|
6573
|
+
__publicField$4(this, "confirmModalSuccessHeader");
|
|
6574
|
+
__publicField$4(this, "confirmModalSuccessCloseButton");
|
|
6539
6575
|
this.applyChangesButton = page.getByRole("button", { name: "Apply changes" });
|
|
6540
6576
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
6541
6577
|
this.changeCustomerGroupCheckbox = page.getByRole("checkbox", { name: "Change: Customer group" });
|
|
@@ -6577,6 +6613,65 @@ class CustomerBulkEdit {
|
|
|
6577
6613
|
}
|
|
6578
6614
|
}
|
|
6579
6615
|
|
|
6616
|
+
var __defProp$3 = Object.defineProperty;
|
|
6617
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6618
|
+
var __publicField$3 = (obj, key, value) => {
|
|
6619
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6620
|
+
return value;
|
|
6621
|
+
};
|
|
6622
|
+
class SettingsListing {
|
|
6623
|
+
constructor(page) {
|
|
6624
|
+
this.page = page;
|
|
6625
|
+
__publicField$3(this, "contentView");
|
|
6626
|
+
__publicField$3(this, "header");
|
|
6627
|
+
this.header = page.locator(".sw-settings__content-header");
|
|
6628
|
+
this.contentView = page.locator(".sw-desktop__content");
|
|
6629
|
+
}
|
|
6630
|
+
url() {
|
|
6631
|
+
return "#/sw/settings/index/shop";
|
|
6632
|
+
}
|
|
6633
|
+
}
|
|
6634
|
+
|
|
6635
|
+
var __defProp$2 = Object.defineProperty;
|
|
6636
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6637
|
+
var __publicField$2 = (obj, key, value) => {
|
|
6638
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6639
|
+
return value;
|
|
6640
|
+
};
|
|
6641
|
+
class DocumentListing {
|
|
6642
|
+
constructor(page) {
|
|
6643
|
+
this.page = page;
|
|
6644
|
+
__publicField$2(this, "addDocumentButton");
|
|
6645
|
+
__publicField$2(this, "invoiceLink");
|
|
6646
|
+
this.addDocumentButton = page.getByRole("button", { name: "Add document" });
|
|
6647
|
+
this.invoiceLink = page.getByRole("link", { name: "invoice", exact: true });
|
|
6648
|
+
}
|
|
6649
|
+
url() {
|
|
6650
|
+
return `#/sw/settings/document/index`;
|
|
6651
|
+
}
|
|
6652
|
+
}
|
|
6653
|
+
|
|
6654
|
+
var __defProp$1 = Object.defineProperty;
|
|
6655
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6656
|
+
var __publicField$1 = (obj, key, value) => {
|
|
6657
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6658
|
+
return value;
|
|
6659
|
+
};
|
|
6660
|
+
class DocumentDetail {
|
|
6661
|
+
constructor(page) {
|
|
6662
|
+
this.page = page;
|
|
6663
|
+
__publicField$1(this, "showInAccountSwitch");
|
|
6664
|
+
__publicField$1(this, "saveButton");
|
|
6665
|
+
__publicField$1(this, "documentTypeSelect");
|
|
6666
|
+
this.showInAccountSwitch = page.getByRole("checkbox", { name: 'Display document in "My' });
|
|
6667
|
+
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
6668
|
+
this.documentTypeSelect = page.locator(".sw-settings-document-detail__select-type");
|
|
6669
|
+
}
|
|
6670
|
+
url(documentId) {
|
|
6671
|
+
return `#/sw/settings/document/detail/${documentId}`;
|
|
6672
|
+
}
|
|
6673
|
+
}
|
|
6674
|
+
|
|
6580
6675
|
const AdminPageObjects = {
|
|
6581
6676
|
ProductDetail,
|
|
6582
6677
|
OrderDetail,
|
|
@@ -6610,7 +6705,10 @@ const AdminPageObjects = {
|
|
|
6610
6705
|
ManufacturerListing,
|
|
6611
6706
|
ProductListing,
|
|
6612
6707
|
ProductBulkEdit,
|
|
6613
|
-
CustomerBulkEdit
|
|
6708
|
+
CustomerBulkEdit,
|
|
6709
|
+
SettingsListing,
|
|
6710
|
+
DocumentListing,
|
|
6711
|
+
DocumentDetail
|
|
6614
6712
|
};
|
|
6615
6713
|
const test$6 = test$f.extend({
|
|
6616
6714
|
AdminProductDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
@@ -6711,6 +6809,15 @@ const test$6 = test$f.extend({
|
|
|
6711
6809
|
},
|
|
6712
6810
|
AdminCustomerBulkEdit: async ({ AdminPage }, use) => {
|
|
6713
6811
|
await use(new CustomerBulkEdit(AdminPage));
|
|
6812
|
+
},
|
|
6813
|
+
AdminSettingsListing: async ({ AdminPage }, use) => {
|
|
6814
|
+
await use(new SettingsListing(AdminPage));
|
|
6815
|
+
},
|
|
6816
|
+
AdminDocumentListing: async ({ AdminPage }, use) => {
|
|
6817
|
+
await use(new DocumentListing(AdminPage));
|
|
6818
|
+
},
|
|
6819
|
+
AdminDocumentDetail: async ({ AdminPage }, use) => {
|
|
6820
|
+
await use(new DocumentDetail(AdminPage));
|
|
6714
6821
|
}
|
|
6715
6822
|
});
|
|
6716
6823
|
|
|
@@ -8231,6 +8338,130 @@ const test$1 = test$f.extend({
|
|
|
8231
8338
|
]
|
|
8232
8339
|
});
|
|
8233
8340
|
|
|
8341
|
+
async function hideElements(page, selectors) {
|
|
8342
|
+
if (!selectors.length)
|
|
8343
|
+
return;
|
|
8344
|
+
const stringSelectors = selectors.filter((s) => typeof s === "string");
|
|
8345
|
+
if (stringSelectors.length) {
|
|
8346
|
+
const css = stringSelectors.map((selector) => `${selector} { visibility: hidden !important; }`).join("\n");
|
|
8347
|
+
await page.addStyleTag({ content: css });
|
|
8348
|
+
}
|
|
8349
|
+
const locatorSelectors = selectors.filter((s) => typeof s !== "string");
|
|
8350
|
+
for (const locator of locatorSelectors) {
|
|
8351
|
+
const count = await locator.count();
|
|
8352
|
+
for (let i = 0; i < count; i++) {
|
|
8353
|
+
const el = locator.nth(i);
|
|
8354
|
+
await el.evaluate((el2) => {
|
|
8355
|
+
el2.style.visibility = "hidden";
|
|
8356
|
+
});
|
|
8357
|
+
}
|
|
8358
|
+
}
|
|
8359
|
+
}
|
|
8360
|
+
async function replaceElements(page, selectors) {
|
|
8361
|
+
if (!selectors.length)
|
|
8362
|
+
return;
|
|
8363
|
+
for (const selector of selectors) {
|
|
8364
|
+
if (typeof selector === "string") {
|
|
8365
|
+
await page.evaluate((sel) => {
|
|
8366
|
+
const elements = document.querySelectorAll(sel);
|
|
8367
|
+
elements.forEach((el) => {
|
|
8368
|
+
el.textContent = "***";
|
|
8369
|
+
});
|
|
8370
|
+
}, selector);
|
|
8371
|
+
} else {
|
|
8372
|
+
const count = await selector.count();
|
|
8373
|
+
for (let i = 0; i < count; i++) {
|
|
8374
|
+
const el = selector.nth(i);
|
|
8375
|
+
await el.evaluate((el2) => {
|
|
8376
|
+
el2.textContent = "***";
|
|
8377
|
+
});
|
|
8378
|
+
}
|
|
8379
|
+
}
|
|
8380
|
+
}
|
|
8381
|
+
}
|
|
8382
|
+
const defaultOptions = {
|
|
8383
|
+
requestURL: "api/notification/message?limit=5",
|
|
8384
|
+
width: 1440,
|
|
8385
|
+
scrollableElementVertical: ".sw-card-view__content",
|
|
8386
|
+
scrollableElementHorizontal: ".sw-data-grid__wrapper",
|
|
8387
|
+
additionalHeight: 0,
|
|
8388
|
+
waitForSelector: "",
|
|
8389
|
+
contentHeight: 1080,
|
|
8390
|
+
headerHeight: 0,
|
|
8391
|
+
headerElement: ".sw-page__head-area"
|
|
8392
|
+
};
|
|
8393
|
+
async function setViewport(page, options = {}) {
|
|
8394
|
+
const config = { ...defaultOptions, ...options };
|
|
8395
|
+
await page.setViewportSize({ width: config.width, height: config.contentHeight });
|
|
8396
|
+
if (config.requestURL) {
|
|
8397
|
+
try {
|
|
8398
|
+
await page.waitForResponse((response) => response.url().includes(config.requestURL));
|
|
8399
|
+
} catch {
|
|
8400
|
+
console.warn(`[Info] Timed out waiting for API request: "${config.requestURL}".`);
|
|
8401
|
+
}
|
|
8402
|
+
}
|
|
8403
|
+
if (config.waitForSelector) {
|
|
8404
|
+
try {
|
|
8405
|
+
const locator2 = typeof config.waitForSelector === "string" ? page.locator(config.waitForSelector) : config.waitForSelector;
|
|
8406
|
+
await locator2.waitFor({ state: "visible", timeout: 1e4 });
|
|
8407
|
+
} catch {
|
|
8408
|
+
console.warn(`[Info] ${config.waitForSelector} not found or timed out.`);
|
|
8409
|
+
}
|
|
8410
|
+
}
|
|
8411
|
+
const locator = typeof config.scrollableElementVertical === "string" ? page.locator(config.scrollableElementVertical) : config.scrollableElementVertical;
|
|
8412
|
+
const scrollableElementVertical = locator;
|
|
8413
|
+
let contentHeight = config.contentHeight;
|
|
8414
|
+
if (options.contentHeight === void 0) {
|
|
8415
|
+
try {
|
|
8416
|
+
if (await scrollableElementVertical.count() > 0 && await scrollableElementVertical.isVisible()) {
|
|
8417
|
+
await scrollableElementVertical.waitFor({ state: "visible" });
|
|
8418
|
+
contentHeight = await scrollableElementVertical.evaluate((el) => el.scrollHeight);
|
|
8419
|
+
}
|
|
8420
|
+
} catch {
|
|
8421
|
+
console.warn(`[Info] No scrollable element found. Applying default height: ${config.contentHeight}.`);
|
|
8422
|
+
}
|
|
8423
|
+
}
|
|
8424
|
+
let headerHeight = config.headerHeight;
|
|
8425
|
+
if (options.contentHeight === void 0) {
|
|
8426
|
+
try {
|
|
8427
|
+
const header = page.locator(config.headerElement);
|
|
8428
|
+
if (await header.count() > 0 && await header.isVisible()) {
|
|
8429
|
+
const headerHandle = await header.elementHandle();
|
|
8430
|
+
const scrollableHandle = await scrollableElementVertical.elementHandle();
|
|
8431
|
+
if (headerHandle && scrollableHandle) {
|
|
8432
|
+
const isInside = await page.evaluate(
|
|
8433
|
+
([headerEl, containerEl]) => containerEl.contains(headerEl),
|
|
8434
|
+
[headerHandle, scrollableHandle]
|
|
8435
|
+
);
|
|
8436
|
+
if (!isInside) {
|
|
8437
|
+
headerHeight = await header.evaluate((el) => el.offsetHeight);
|
|
8438
|
+
}
|
|
8439
|
+
}
|
|
8440
|
+
}
|
|
8441
|
+
} catch {
|
|
8442
|
+
console.warn(`[Info] No header found.`);
|
|
8443
|
+
}
|
|
8444
|
+
}
|
|
8445
|
+
let contentWidth = config.width;
|
|
8446
|
+
if (options.width === void 0) {
|
|
8447
|
+
try {
|
|
8448
|
+
const locator2 = typeof config.scrollableElementHorizontal === "string" ? page.locator(config.scrollableElementHorizontal) : config.scrollableElementHorizontal;
|
|
8449
|
+
const scrollableElementHorizontal = locator2;
|
|
8450
|
+
if (await scrollableElementHorizontal.count() > 0 && await scrollableElementHorizontal.isVisible()) {
|
|
8451
|
+
contentWidth = await scrollableElementHorizontal.evaluate((el) => el.scrollWidth);
|
|
8452
|
+
} else {
|
|
8453
|
+
contentWidth = config.width;
|
|
8454
|
+
}
|
|
8455
|
+
} catch {
|
|
8456
|
+
console.warn(`[Info] No scrollable element found. Applying default width: ${config.width}.`);
|
|
8457
|
+
}
|
|
8458
|
+
}
|
|
8459
|
+
const totalHeight = contentHeight + headerHeight + config.additionalHeight;
|
|
8460
|
+
await page.setViewportSize({ width: contentWidth, height: totalHeight });
|
|
8461
|
+
console.warn(`[Info] Viewport size: width=${contentWidth}, height=${totalHeight}`);
|
|
8462
|
+
return;
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8234
8465
|
const test = mergeTests(
|
|
8235
8466
|
test$8,
|
|
8236
8467
|
test$d,
|
|
@@ -8247,4 +8478,4 @@ const test = mergeTests(
|
|
|
8247
8478
|
test$3
|
|
8248
8479
|
);
|
|
8249
8480
|
|
|
8250
|
-
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, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
|
8481
|
+
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 };
|