@shopware-ag/acceptance-test-suite 11.14.0 → 11.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +86 -1
- package/dist/index.d.ts +86 -1
- package/dist/index.mjs +542 -388
- 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$_ = Object.defineProperty;
|
|
159
|
+
var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
160
|
+
var __publicField$_ = (obj, key, value) => {
|
|
161
|
+
__defNormalProp$_(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$_(this, "context");
|
|
167
|
+
__publicField$_(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$_(_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$Y(_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$Z = Object.defineProperty;
|
|
298
|
+
var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
299
|
+
var __publicField$Z = (obj, key, value) => {
|
|
300
|
+
__defNormalProp$Z(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$Z(this, "context");
|
|
306
|
+
__publicField$Z(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$Z(_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$Y = Object.defineProperty;
|
|
372
|
+
var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
373
|
+
var __publicField$Y = (obj, key, value) => {
|
|
374
|
+
__defNormalProp$Y(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$Y(this, "context");
|
|
380
380
|
this.context = context;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
@@ -687,18 +687,18 @@ const test$b = test$f.extend({
|
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
689
|
|
|
690
|
-
var __defProp$
|
|
691
|
-
var __defNormalProp$
|
|
692
|
-
var __publicField$
|
|
693
|
-
__defNormalProp$
|
|
690
|
+
var __defProp$X = Object.defineProperty;
|
|
691
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
692
|
+
var __publicField$X = (obj, key, value) => {
|
|
693
|
+
__defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
694
694
|
return value;
|
|
695
695
|
};
|
|
696
696
|
class Actor {
|
|
697
697
|
constructor(name, page, baseURL) {
|
|
698
|
-
__publicField$
|
|
699
|
-
__publicField$
|
|
700
|
-
__publicField$
|
|
701
|
-
__publicField$
|
|
698
|
+
__publicField$X(this, "page");
|
|
699
|
+
__publicField$X(this, "name");
|
|
700
|
+
__publicField$X(this, "baseURL");
|
|
701
|
+
__publicField$X(this, "expects", expect);
|
|
702
702
|
this.name = name;
|
|
703
703
|
this.page = page;
|
|
704
704
|
this.baseURL = baseURL;
|
|
@@ -1035,31 +1035,31 @@ const getPromotionWithDiscount = async (promotionId, adminApiContext) => {
|
|
|
1035
1035
|
return promotion[0];
|
|
1036
1036
|
};
|
|
1037
1037
|
|
|
1038
|
-
var __defProp$
|
|
1039
|
-
var __defNormalProp$
|
|
1040
|
-
var __publicField$
|
|
1041
|
-
__defNormalProp$
|
|
1038
|
+
var __defProp$W = Object.defineProperty;
|
|
1039
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1040
|
+
var __publicField$W = (obj, key, value) => {
|
|
1041
|
+
__defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1042
1042
|
return value;
|
|
1043
1043
|
};
|
|
1044
1044
|
class TestDataService {
|
|
1045
1045
|
constructor(AdminApiClient, IdProvider, options) {
|
|
1046
|
-
__publicField$
|
|
1047
|
-
__publicField$
|
|
1048
|
-
__publicField$
|
|
1049
|
-
__publicField$
|
|
1050
|
-
__publicField$
|
|
1051
|
-
__publicField$
|
|
1052
|
-
__publicField$
|
|
1053
|
-
__publicField$
|
|
1054
|
-
__publicField$
|
|
1055
|
-
__publicField$
|
|
1056
|
-
__publicField$
|
|
1046
|
+
__publicField$W(this, "AdminApiClient");
|
|
1047
|
+
__publicField$W(this, "IdProvider");
|
|
1048
|
+
__publicField$W(this, "namePrefix", "Test-");
|
|
1049
|
+
__publicField$W(this, "nameSuffix", "");
|
|
1050
|
+
__publicField$W(this, "defaultSalesChannel");
|
|
1051
|
+
__publicField$W(this, "defaultTaxId");
|
|
1052
|
+
__publicField$W(this, "defaultCurrencyId");
|
|
1053
|
+
__publicField$W(this, "defaultCategoryId");
|
|
1054
|
+
__publicField$W(this, "defaultLanguageId");
|
|
1055
|
+
__publicField$W(this, "defaultCountryId");
|
|
1056
|
+
__publicField$W(this, "defaultCustomerGroupId");
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Configures if an automated cleanup of the data should be executed.
|
|
1059
1059
|
*
|
|
1060
1060
|
* @private
|
|
1061
1061
|
*/
|
|
1062
|
-
__publicField$
|
|
1062
|
+
__publicField$W(this, "shouldCleanUp", true);
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Configuration of higher priority entities for the cleanup operation.
|
|
1065
1065
|
* These entities will be deleted before others.
|
|
@@ -1067,26 +1067,26 @@ class TestDataService {
|
|
|
1067
1067
|
*
|
|
1068
1068
|
* @private
|
|
1069
1069
|
*/
|
|
1070
|
-
__publicField$
|
|
1070
|
+
__publicField$W(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"]);
|
|
1071
1071
|
/**
|
|
1072
1072
|
* A registry of all created records.
|
|
1073
1073
|
*
|
|
1074
1074
|
* @private
|
|
1075
1075
|
*/
|
|
1076
|
-
__publicField$
|
|
1077
|
-
__publicField$
|
|
1076
|
+
__publicField$W(this, "createdRecords", []);
|
|
1077
|
+
__publicField$W(this, "restoreSystemConfig", {});
|
|
1078
1078
|
/**
|
|
1079
1079
|
* A registry of all created sales channel records.
|
|
1080
1080
|
*
|
|
1081
1081
|
* @private
|
|
1082
1082
|
*/
|
|
1083
|
-
__publicField$
|
|
1083
|
+
__publicField$W(this, "createdSalesChannelRecords", []);
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Function that generates combinations from n number of arrays
|
|
1086
1086
|
* with m number of elements in them.
|
|
1087
1087
|
* @param array
|
|
1088
1088
|
*/
|
|
1089
|
-
__publicField$
|
|
1089
|
+
__publicField$W(this, "combineAll", (array) => {
|
|
1090
1090
|
const result = [];
|
|
1091
1091
|
const max = array.length - 1;
|
|
1092
1092
|
const helper = (tmpArray, i) => {
|
|
@@ -1249,6 +1249,21 @@ class TestDataService {
|
|
|
1249
1249
|
});
|
|
1250
1250
|
return variantProducts;
|
|
1251
1251
|
}
|
|
1252
|
+
/**
|
|
1253
|
+
* Creates a product review
|
|
1254
|
+
*
|
|
1255
|
+
* @param productId - The uuid of the product to which the review should be assigned.
|
|
1256
|
+
* @param overrides - Specific data overrides that will be applied to the review data struct.
|
|
1257
|
+
*/
|
|
1258
|
+
async createProductReview(productId, overrides = {}) {
|
|
1259
|
+
const basicProductReview = this.getBasicProductReviewStruct(productId, overrides);
|
|
1260
|
+
const productReviewResponse = await this.AdminApiClient.post("product-review?_response=detail", {
|
|
1261
|
+
data: basicProductReview
|
|
1262
|
+
});
|
|
1263
|
+
expect(productReviewResponse.ok()).toBeTruthy();
|
|
1264
|
+
const { data: review } = await productReviewResponse.json();
|
|
1265
|
+
return review;
|
|
1266
|
+
}
|
|
1252
1267
|
/**
|
|
1253
1268
|
* Creates a basic manufacturer without images or other special configuration.
|
|
1254
1269
|
*
|
|
@@ -3201,6 +3216,20 @@ class TestDataService {
|
|
|
3201
3216
|
};
|
|
3202
3217
|
return Object.assign({}, defaultCrossSelling, overrides);
|
|
3203
3218
|
}
|
|
3219
|
+
getBasicProductReviewStruct(productId, overrides = {}) {
|
|
3220
|
+
const { id: productReviewId, uuid: productReviewUuid } = this.IdProvider.getIdPair();
|
|
3221
|
+
const productReviewName = `${this.namePrefix}ProductReview-${productReviewId}${this.nameSuffix}`;
|
|
3222
|
+
const defaultProductReview = {
|
|
3223
|
+
id: productReviewUuid,
|
|
3224
|
+
productId,
|
|
3225
|
+
title: productReviewName,
|
|
3226
|
+
content: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.",
|
|
3227
|
+
points: 5,
|
|
3228
|
+
status: true,
|
|
3229
|
+
salesChannelId: this.defaultSalesChannel.id
|
|
3230
|
+
};
|
|
3231
|
+
return Object.assign({}, defaultProductReview, overrides);
|
|
3232
|
+
}
|
|
3204
3233
|
}
|
|
3205
3234
|
|
|
3206
3235
|
const test$9 = test$f.extend({
|
|
@@ -3219,16 +3248,16 @@ const test$9 = test$f.extend({
|
|
|
3219
3248
|
}
|
|
3220
3249
|
});
|
|
3221
3250
|
|
|
3222
|
-
var __defProp$
|
|
3223
|
-
var __defNormalProp$
|
|
3224
|
-
var __publicField$
|
|
3225
|
-
__defNormalProp$
|
|
3251
|
+
var __defProp$V = Object.defineProperty;
|
|
3252
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3253
|
+
var __publicField$V = (obj, key, value) => {
|
|
3254
|
+
__defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3226
3255
|
return value;
|
|
3227
3256
|
};
|
|
3228
3257
|
class IdProvider {
|
|
3229
3258
|
constructor(workerIndex, seed) {
|
|
3230
|
-
__publicField$
|
|
3231
|
-
__publicField$
|
|
3259
|
+
__publicField$V(this, "workerIndex");
|
|
3260
|
+
__publicField$V(this, "seed");
|
|
3232
3261
|
this.workerIndex = workerIndex;
|
|
3233
3262
|
this.seed = seed;
|
|
3234
3263
|
}
|
|
@@ -3312,45 +3341,80 @@ const test$8 = test$f.extend({
|
|
|
3312
3341
|
]
|
|
3313
3342
|
});
|
|
3314
3343
|
|
|
3315
|
-
var __defProp$
|
|
3316
|
-
var __defNormalProp$
|
|
3317
|
-
var __publicField$
|
|
3318
|
-
__defNormalProp$
|
|
3344
|
+
var __defProp$U = Object.defineProperty;
|
|
3345
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3346
|
+
var __publicField$U = (obj, key, value) => {
|
|
3347
|
+
__defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3319
3348
|
return value;
|
|
3320
3349
|
};
|
|
3321
3350
|
class Home {
|
|
3322
3351
|
constructor(page) {
|
|
3323
3352
|
this.page = page;
|
|
3324
|
-
__publicField$
|
|
3325
|
-
__publicField$
|
|
3326
|
-
__publicField$
|
|
3327
|
-
__publicField$
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
__publicField$
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
__publicField$
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
__publicField$
|
|
3353
|
+
__publicField$U(this, "accountMenuButton");
|
|
3354
|
+
__publicField$U(this, "closeGuestSessionButton");
|
|
3355
|
+
__publicField$U(this, "productImages");
|
|
3356
|
+
__publicField$U(this, "productListItems");
|
|
3357
|
+
/**
|
|
3358
|
+
* @deprecated Use 'Header/languagesDropdown' instead
|
|
3359
|
+
*/
|
|
3360
|
+
__publicField$U(this, "languagesDropdown");
|
|
3361
|
+
/**
|
|
3362
|
+
* @deprecated Use 'Header/languagesMenuOptions' instead
|
|
3363
|
+
*/
|
|
3364
|
+
__publicField$U(this, "languagesMenuOptions");
|
|
3365
|
+
/**
|
|
3366
|
+
* @deprecated Use 'Header/currenciesDropdown' instead
|
|
3367
|
+
*/
|
|
3368
|
+
__publicField$U(this, "currenciesDropdown");
|
|
3369
|
+
/**
|
|
3370
|
+
* @deprecated Use 'Header/currenciesMenuOptions' instead
|
|
3371
|
+
*/
|
|
3372
|
+
__publicField$U(this, "currenciesMenuOptions");
|
|
3373
|
+
__publicField$U(this, "consentOnlyTechnicallyRequiredButton");
|
|
3374
|
+
__publicField$U(this, "consentConfigureButton");
|
|
3375
|
+
__publicField$U(this, "consentAcceptAllCookiesButton");
|
|
3376
|
+
__publicField$U(this, "consentCookiePreferences");
|
|
3377
|
+
__publicField$U(this, "consentCookiePermissionContent");
|
|
3378
|
+
__publicField$U(this, "consentDialog");
|
|
3379
|
+
__publicField$U(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
3380
|
+
__publicField$U(this, "consentDialogStatisticsCheckbox");
|
|
3340
3381
|
/**
|
|
3341
3382
|
* @deprecated Use 'consentDialogMarketingCheckbox' instead
|
|
3342
3383
|
*/
|
|
3343
|
-
__publicField$
|
|
3344
|
-
__publicField$
|
|
3345
|
-
__publicField$
|
|
3346
|
-
__publicField$
|
|
3347
|
-
__publicField$
|
|
3348
|
-
__publicField$
|
|
3349
|
-
|
|
3350
|
-
|
|
3384
|
+
__publicField$U(this, "consentDialogMarketingdCheckbox");
|
|
3385
|
+
__publicField$U(this, "consentDialogMarketingCheckbox");
|
|
3386
|
+
__publicField$U(this, "consentDialogAcceptAllCookiesButton");
|
|
3387
|
+
__publicField$U(this, "consentDialogSaveButton");
|
|
3388
|
+
__publicField$U(this, "consentCookieBannerContainer");
|
|
3389
|
+
__publicField$U(this, "offcanvasBackdrop");
|
|
3390
|
+
/**
|
|
3391
|
+
* @deprecated Use 'Header/mainNavigationLink' instead
|
|
3392
|
+
*/
|
|
3393
|
+
__publicField$U(this, "mainNavigationLink");
|
|
3394
|
+
/**
|
|
3395
|
+
* @deprecated Use 'Footer/contactFormLink' instead
|
|
3396
|
+
*/
|
|
3397
|
+
__publicField$U(this, "contactFormLink");
|
|
3351
3398
|
//wishlist
|
|
3352
|
-
|
|
3353
|
-
|
|
3399
|
+
/**
|
|
3400
|
+
* @deprecated Use 'Header/wishlistIcon' instead
|
|
3401
|
+
*/
|
|
3402
|
+
__publicField$U(this, "wishlistIcon");
|
|
3403
|
+
/**
|
|
3404
|
+
* @deprecated Use 'Header/wishlistBasket' instead
|
|
3405
|
+
*/
|
|
3406
|
+
__publicField$U(this, "wishlistBasket");
|
|
3407
|
+
//product filters
|
|
3408
|
+
__publicField$U(this, "filterMultiSelect");
|
|
3409
|
+
__publicField$U(this, "manufacturerFilter");
|
|
3410
|
+
__publicField$U(this, "propertyFilters");
|
|
3411
|
+
__publicField$U(this, "priceFilterButton");
|
|
3412
|
+
__publicField$U(this, "resetAllButton");
|
|
3413
|
+
__publicField$U(this, "freeShippingFilter");
|
|
3414
|
+
__publicField$U(this, "productList");
|
|
3415
|
+
__publicField$U(this, "productItemNames");
|
|
3416
|
+
__publicField$U(this, "productRatingButton");
|
|
3417
|
+
__publicField$U(this, "productRatingList");
|
|
3354
3418
|
this.accountMenuButton = page.getByLabel("Your account");
|
|
3355
3419
|
this.closeGuestSessionButton = page.locator(".account-aside-btn");
|
|
3356
3420
|
this.productImages = page.locator(".product-image-wrapper");
|
|
@@ -3389,6 +3453,25 @@ class Home {
|
|
|
3389
3453
|
this.contactFormLink = this.page.getByRole("listitem").getByTitle("Contact form", { exact: true });
|
|
3390
3454
|
this.wishlistIcon = page.locator(".header-wishlist-icon");
|
|
3391
3455
|
this.wishlistBasket = page.locator(".header-wishlist-badge");
|
|
3456
|
+
this.filterMultiSelect = page.locator(".filter-multi-select");
|
|
3457
|
+
this.manufacturerFilter = this.filterMultiSelect.getByRole("button", { name: "Manufacturer" });
|
|
3458
|
+
this.propertyFilters = page.locator(".filter-multi-select-properties");
|
|
3459
|
+
this.priceFilterButton = page.getByRole("button", { name: "Price" }).first();
|
|
3460
|
+
this.resetAllButton = page.getByRole("button", { name: "Reset all" });
|
|
3461
|
+
this.freeShippingFilter = page.getByRole("checkbox", { name: "Free shipping" });
|
|
3462
|
+
this.productList = page.locator(".cms-listing-row");
|
|
3463
|
+
this.productItemNames = this.productList.locator(".product-name");
|
|
3464
|
+
this.productRatingButton = this.filterMultiSelect.locator('.btn:has-text("Rating min.")');
|
|
3465
|
+
this.productRatingList = page.locator(".filter-rating-select-list-item");
|
|
3466
|
+
}
|
|
3467
|
+
async getRatingItemLocatorByRating(rating) {
|
|
3468
|
+
return this.productRatingList.filter({ hasText: `min. ${rating}/5` });
|
|
3469
|
+
}
|
|
3470
|
+
async getFilterItemByFilterName(filterName) {
|
|
3471
|
+
return this.filterMultiSelect.getByRole("checkbox", { name: filterName });
|
|
3472
|
+
}
|
|
3473
|
+
async getFilterButtonByFilterName(filterName) {
|
|
3474
|
+
return this.filterMultiSelect.getByRole("button", { name: filterName });
|
|
3392
3475
|
}
|
|
3393
3476
|
async getMenuItemByCategoryName(categoryName) {
|
|
3394
3477
|
const menuNavigationItem = this.page.locator(".nav-main").getByText(categoryName, { exact: true });
|
|
@@ -3483,31 +3566,34 @@ class Home {
|
|
|
3483
3566
|
}
|
|
3484
3567
|
}
|
|
3485
3568
|
|
|
3486
|
-
var __defProp$
|
|
3487
|
-
var __defNormalProp$
|
|
3488
|
-
var __publicField$
|
|
3489
|
-
__defNormalProp$
|
|
3569
|
+
var __defProp$T = Object.defineProperty;
|
|
3570
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3571
|
+
var __publicField$T = (obj, key, value) => {
|
|
3572
|
+
__defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3490
3573
|
return value;
|
|
3491
3574
|
};
|
|
3492
3575
|
let ProductDetail$1 = class ProductDetail {
|
|
3493
3576
|
constructor(page) {
|
|
3494
3577
|
this.page = page;
|
|
3495
|
-
__publicField$
|
|
3496
|
-
__publicField$
|
|
3497
|
-
__publicField$
|
|
3498
|
-
__publicField$
|
|
3499
|
-
__publicField$
|
|
3500
|
-
__publicField$
|
|
3501
|
-
__publicField$
|
|
3502
|
-
__publicField$
|
|
3503
|
-
__publicField$
|
|
3504
|
-
__publicField$
|
|
3505
|
-
__publicField$
|
|
3506
|
-
__publicField$
|
|
3507
|
-
__publicField$
|
|
3508
|
-
__publicField$
|
|
3509
|
-
__publicField$
|
|
3510
|
-
__publicField$
|
|
3578
|
+
__publicField$T(this, "addToCartButton");
|
|
3579
|
+
__publicField$T(this, "quantitySelect");
|
|
3580
|
+
__publicField$T(this, "productSingleImage");
|
|
3581
|
+
__publicField$T(this, "productSinglePrice");
|
|
3582
|
+
__publicField$T(this, "productPriceRangesRow");
|
|
3583
|
+
__publicField$T(this, "productListingPriceBadge");
|
|
3584
|
+
__publicField$T(this, "productListingPrice");
|
|
3585
|
+
__publicField$T(this, "productListingPricePercentage");
|
|
3586
|
+
__publicField$T(this, "offCanvasCartTitle");
|
|
3587
|
+
__publicField$T(this, "offCanvasCart");
|
|
3588
|
+
__publicField$T(this, "offCanvasCartGoToCheckoutButton");
|
|
3589
|
+
__publicField$T(this, "offCanvasLineItemImages");
|
|
3590
|
+
__publicField$T(this, "offCanvasSummaryTotalPrice");
|
|
3591
|
+
__publicField$T(this, "offCanvas");
|
|
3592
|
+
__publicField$T(this, "wishlistAddedButton");
|
|
3593
|
+
__publicField$T(this, "wishlistNotAddedButton");
|
|
3594
|
+
__publicField$T(this, "productDetailConfigurator");
|
|
3595
|
+
__publicField$T(this, "productDetailConfiguratorGroupTitle");
|
|
3596
|
+
__publicField$T(this, "productDetailConfiguratorOptionInputs");
|
|
3511
3597
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
3512
3598
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
3513
3599
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -3524,6 +3610,9 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
3524
3610
|
this.offCanvasSummaryTotalPrice = page.locator(".offcanvas-summary").locator('dt:has-text("Subtotal") + dd');
|
|
3525
3611
|
this.wishlistAddedButton = page.locator(".product-wishlist-added");
|
|
3526
3612
|
this.wishlistNotAddedButton = page.locator(".product-wishlist-not-added");
|
|
3613
|
+
this.productDetailConfigurator = page.locator(".product-detail-configurator");
|
|
3614
|
+
this.productDetailConfiguratorGroupTitle = page.locator(".product-detail-configurator-group-title");
|
|
3615
|
+
this.productDetailConfiguratorOptionInputs = page.locator(".product-detail-configurator-option-input");
|
|
3527
3616
|
}
|
|
3528
3617
|
url(productData) {
|
|
3529
3618
|
let namePath = "";
|
|
@@ -3534,18 +3623,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
3534
3623
|
}
|
|
3535
3624
|
};
|
|
3536
3625
|
|
|
3537
|
-
var __defProp$
|
|
3538
|
-
var __defNormalProp$
|
|
3539
|
-
var __publicField$
|
|
3540
|
-
__defNormalProp$
|
|
3626
|
+
var __defProp$S = Object.defineProperty;
|
|
3627
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3628
|
+
var __publicField$S = (obj, key, value) => {
|
|
3629
|
+
__defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3541
3630
|
return value;
|
|
3542
3631
|
};
|
|
3543
3632
|
class Category {
|
|
3544
3633
|
constructor(page) {
|
|
3545
3634
|
this.page = page;
|
|
3546
|
-
__publicField$
|
|
3547
|
-
__publicField$
|
|
3548
|
-
__publicField$
|
|
3635
|
+
__publicField$S(this, "sortingSelect");
|
|
3636
|
+
__publicField$S(this, "firstProductBuyButton");
|
|
3637
|
+
__publicField$S(this, "noProductsFoundAlert");
|
|
3549
3638
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
3550
3639
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
3551
3640
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -3555,24 +3644,24 @@ class Category {
|
|
|
3555
3644
|
}
|
|
3556
3645
|
}
|
|
3557
3646
|
|
|
3558
|
-
var __defProp$
|
|
3559
|
-
var __defNormalProp$
|
|
3560
|
-
var __publicField$
|
|
3561
|
-
__defNormalProp$
|
|
3647
|
+
var __defProp$R = Object.defineProperty;
|
|
3648
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3649
|
+
var __publicField$R = (obj, key, value) => {
|
|
3650
|
+
__defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3562
3651
|
return value;
|
|
3563
3652
|
};
|
|
3564
3653
|
class CheckoutCart {
|
|
3565
3654
|
constructor(page) {
|
|
3566
3655
|
this.page = page;
|
|
3567
|
-
__publicField$
|
|
3568
|
-
__publicField$
|
|
3569
|
-
__publicField$
|
|
3570
|
-
__publicField$
|
|
3571
|
-
__publicField$
|
|
3572
|
-
__publicField$
|
|
3573
|
-
__publicField$
|
|
3574
|
-
__publicField$
|
|
3575
|
-
__publicField$
|
|
3656
|
+
__publicField$R(this, "headline");
|
|
3657
|
+
__publicField$R(this, "goToCheckoutButton");
|
|
3658
|
+
__publicField$R(this, "enterPromoInput");
|
|
3659
|
+
__publicField$R(this, "grandTotalPrice");
|
|
3660
|
+
__publicField$R(this, "emptyCartAlert");
|
|
3661
|
+
__publicField$R(this, "stockReachedAlert");
|
|
3662
|
+
__publicField$R(this, "cartLineItemImages");
|
|
3663
|
+
__publicField$R(this, "unitPriceInfo");
|
|
3664
|
+
__publicField$R(this, "cartQuantityNumber");
|
|
3576
3665
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3577
3666
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
3578
3667
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -3613,25 +3702,25 @@ class CheckoutCart {
|
|
|
3613
3702
|
}
|
|
3614
3703
|
}
|
|
3615
3704
|
|
|
3616
|
-
var __defProp$
|
|
3617
|
-
var __defNormalProp$
|
|
3618
|
-
var __publicField$
|
|
3619
|
-
__defNormalProp$
|
|
3705
|
+
var __defProp$Q = Object.defineProperty;
|
|
3706
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3707
|
+
var __publicField$Q = (obj, key, value) => {
|
|
3708
|
+
__defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3620
3709
|
return value;
|
|
3621
3710
|
};
|
|
3622
3711
|
class OffCanvasCart {
|
|
3623
3712
|
constructor(page) {
|
|
3624
3713
|
this.page = page;
|
|
3625
|
-
__publicField$
|
|
3626
|
-
__publicField$
|
|
3627
|
-
__publicField$
|
|
3628
|
-
__publicField$
|
|
3629
|
-
__publicField$
|
|
3630
|
-
__publicField$
|
|
3631
|
-
__publicField$
|
|
3632
|
-
__publicField$
|
|
3633
|
-
__publicField$
|
|
3634
|
-
__publicField$
|
|
3714
|
+
__publicField$Q(this, "headline");
|
|
3715
|
+
__publicField$Q(this, "itemCount");
|
|
3716
|
+
__publicField$Q(this, "goToCheckoutButton");
|
|
3717
|
+
__publicField$Q(this, "goToCartButton");
|
|
3718
|
+
__publicField$Q(this, "continueShoppingButton");
|
|
3719
|
+
__publicField$Q(this, "enterPromoInput");
|
|
3720
|
+
__publicField$Q(this, "submitDiscountButton");
|
|
3721
|
+
__publicField$Q(this, "subTotalPrice");
|
|
3722
|
+
__publicField$Q(this, "shippingCosts");
|
|
3723
|
+
__publicField$Q(this, "cartQuantityNumber");
|
|
3635
3724
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3636
3725
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
3637
3726
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -3677,36 +3766,36 @@ class OffCanvasCart {
|
|
|
3677
3766
|
}
|
|
3678
3767
|
}
|
|
3679
3768
|
|
|
3680
|
-
var __defProp$
|
|
3681
|
-
var __defNormalProp$
|
|
3682
|
-
var __publicField$
|
|
3683
|
-
__defNormalProp$
|
|
3769
|
+
var __defProp$P = Object.defineProperty;
|
|
3770
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3771
|
+
var __publicField$P = (obj, key, value) => {
|
|
3772
|
+
__defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3684
3773
|
return value;
|
|
3685
3774
|
};
|
|
3686
3775
|
class CheckoutConfirm {
|
|
3687
3776
|
constructor(page) {
|
|
3688
3777
|
this.page = page;
|
|
3689
|
-
__publicField$
|
|
3690
|
-
__publicField$
|
|
3691
|
-
__publicField$
|
|
3692
|
-
__publicField$
|
|
3693
|
-
__publicField$
|
|
3694
|
-
__publicField$
|
|
3778
|
+
__publicField$P(this, "headline");
|
|
3779
|
+
__publicField$P(this, "termsAndConditionsCheckbox");
|
|
3780
|
+
__publicField$P(this, "immediateAccessToDigitalProductCheckbox");
|
|
3781
|
+
__publicField$P(this, "grandTotalPrice");
|
|
3782
|
+
__publicField$P(this, "taxPrice");
|
|
3783
|
+
__publicField$P(this, "submitOrderButton");
|
|
3695
3784
|
/**
|
|
3696
3785
|
* Payment options
|
|
3697
3786
|
*/
|
|
3698
|
-
__publicField$
|
|
3699
|
-
__publicField$
|
|
3700
|
-
__publicField$
|
|
3787
|
+
__publicField$P(this, "paymentCashOnDelivery");
|
|
3788
|
+
__publicField$P(this, "paymentPaidInAdvance");
|
|
3789
|
+
__publicField$P(this, "paymentInvoice");
|
|
3701
3790
|
/**
|
|
3702
3791
|
* Shipping options
|
|
3703
3792
|
*/
|
|
3704
|
-
__publicField$
|
|
3705
|
-
__publicField$
|
|
3793
|
+
__publicField$P(this, "shippingStandard");
|
|
3794
|
+
__publicField$P(this, "shippingExpress");
|
|
3706
3795
|
/**
|
|
3707
3796
|
* Product details
|
|
3708
3797
|
*/
|
|
3709
|
-
__publicField$
|
|
3798
|
+
__publicField$P(this, "cartLineItemImages");
|
|
3710
3799
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3711
3800
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3712
3801
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3725,21 +3814,21 @@ class CheckoutConfirm {
|
|
|
3725
3814
|
}
|
|
3726
3815
|
}
|
|
3727
3816
|
|
|
3728
|
-
var __defProp$
|
|
3729
|
-
var __defNormalProp$
|
|
3730
|
-
var __publicField$
|
|
3731
|
-
__defNormalProp$
|
|
3817
|
+
var __defProp$O = Object.defineProperty;
|
|
3818
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3819
|
+
var __publicField$O = (obj, key, value) => {
|
|
3820
|
+
__defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3732
3821
|
return value;
|
|
3733
3822
|
};
|
|
3734
3823
|
class CheckoutFinish {
|
|
3735
3824
|
constructor(page) {
|
|
3736
3825
|
this.page = page;
|
|
3737
|
-
__publicField$
|
|
3738
|
-
__publicField$
|
|
3739
|
-
__publicField$
|
|
3740
|
-
__publicField$
|
|
3741
|
-
__publicField$
|
|
3742
|
-
__publicField$
|
|
3826
|
+
__publicField$O(this, "headline");
|
|
3827
|
+
__publicField$O(this, "orderNumberText");
|
|
3828
|
+
__publicField$O(this, "grandTotalPrice");
|
|
3829
|
+
__publicField$O(this, "taxPrice");
|
|
3830
|
+
__publicField$O(this, "cartLineItemImages");
|
|
3831
|
+
__publicField$O(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3743
3832
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3744
3833
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3745
3834
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3768,16 +3857,16 @@ class CheckoutFinish {
|
|
|
3768
3857
|
}
|
|
3769
3858
|
}
|
|
3770
3859
|
|
|
3771
|
-
var __defProp$
|
|
3772
|
-
var __defNormalProp$
|
|
3773
|
-
var __publicField$
|
|
3774
|
-
__defNormalProp$
|
|
3860
|
+
var __defProp$N = Object.defineProperty;
|
|
3861
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3862
|
+
var __publicField$N = (obj, key, value) => {
|
|
3863
|
+
__defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3775
3864
|
return value;
|
|
3776
3865
|
};
|
|
3777
3866
|
class CheckoutRegister {
|
|
3778
3867
|
constructor(page) {
|
|
3779
3868
|
this.page = page;
|
|
3780
|
-
__publicField$
|
|
3869
|
+
__publicField$N(this, "cartLineItemImages");
|
|
3781
3870
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3782
3871
|
}
|
|
3783
3872
|
url() {
|
|
@@ -3785,26 +3874,26 @@ class CheckoutRegister {
|
|
|
3785
3874
|
}
|
|
3786
3875
|
}
|
|
3787
3876
|
|
|
3788
|
-
var __defProp$
|
|
3789
|
-
var __defNormalProp$
|
|
3790
|
-
var __publicField$
|
|
3791
|
-
__defNormalProp$
|
|
3877
|
+
var __defProp$M = Object.defineProperty;
|
|
3878
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3879
|
+
var __publicField$M = (obj, key, value) => {
|
|
3880
|
+
__defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3792
3881
|
return value;
|
|
3793
3882
|
};
|
|
3794
3883
|
class Account {
|
|
3795
3884
|
constructor(page, instanceMeta) {
|
|
3796
3885
|
this.page = page;
|
|
3797
3886
|
this.instanceMeta = instanceMeta;
|
|
3798
|
-
__publicField$
|
|
3799
|
-
__publicField$
|
|
3800
|
-
__publicField$
|
|
3801
|
-
__publicField$
|
|
3802
|
-
__publicField$
|
|
3803
|
-
__publicField$
|
|
3804
|
-
__publicField$
|
|
3805
|
-
__publicField$
|
|
3806
|
-
__publicField$
|
|
3807
|
-
__publicField$
|
|
3887
|
+
__publicField$M(this, "headline");
|
|
3888
|
+
__publicField$M(this, "personalDataCardTitle");
|
|
3889
|
+
__publicField$M(this, "paymentMethodCardTitle");
|
|
3890
|
+
__publicField$M(this, "billingAddressCardTitle");
|
|
3891
|
+
__publicField$M(this, "shippingAddressCardTitle");
|
|
3892
|
+
__publicField$M(this, "newsletterCheckbox");
|
|
3893
|
+
__publicField$M(this, "newsletterRegistrationSuccessMessage");
|
|
3894
|
+
__publicField$M(this, "customerGroupRequestMessage");
|
|
3895
|
+
__publicField$M(this, "cannotDeliverToCountryAlert");
|
|
3896
|
+
__publicField$M(this, "shippingToAddressNotPossibleAlert");
|
|
3808
3897
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3809
3898
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3810
3899
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3828,57 +3917,57 @@ class Account {
|
|
|
3828
3917
|
}
|
|
3829
3918
|
}
|
|
3830
3919
|
|
|
3831
|
-
var __defProp$
|
|
3832
|
-
var __defNormalProp$
|
|
3833
|
-
var __publicField$
|
|
3834
|
-
__defNormalProp$
|
|
3920
|
+
var __defProp$L = Object.defineProperty;
|
|
3921
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3922
|
+
var __publicField$L = (obj, key, value) => {
|
|
3923
|
+
__defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3835
3924
|
return value;
|
|
3836
3925
|
};
|
|
3837
3926
|
class AccountLogin {
|
|
3838
3927
|
constructor(page) {
|
|
3839
3928
|
this.page = page;
|
|
3840
|
-
__publicField$
|
|
3841
|
-
__publicField$
|
|
3842
|
-
__publicField$
|
|
3843
|
-
__publicField$
|
|
3844
|
-
__publicField$
|
|
3845
|
-
__publicField$
|
|
3846
|
-
__publicField$
|
|
3847
|
-
__publicField$
|
|
3929
|
+
__publicField$L(this, "emailInput");
|
|
3930
|
+
__publicField$L(this, "passwordInput");
|
|
3931
|
+
__publicField$L(this, "forgotPasswordLink");
|
|
3932
|
+
__publicField$L(this, "loginButton");
|
|
3933
|
+
__publicField$L(this, "logoutLink");
|
|
3934
|
+
__publicField$L(this, "successAlert");
|
|
3935
|
+
__publicField$L(this, "invalidCredentialsAlert");
|
|
3936
|
+
__publicField$L(this, "passwordUpdatedAlert");
|
|
3848
3937
|
// Inputs for registration
|
|
3849
|
-
__publicField$
|
|
3850
|
-
__publicField$
|
|
3851
|
-
__publicField$
|
|
3852
|
-
__publicField$
|
|
3853
|
-
__publicField$
|
|
3854
|
-
__publicField$
|
|
3855
|
-
__publicField$
|
|
3856
|
-
__publicField$
|
|
3857
|
-
__publicField$
|
|
3858
|
-
__publicField$
|
|
3859
|
-
__publicField$
|
|
3860
|
-
__publicField$
|
|
3861
|
-
__publicField$
|
|
3862
|
-
__publicField$
|
|
3863
|
-
__publicField$
|
|
3864
|
-
__publicField$
|
|
3938
|
+
__publicField$L(this, "personalFormArea");
|
|
3939
|
+
__publicField$L(this, "billingAddressFormArea");
|
|
3940
|
+
__publicField$L(this, "accountTypeSelect");
|
|
3941
|
+
__publicField$L(this, "salutationSelect");
|
|
3942
|
+
__publicField$L(this, "firstNameInput");
|
|
3943
|
+
__publicField$L(this, "lastNameInput");
|
|
3944
|
+
__publicField$L(this, "companyInput");
|
|
3945
|
+
__publicField$L(this, "departmentInput");
|
|
3946
|
+
__publicField$L(this, "vatRegNoInput");
|
|
3947
|
+
__publicField$L(this, "registerEmailInput");
|
|
3948
|
+
__publicField$L(this, "registerPasswordInput");
|
|
3949
|
+
__publicField$L(this, "streetAddressInput");
|
|
3950
|
+
__publicField$L(this, "cityInput");
|
|
3951
|
+
__publicField$L(this, "countryInput");
|
|
3952
|
+
__publicField$L(this, "postalCodeInput");
|
|
3953
|
+
__publicField$L(this, "registerButton");
|
|
3865
3954
|
// Inputs for reCaptcha
|
|
3866
|
-
__publicField$
|
|
3867
|
-
__publicField$
|
|
3868
|
-
__publicField$
|
|
3869
|
-
__publicField$
|
|
3870
|
-
__publicField$
|
|
3955
|
+
__publicField$L(this, "greCaptchaV2Container");
|
|
3956
|
+
__publicField$L(this, "greCaptchaV2Input");
|
|
3957
|
+
__publicField$L(this, "greCaptchaV3Input");
|
|
3958
|
+
__publicField$L(this, "greCaptchaProtectionInformation");
|
|
3959
|
+
__publicField$L(this, "greCaptchaBadge");
|
|
3871
3960
|
//Input for shipping address
|
|
3872
|
-
__publicField$
|
|
3873
|
-
__publicField$
|
|
3874
|
-
__publicField$
|
|
3875
|
-
__publicField$
|
|
3876
|
-
__publicField$
|
|
3877
|
-
__publicField$
|
|
3878
|
-
__publicField$
|
|
3879
|
-
__publicField$
|
|
3880
|
-
__publicField$
|
|
3881
|
-
__publicField$
|
|
3961
|
+
__publicField$L(this, "differentShippingAddressCheckbox");
|
|
3962
|
+
__publicField$L(this, "registerShippingAddressFormArea");
|
|
3963
|
+
__publicField$L(this, "shippingAddressSalutationSelect");
|
|
3964
|
+
__publicField$L(this, "shippingAddressFirstNameInput");
|
|
3965
|
+
__publicField$L(this, "shippingAddressLastNameInput");
|
|
3966
|
+
__publicField$L(this, "shippingAddressStreetAddressInput");
|
|
3967
|
+
__publicField$L(this, "shippingAddressCityInput");
|
|
3968
|
+
__publicField$L(this, "shippingAddressCountryInput");
|
|
3969
|
+
__publicField$L(this, "shippingAddressPostalCodeInput");
|
|
3970
|
+
__publicField$L(this, "shippingAddressStateInput");
|
|
3882
3971
|
this.emailInput = page.getByLabel("Your email address");
|
|
3883
3972
|
this.passwordInput = page.getByLabel("Your password");
|
|
3884
3973
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -3928,26 +4017,26 @@ class AccountLogin {
|
|
|
3928
4017
|
}
|
|
3929
4018
|
}
|
|
3930
4019
|
|
|
3931
|
-
var __defProp$
|
|
3932
|
-
var __defNormalProp$
|
|
3933
|
-
var __publicField$
|
|
3934
|
-
__defNormalProp$
|
|
4020
|
+
var __defProp$K = Object.defineProperty;
|
|
4021
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4022
|
+
var __publicField$K = (obj, key, value) => {
|
|
4023
|
+
__defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3935
4024
|
return value;
|
|
3936
4025
|
};
|
|
3937
4026
|
class AccountRecover {
|
|
3938
4027
|
constructor(page) {
|
|
3939
4028
|
this.page = page;
|
|
3940
|
-
__publicField$
|
|
3941
|
-
__publicField$
|
|
3942
|
-
__publicField$
|
|
3943
|
-
__publicField$
|
|
3944
|
-
__publicField$
|
|
3945
|
-
__publicField$
|
|
3946
|
-
__publicField$
|
|
3947
|
-
__publicField$
|
|
3948
|
-
__publicField$
|
|
3949
|
-
__publicField$
|
|
3950
|
-
__publicField$
|
|
4029
|
+
__publicField$K(this, "passwordRecoveryForm");
|
|
4030
|
+
__publicField$K(this, "title");
|
|
4031
|
+
__publicField$K(this, "subtitle");
|
|
4032
|
+
__publicField$K(this, "emailInput");
|
|
4033
|
+
__publicField$K(this, "requestEmailButton");
|
|
4034
|
+
__publicField$K(this, "backButton");
|
|
4035
|
+
__publicField$K(this, "passwordResetEmailSentMessage");
|
|
4036
|
+
__publicField$K(this, "newPasswordInput");
|
|
4037
|
+
__publicField$K(this, "newPasswordConfirmInput");
|
|
4038
|
+
__publicField$K(this, "changePasswordButton");
|
|
4039
|
+
__publicField$K(this, "invalidLinkMessage");
|
|
3951
4040
|
this.passwordRecoveryForm = page.locator(".account-recover-password-form");
|
|
3952
4041
|
const cardTitle = this.passwordRecoveryForm.locator(".card-title");
|
|
3953
4042
|
this.title = cardTitle.getByText("Password recovery");
|
|
@@ -3969,36 +4058,36 @@ class AccountRecover {
|
|
|
3969
4058
|
}
|
|
3970
4059
|
}
|
|
3971
4060
|
|
|
3972
|
-
var __defProp$
|
|
3973
|
-
var __defNormalProp$
|
|
3974
|
-
var __publicField$
|
|
3975
|
-
__defNormalProp$
|
|
4061
|
+
var __defProp$J = Object.defineProperty;
|
|
4062
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4063
|
+
var __publicField$J = (obj, key, value) => {
|
|
4064
|
+
__defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3976
4065
|
return value;
|
|
3977
4066
|
};
|
|
3978
4067
|
class AccountProfile {
|
|
3979
4068
|
constructor(page, instanceMeta) {
|
|
3980
4069
|
this.page = page;
|
|
3981
4070
|
this.instanceMeta = instanceMeta;
|
|
3982
|
-
__publicField$
|
|
3983
|
-
__publicField$
|
|
3984
|
-
__publicField$
|
|
3985
|
-
__publicField$
|
|
3986
|
-
__publicField$
|
|
3987
|
-
__publicField$
|
|
3988
|
-
__publicField$
|
|
3989
|
-
__publicField$
|
|
3990
|
-
__publicField$
|
|
3991
|
-
__publicField$
|
|
3992
|
-
__publicField$
|
|
3993
|
-
__publicField$
|
|
3994
|
-
__publicField$
|
|
3995
|
-
__publicField$
|
|
3996
|
-
__publicField$
|
|
3997
|
-
__publicField$
|
|
3998
|
-
__publicField$
|
|
3999
|
-
__publicField$
|
|
4000
|
-
__publicField$
|
|
4001
|
-
__publicField$
|
|
4071
|
+
__publicField$J(this, "salutationSelect");
|
|
4072
|
+
__publicField$J(this, "firstNameInput");
|
|
4073
|
+
__publicField$J(this, "lastNameInput");
|
|
4074
|
+
__publicField$J(this, "saveProfileButton");
|
|
4075
|
+
__publicField$J(this, "changeEmailButton");
|
|
4076
|
+
__publicField$J(this, "emailAddressInput");
|
|
4077
|
+
__publicField$J(this, "emailAddressConfirmInput");
|
|
4078
|
+
__publicField$J(this, "emailConfirmPasswordInput");
|
|
4079
|
+
__publicField$J(this, "saveEmailAddressButton");
|
|
4080
|
+
__publicField$J(this, "changePasswordButton");
|
|
4081
|
+
__publicField$J(this, "newPasswordInput");
|
|
4082
|
+
__publicField$J(this, "newPasswordConfirmInput");
|
|
4083
|
+
__publicField$J(this, "currentPasswordInput");
|
|
4084
|
+
__publicField$J(this, "saveNewPasswordButton");
|
|
4085
|
+
__publicField$J(this, "loginDataEmailAddress");
|
|
4086
|
+
__publicField$J(this, "emailUpdateMessage");
|
|
4087
|
+
__publicField$J(this, "passwordUpdateMessage");
|
|
4088
|
+
__publicField$J(this, "emailValidationAlert");
|
|
4089
|
+
__publicField$J(this, "emailUpdateFailureAlert");
|
|
4090
|
+
__publicField$J(this, "passwordUpdateFailureAlert");
|
|
4002
4091
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
4003
4092
|
this.firstNameInput = page.getByLabel("First name");
|
|
4004
4093
|
this.lastNameInput = page.getByLabel("Last name");
|
|
@@ -4038,21 +4127,21 @@ class AccountProfile {
|
|
|
4038
4127
|
}
|
|
4039
4128
|
}
|
|
4040
4129
|
|
|
4041
|
-
var __defProp$
|
|
4042
|
-
var __defNormalProp$
|
|
4043
|
-
var __publicField$
|
|
4044
|
-
__defNormalProp$
|
|
4130
|
+
var __defProp$I = Object.defineProperty;
|
|
4131
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4132
|
+
var __publicField$I = (obj, key, value) => {
|
|
4133
|
+
__defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4045
4134
|
return value;
|
|
4046
4135
|
};
|
|
4047
4136
|
class AccountOrder {
|
|
4048
4137
|
constructor(page) {
|
|
4049
4138
|
this.page = page;
|
|
4050
|
-
__publicField$
|
|
4051
|
-
__publicField$
|
|
4052
|
-
__publicField$
|
|
4053
|
-
__publicField$
|
|
4054
|
-
__publicField$
|
|
4055
|
-
__publicField$
|
|
4139
|
+
__publicField$I(this, "cartLineItemImages");
|
|
4140
|
+
__publicField$I(this, "orderExpandButton");
|
|
4141
|
+
__publicField$I(this, "digitalProductDownloadButton");
|
|
4142
|
+
__publicField$I(this, "dialogOrderCancel");
|
|
4143
|
+
__publicField$I(this, "dialogOrderCancelButton");
|
|
4144
|
+
__publicField$I(this, "dialogBackButton");
|
|
4056
4145
|
this.orderExpandButton = page.getByRole("button", { name: /Expand|Show details/ }).first();
|
|
4057
4146
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
4058
4147
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
@@ -4100,26 +4189,27 @@ class AccountOrder {
|
|
|
4100
4189
|
}
|
|
4101
4190
|
}
|
|
4102
4191
|
|
|
4103
|
-
var __defProp$
|
|
4104
|
-
var __defNormalProp$
|
|
4105
|
-
var __publicField$
|
|
4106
|
-
__defNormalProp$
|
|
4192
|
+
var __defProp$H = Object.defineProperty;
|
|
4193
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4194
|
+
var __publicField$H = (obj, key, value) => {
|
|
4195
|
+
__defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4107
4196
|
return value;
|
|
4108
4197
|
};
|
|
4109
4198
|
class AccountAddresses {
|
|
4110
4199
|
constructor(page, instanceMeta) {
|
|
4111
4200
|
this.page = page;
|
|
4112
4201
|
this.instanceMeta = instanceMeta;
|
|
4113
|
-
__publicField$
|
|
4114
|
-
__publicField$
|
|
4115
|
-
__publicField$
|
|
4116
|
-
__publicField$
|
|
4117
|
-
__publicField$
|
|
4118
|
-
__publicField$
|
|
4119
|
-
__publicField$
|
|
4120
|
-
__publicField$
|
|
4121
|
-
__publicField$
|
|
4122
|
-
__publicField$
|
|
4202
|
+
__publicField$H(this, "addNewAddressButton");
|
|
4203
|
+
__publicField$H(this, "editBillingAddressButton");
|
|
4204
|
+
__publicField$H(this, "editShippingAddressButton");
|
|
4205
|
+
__publicField$H(this, "useDefaultBillingAddressButton");
|
|
4206
|
+
__publicField$H(this, "useDefaultShippingAddressButton");
|
|
4207
|
+
__publicField$H(this, "deliveryNotPossibleAlert");
|
|
4208
|
+
__publicField$H(this, "availableAddresses");
|
|
4209
|
+
__publicField$H(this, "addressDropdownButton");
|
|
4210
|
+
__publicField$H(this, "addressDropdownButtons");
|
|
4211
|
+
__publicField$H(this, "availableAddressesUseAsBillingAddress");
|
|
4212
|
+
__publicField$H(this, "availableAddressesUseAsShippingAddress");
|
|
4123
4213
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
4124
4214
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
4125
4215
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -4131,6 +4221,7 @@ class AccountAddresses {
|
|
|
4131
4221
|
} else {
|
|
4132
4222
|
this.availableAddresses = page.locator(".address-manager-list-wrapper");
|
|
4133
4223
|
this.addressDropdownButton = this.availableAddresses.getByRole("button", { name: "Address options" }).first();
|
|
4224
|
+
this.addressDropdownButtons = this.availableAddresses.getByRole("button", { name: "Address options" });
|
|
4134
4225
|
this.availableAddressesUseAsBillingAddress = this.availableAddresses.getByRole("button", { name: "Use as default billing address" });
|
|
4135
4226
|
this.availableAddressesUseAsShippingAddress = this.availableAddresses.getByRole("button", { name: "Use as default shipping address" });
|
|
4136
4227
|
}
|
|
@@ -4140,19 +4231,19 @@ class AccountAddresses {
|
|
|
4140
4231
|
}
|
|
4141
4232
|
}
|
|
4142
4233
|
|
|
4143
|
-
var __defProp$
|
|
4144
|
-
var __defNormalProp$
|
|
4145
|
-
var __publicField$
|
|
4146
|
-
__defNormalProp$
|
|
4234
|
+
var __defProp$G = Object.defineProperty;
|
|
4235
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4236
|
+
var __publicField$G = (obj, key, value) => {
|
|
4237
|
+
__defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4147
4238
|
return value;
|
|
4148
4239
|
};
|
|
4149
4240
|
class AccountPayment {
|
|
4150
4241
|
constructor(page) {
|
|
4151
4242
|
this.page = page;
|
|
4152
|
-
__publicField$
|
|
4153
|
-
__publicField$
|
|
4154
|
-
__publicField$
|
|
4155
|
-
__publicField$
|
|
4243
|
+
__publicField$G(this, "cashOnDeliveryOption");
|
|
4244
|
+
__publicField$G(this, "paidInAdvanceOption");
|
|
4245
|
+
__publicField$G(this, "invoiceOption");
|
|
4246
|
+
__publicField$G(this, "changeDefaultPaymentButton");
|
|
4156
4247
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
4157
4248
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
4158
4249
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -4163,17 +4254,17 @@ class AccountPayment {
|
|
|
4163
4254
|
}
|
|
4164
4255
|
}
|
|
4165
4256
|
|
|
4166
|
-
var __defProp$
|
|
4167
|
-
var __defNormalProp$
|
|
4168
|
-
var __publicField$
|
|
4169
|
-
__defNormalProp$
|
|
4257
|
+
var __defProp$F = Object.defineProperty;
|
|
4258
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4259
|
+
var __publicField$F = (obj, key, value) => {
|
|
4260
|
+
__defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4170
4261
|
return value;
|
|
4171
4262
|
};
|
|
4172
4263
|
class Search {
|
|
4173
4264
|
constructor(page) {
|
|
4174
4265
|
this.page = page;
|
|
4175
|
-
__publicField$
|
|
4176
|
-
__publicField$
|
|
4266
|
+
__publicField$F(this, "headline");
|
|
4267
|
+
__publicField$F(this, "productImages");
|
|
4177
4268
|
this.headline = page.locator("h1.search-headline");
|
|
4178
4269
|
this.productImages = page.locator(".product-image-wrapper");
|
|
4179
4270
|
}
|
|
@@ -4182,25 +4273,25 @@ class Search {
|
|
|
4182
4273
|
}
|
|
4183
4274
|
}
|
|
4184
4275
|
|
|
4185
|
-
var __defProp$
|
|
4186
|
-
var __defNormalProp$
|
|
4187
|
-
var __publicField$
|
|
4188
|
-
__defNormalProp$
|
|
4276
|
+
var __defProp$E = Object.defineProperty;
|
|
4277
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4278
|
+
var __publicField$E = (obj, key, value) => {
|
|
4279
|
+
__defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4189
4280
|
return value;
|
|
4190
4281
|
};
|
|
4191
4282
|
class SearchSuggest extends Home {
|
|
4192
4283
|
constructor(page) {
|
|
4193
4284
|
super(page);
|
|
4194
4285
|
this.page = page;
|
|
4195
|
-
__publicField$
|
|
4196
|
-
__publicField$
|
|
4197
|
-
__publicField$
|
|
4198
|
-
__publicField$
|
|
4199
|
-
__publicField$
|
|
4200
|
-
__publicField$
|
|
4201
|
-
__publicField$
|
|
4202
|
-
__publicField$
|
|
4203
|
-
__publicField$
|
|
4286
|
+
__publicField$E(this, "searchSuggestLineItemImages");
|
|
4287
|
+
__publicField$E(this, "searchInput");
|
|
4288
|
+
__publicField$E(this, "searchIcon");
|
|
4289
|
+
__publicField$E(this, "searchSuggestNoResult");
|
|
4290
|
+
__publicField$E(this, "searchSuggestLineItemName");
|
|
4291
|
+
__publicField$E(this, "searchSuggestLineItemPrice");
|
|
4292
|
+
__publicField$E(this, "searchSuggestTotalLink");
|
|
4293
|
+
__publicField$E(this, "searchResultTotal");
|
|
4294
|
+
__publicField$E(this, "searchHeadline");
|
|
4204
4295
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
4205
4296
|
this.searchInput = page.locator(".header-search-input");
|
|
4206
4297
|
this.searchIcon = page.locator(".header-search-icon");
|
|
@@ -4230,31 +4321,31 @@ class CustomRegister extends AccountLogin {
|
|
|
4230
4321
|
}
|
|
4231
4322
|
}
|
|
4232
4323
|
|
|
4233
|
-
var __defProp$
|
|
4234
|
-
var __defNormalProp$
|
|
4235
|
-
var __publicField$
|
|
4236
|
-
__defNormalProp$
|
|
4324
|
+
var __defProp$D = Object.defineProperty;
|
|
4325
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4326
|
+
var __publicField$D = (obj, key, value) => {
|
|
4327
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4237
4328
|
return value;
|
|
4238
4329
|
};
|
|
4239
4330
|
class CheckoutOrderEdit {
|
|
4240
4331
|
constructor(page) {
|
|
4241
4332
|
this.page = page;
|
|
4242
|
-
__publicField$
|
|
4243
|
-
__publicField$
|
|
4244
|
-
__publicField$
|
|
4245
|
-
__publicField$
|
|
4246
|
-
__publicField$
|
|
4333
|
+
__publicField$D(this, "completePaymentButton");
|
|
4334
|
+
__publicField$D(this, "orderCancelButton");
|
|
4335
|
+
__publicField$D(this, "dialogOrderCancel");
|
|
4336
|
+
__publicField$D(this, "dialogOrderCancelButton");
|
|
4337
|
+
__publicField$D(this, "dialogBackButton");
|
|
4247
4338
|
/**
|
|
4248
4339
|
* Payment options
|
|
4249
4340
|
*/
|
|
4250
|
-
__publicField$
|
|
4251
|
-
__publicField$
|
|
4252
|
-
__publicField$
|
|
4341
|
+
__publicField$D(this, "paymentCashOnDelivery");
|
|
4342
|
+
__publicField$D(this, "paymentPaidInAdvance");
|
|
4343
|
+
__publicField$D(this, "paymentInvoice");
|
|
4253
4344
|
/**
|
|
4254
4345
|
* Shipping options
|
|
4255
4346
|
*/
|
|
4256
|
-
__publicField$
|
|
4257
|
-
__publicField$
|
|
4347
|
+
__publicField$D(this, "shippingStandard");
|
|
4348
|
+
__publicField$D(this, "shippingExpress");
|
|
4258
4349
|
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
4259
4350
|
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
4260
4351
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
@@ -4279,26 +4370,26 @@ class CheckoutOrderEdit {
|
|
|
4279
4370
|
}
|
|
4280
4371
|
}
|
|
4281
4372
|
|
|
4282
|
-
var __defProp$
|
|
4283
|
-
var __defNormalProp$
|
|
4284
|
-
var __publicField$
|
|
4285
|
-
__defNormalProp$
|
|
4373
|
+
var __defProp$C = Object.defineProperty;
|
|
4374
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4375
|
+
var __publicField$C = (obj, key, value) => {
|
|
4376
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4286
4377
|
return value;
|
|
4287
4378
|
};
|
|
4288
4379
|
class AccountAddressCreate {
|
|
4289
4380
|
constructor(page) {
|
|
4290
4381
|
this.page = page;
|
|
4291
|
-
__publicField$
|
|
4292
|
-
__publicField$
|
|
4293
|
-
__publicField$
|
|
4294
|
-
__publicField$
|
|
4295
|
-
__publicField$
|
|
4296
|
-
__publicField$
|
|
4297
|
-
__publicField$
|
|
4298
|
-
__publicField$
|
|
4299
|
-
__publicField$
|
|
4300
|
-
__publicField$
|
|
4301
|
-
__publicField$
|
|
4382
|
+
__publicField$C(this, "salutationDropdown");
|
|
4383
|
+
__publicField$C(this, "firstNameInput");
|
|
4384
|
+
__publicField$C(this, "lastNameInput");
|
|
4385
|
+
__publicField$C(this, "companyInput");
|
|
4386
|
+
__publicField$C(this, "departmentInput");
|
|
4387
|
+
__publicField$C(this, "streetInput");
|
|
4388
|
+
__publicField$C(this, "zipcodeInput");
|
|
4389
|
+
__publicField$C(this, "cityInput");
|
|
4390
|
+
__publicField$C(this, "countryDropdown");
|
|
4391
|
+
__publicField$C(this, "saveAddressButton");
|
|
4392
|
+
__publicField$C(this, "stateDropdown");
|
|
4302
4393
|
this.salutationDropdown = page.getByRole("combobox", { name: "Salutation" });
|
|
4303
4394
|
this.firstNameInput = page.getByRole("textbox", { name: "First name" });
|
|
4304
4395
|
this.lastNameInput = page.getByRole("textbox", { name: "Last name" });
|
|
@@ -4316,19 +4407,19 @@ class AccountAddressCreate {
|
|
|
4316
4407
|
}
|
|
4317
4408
|
}
|
|
4318
4409
|
|
|
4319
|
-
var __defProp$
|
|
4320
|
-
var __defNormalProp$
|
|
4321
|
-
var __publicField$
|
|
4322
|
-
__defNormalProp$
|
|
4410
|
+
var __defProp$B = Object.defineProperty;
|
|
4411
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4412
|
+
var __publicField$B = (obj, key, value) => {
|
|
4413
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4323
4414
|
return value;
|
|
4324
4415
|
};
|
|
4325
4416
|
class PageNotFound {
|
|
4326
4417
|
constructor(page) {
|
|
4327
4418
|
this.page = page;
|
|
4328
|
-
__publicField$
|
|
4329
|
-
__publicField$
|
|
4330
|
-
__publicField$
|
|
4331
|
-
__publicField$
|
|
4419
|
+
__publicField$B(this, "pageNotFoundImage");
|
|
4420
|
+
__publicField$B(this, "headline");
|
|
4421
|
+
__publicField$B(this, "pageNotFoundMessage");
|
|
4422
|
+
__publicField$B(this, "backToShopButton");
|
|
4332
4423
|
this.pageNotFoundImage = page.getByAltText("Page not found");
|
|
4333
4424
|
this.headline = page.getByRole("heading", { name: "Page not found" });
|
|
4334
4425
|
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.`);
|
|
@@ -4339,10 +4430,10 @@ class PageNotFound {
|
|
|
4339
4430
|
}
|
|
4340
4431
|
}
|
|
4341
4432
|
|
|
4342
|
-
var __defProp$
|
|
4343
|
-
var __defNormalProp$
|
|
4344
|
-
var __publicField$
|
|
4345
|
-
__defNormalProp$
|
|
4433
|
+
var __defProp$A = Object.defineProperty;
|
|
4434
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4435
|
+
var __publicField$A = (obj, key, value) => {
|
|
4436
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4346
4437
|
return value;
|
|
4347
4438
|
};
|
|
4348
4439
|
class ContactForm extends Home {
|
|
@@ -4353,35 +4444,35 @@ class ContactForm extends Home {
|
|
|
4353
4444
|
/**
|
|
4354
4445
|
* @deprecated Compatible until shopware v6.6.x, will be removed in 6.8.0.0, use 'contactWrapper' instead
|
|
4355
4446
|
*/
|
|
4356
|
-
__publicField$
|
|
4447
|
+
__publicField$A(this, "contactModal");
|
|
4357
4448
|
/**
|
|
4358
4449
|
* @deprecated Compatible until shopware v6.6.x, will be removed in 6.8.0.0, use 'contactSuccessMessage' instead
|
|
4359
4450
|
*/
|
|
4360
|
-
__publicField$
|
|
4361
|
-
__publicField$
|
|
4362
|
-
__publicField$
|
|
4363
|
-
__publicField$
|
|
4364
|
-
__publicField$
|
|
4365
|
-
__publicField$
|
|
4366
|
-
__publicField$
|
|
4367
|
-
__publicField$
|
|
4368
|
-
__publicField$
|
|
4369
|
-
__publicField$
|
|
4370
|
-
__publicField$
|
|
4371
|
-
__publicField$
|
|
4372
|
-
__publicField$
|
|
4373
|
-
__publicField$
|
|
4374
|
-
__publicField$
|
|
4451
|
+
__publicField$A(this, "contactSuccessModal");
|
|
4452
|
+
__publicField$A(this, "contactWrapper");
|
|
4453
|
+
__publicField$A(this, "salutationSelect");
|
|
4454
|
+
__publicField$A(this, "firstNameInput");
|
|
4455
|
+
__publicField$A(this, "lastNameInput");
|
|
4456
|
+
__publicField$A(this, "emailInput");
|
|
4457
|
+
__publicField$A(this, "phoneInput");
|
|
4458
|
+
__publicField$A(this, "subjectInput");
|
|
4459
|
+
__publicField$A(this, "commentInput");
|
|
4460
|
+
__publicField$A(this, "privacyPolicyCheckbox");
|
|
4461
|
+
__publicField$A(this, "submitButton");
|
|
4462
|
+
__publicField$A(this, "contactSuccessMessage");
|
|
4463
|
+
__publicField$A(this, "cardTitle");
|
|
4464
|
+
__publicField$A(this, "formFieldFeedback");
|
|
4465
|
+
__publicField$A(this, "formAlert");
|
|
4375
4466
|
/**
|
|
4376
4467
|
* Captcha locators
|
|
4377
4468
|
*/
|
|
4378
|
-
__publicField$
|
|
4379
|
-
__publicField$
|
|
4380
|
-
__publicField$
|
|
4381
|
-
__publicField$
|
|
4382
|
-
__publicField$
|
|
4383
|
-
__publicField$
|
|
4384
|
-
__publicField$
|
|
4469
|
+
__publicField$A(this, "basicCaptcha");
|
|
4470
|
+
__publicField$A(this, "basicCaptchaImage");
|
|
4471
|
+
__publicField$A(this, "basicCaptchaRefreshButton");
|
|
4472
|
+
__publicField$A(this, "basicCaptchaInput");
|
|
4473
|
+
__publicField$A(this, "greCaptchaV2Container");
|
|
4474
|
+
__publicField$A(this, "greCaptchaV2Input");
|
|
4475
|
+
__publicField$A(this, "greCaptchaProtectionInformation");
|
|
4385
4476
|
this.contactWrapper = this.page.locator(".card").filter({ has: this.page.getByText("Contact") });
|
|
4386
4477
|
this.formFieldFeedback = this.contactWrapper.locator(".form-field-feedback");
|
|
4387
4478
|
this.formAlert = this.page.getByRole("alert");
|
|
@@ -4416,19 +4507,19 @@ class ContactForm extends Home {
|
|
|
4416
4507
|
}
|
|
4417
4508
|
}
|
|
4418
4509
|
|
|
4419
|
-
var __defProp$
|
|
4420
|
-
var __defNormalProp$
|
|
4421
|
-
var __publicField$
|
|
4422
|
-
__defNormalProp$
|
|
4510
|
+
var __defProp$z = Object.defineProperty;
|
|
4511
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4512
|
+
var __publicField$z = (obj, key, value) => {
|
|
4513
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4423
4514
|
return value;
|
|
4424
4515
|
};
|
|
4425
4516
|
class Wishlist extends Home {
|
|
4426
4517
|
constructor(page) {
|
|
4427
4518
|
super(page);
|
|
4428
4519
|
this.page = page;
|
|
4429
|
-
__publicField$
|
|
4430
|
-
__publicField$
|
|
4431
|
-
__publicField$
|
|
4520
|
+
__publicField$z(this, "wishListHeader");
|
|
4521
|
+
__publicField$z(this, "removeAlert");
|
|
4522
|
+
__publicField$z(this, "emptyListing");
|
|
4432
4523
|
this.wishListHeader = page.locator(".wishlist-headline");
|
|
4433
4524
|
this.removeAlert = page.locator(".alert-success");
|
|
4434
4525
|
this.emptyListing = page.locator(".wishlist-listing-empty");
|
|
@@ -4447,6 +4538,61 @@ class Wishlist extends Home {
|
|
|
4447
4538
|
}
|
|
4448
4539
|
}
|
|
4449
4540
|
|
|
4541
|
+
var __defProp$y = Object.defineProperty;
|
|
4542
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4543
|
+
var __publicField$y = (obj, key, value) => {
|
|
4544
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4545
|
+
return value;
|
|
4546
|
+
};
|
|
4547
|
+
class Footer {
|
|
4548
|
+
constructor(page) {
|
|
4549
|
+
this.page = page;
|
|
4550
|
+
__publicField$y(this, "footerHeadline");
|
|
4551
|
+
__publicField$y(this, "footerContent");
|
|
4552
|
+
__publicField$y(this, "footerHotline");
|
|
4553
|
+
__publicField$y(this, "footerContactForm");
|
|
4554
|
+
__publicField$y(this, "footerContactFormLink");
|
|
4555
|
+
this.footerHeadline = page.locator(".footer-column-headline");
|
|
4556
|
+
this.footerContent = page.locator(".footer-column-content-inner");
|
|
4557
|
+
this.footerHotline = page.locator(".footer-contact-hotline");
|
|
4558
|
+
this.footerContactForm = page.locator(".footer-contact-form");
|
|
4559
|
+
this.footerContactFormLink = page.getByRole("link", { name: "contact form" });
|
|
4560
|
+
}
|
|
4561
|
+
url() {
|
|
4562
|
+
throw new Error("Footer does not have an own url.");
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4566
|
+
var __defProp$x = Object.defineProperty;
|
|
4567
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4568
|
+
var __publicField$x = (obj, key, value) => {
|
|
4569
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4570
|
+
return value;
|
|
4571
|
+
};
|
|
4572
|
+
class Header {
|
|
4573
|
+
constructor(page) {
|
|
4574
|
+
this.page = page;
|
|
4575
|
+
__publicField$x(this, "mainNavigationLink");
|
|
4576
|
+
__publicField$x(this, "languagesDropdown");
|
|
4577
|
+
__publicField$x(this, "languagesMenuOptions");
|
|
4578
|
+
__publicField$x(this, "currenciesDropdown");
|
|
4579
|
+
__publicField$x(this, "currenciesMenuOptions");
|
|
4580
|
+
//wishlist
|
|
4581
|
+
__publicField$x(this, "wishlistIcon");
|
|
4582
|
+
__publicField$x(this, "wishlistBasket");
|
|
4583
|
+
this.mainNavigationLink = page.locator(".main-navigation-link-text");
|
|
4584
|
+
this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
|
|
4585
|
+
this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
|
|
4586
|
+
this.currenciesDropdown = page.locator(".top-bar-currency").filter({ has: page.getByRole("button") });
|
|
4587
|
+
this.currenciesMenuOptions = page.locator(".top-bar-currency").filter({ has: page.getByRole("list") });
|
|
4588
|
+
this.wishlistIcon = page.locator(".header-wishlist-icon");
|
|
4589
|
+
this.wishlistBasket = page.locator(".header-wishlist-badge");
|
|
4590
|
+
}
|
|
4591
|
+
url() {
|
|
4592
|
+
throw new Error("Header does not have an own url.");
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
|
|
4450
4596
|
const StorefrontPageObjects = {
|
|
4451
4597
|
Home,
|
|
4452
4598
|
ProductDetail: ProductDetail$1,
|
|
@@ -4470,7 +4616,9 @@ const StorefrontPageObjects = {
|
|
|
4470
4616
|
CheckoutOrderEdit,
|
|
4471
4617
|
PageNotFound,
|
|
4472
4618
|
ContactForm,
|
|
4473
|
-
Wishlist
|
|
4619
|
+
Wishlist,
|
|
4620
|
+
Footer,
|
|
4621
|
+
Header
|
|
4474
4622
|
};
|
|
4475
4623
|
const test$7 = test$f.extend({
|
|
4476
4624
|
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
@@ -4541,6 +4689,12 @@ const test$7 = test$f.extend({
|
|
|
4541
4689
|
},
|
|
4542
4690
|
StorefrontWishlist: async ({ StorefrontPage }, use) => {
|
|
4543
4691
|
await use(new Wishlist(StorefrontPage));
|
|
4692
|
+
},
|
|
4693
|
+
StorefrontFooter: async ({ StorefrontPage }, use) => {
|
|
4694
|
+
await use(new Footer(StorefrontPage));
|
|
4695
|
+
},
|
|
4696
|
+
StorefrontHeader: async ({ StorefrontPage }, use) => {
|
|
4697
|
+
await use(new Header(StorefrontPage));
|
|
4544
4698
|
}
|
|
4545
4699
|
});
|
|
4546
4700
|
|