@shopware-ag/acceptance-test-suite 11.19.2 → 11.20.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 +135 -94
- package/dist/index.d.ts +135 -94
- package/dist/index.mjs +713 -510
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { test as test$
|
|
2
|
-
export
|
|
1
|
+
import { test as test$e, expect, request, mergeTests } from '@playwright/test';
|
|
2
|
+
export { expect, mergeTests } from '@playwright/test';
|
|
3
3
|
import { Image } from 'image-js';
|
|
4
4
|
import crypto from 'crypto';
|
|
5
5
|
import { stringify } from 'uuid';
|
|
@@ -8,7 +8,7 @@ import fs from 'fs';
|
|
|
8
8
|
import { AxeBuilder } from '@axe-core/playwright';
|
|
9
9
|
import { createHtmlReport } from 'axe-html-reporter';
|
|
10
10
|
|
|
11
|
-
const test$d = test$
|
|
11
|
+
const test$d = test$e.extend({
|
|
12
12
|
SalesChannelBaseConfig: [
|
|
13
13
|
async ({ Country, Currency, Language, PaymentMethod, ShippingMethod, SnippetSet, Tax, Theme }, use) => {
|
|
14
14
|
await use({
|
|
@@ -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$12 = Object.defineProperty;
|
|
159
|
+
var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
160
|
+
var __publicField$12 = (obj, key, value) => {
|
|
161
|
+
__defNormalProp$12(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$12(this, "context");
|
|
167
|
+
__publicField$12(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$12(_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$11(_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$11 = Object.defineProperty;
|
|
298
|
+
var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
299
|
+
var __publicField$11 = (obj, key, value) => {
|
|
300
|
+
__defNormalProp$11(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$11(this, "context");
|
|
306
|
+
__publicField$11(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$11(_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$10 = Object.defineProperty;
|
|
372
|
+
var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
373
|
+
var __publicField$10 = (obj, key, value) => {
|
|
374
|
+
__defNormalProp$10(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$10(this, "context");
|
|
380
380
|
this.context = context;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
@@ -482,7 +482,7 @@ class MailpitApiContext {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
const test$c = test$
|
|
485
|
+
const test$c = test$e.extend({
|
|
486
486
|
AdminApiContext: [
|
|
487
487
|
async ({}, use) => {
|
|
488
488
|
const adminApiContext = await AdminApiContext.create();
|
|
@@ -569,7 +569,7 @@ const clearDelayedCache = async (adminApiContext) => {
|
|
|
569
569
|
await adminApiContext.delete("./_action/cache-delayed");
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
const test$b = test$
|
|
572
|
+
const test$b = test$e.extend({
|
|
573
573
|
AdminPage: async ({ IdProvider, AdminApiContext, SalesChannelBaseConfig, browser }, use) => {
|
|
574
574
|
const context = await browser.newContext({
|
|
575
575
|
baseURL: SalesChannelBaseConfig.adminUrl,
|
|
@@ -651,7 +651,7 @@ const test$b = test$f.extend({
|
|
|
651
651
|
});
|
|
652
652
|
let page;
|
|
653
653
|
if (!await isThemeCompiled(AdminApiContext, DefaultSalesChannel.url)) {
|
|
654
|
-
test$
|
|
654
|
+
test$e.slow();
|
|
655
655
|
await AdminApiContext.post(
|
|
656
656
|
`./_action/theme/${SalesChannelBaseConfig.defaultThemeId}/assign/${salesChannel.id}`
|
|
657
657
|
);
|
|
@@ -688,29 +688,29 @@ 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;
|
|
706
706
|
}
|
|
707
707
|
async attemptsTo(task) {
|
|
708
708
|
const stepTitle = `${this.name} attempts to ${this.camelCaseToLowerCase(task.name)}`;
|
|
709
|
-
await test$
|
|
709
|
+
await test$e.step(stepTitle, async () => await task());
|
|
710
710
|
}
|
|
711
711
|
async goesTo(url, forceReload = false) {
|
|
712
712
|
const stepTitle = `${this.name} navigates to "${url}"`;
|
|
713
|
-
await test$
|
|
713
|
+
await test$e.step(stepTitle, async () => {
|
|
714
714
|
if (this.baseURL && !forceReload && url.startsWith("#")) {
|
|
715
715
|
const baseURLWithoutSlash = this.baseURL.charAt(this.baseURL.length - 1) == "/" ? this.baseURL.substr(0, this.baseURL.length - 1) : this.baseURL;
|
|
716
716
|
const fullURL = new URL(url, baseURLWithoutSlash);
|
|
@@ -737,7 +737,7 @@ class Actor {
|
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
const test$a = test$
|
|
740
|
+
const test$a = test$e.extend({
|
|
741
741
|
ShopCustomer: async ({ StorefrontPage }, use) => {
|
|
742
742
|
const shopCustomer = new Actor("Shop customer", StorefrontPage);
|
|
743
743
|
await use(shopCustomer);
|
|
@@ -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$_ = Object.defineProperty;
|
|
1040
|
+
var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1041
|
+
var __publicField$_ = (obj, key, value) => {
|
|
1042
|
+
__defNormalProp$_(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$_(this, "AdminApiClient");
|
|
1048
|
+
__publicField$_(this, "IdProvider");
|
|
1049
|
+
__publicField$_(this, "namePrefix", "Test-");
|
|
1050
|
+
__publicField$_(this, "nameSuffix", "");
|
|
1051
|
+
__publicField$_(this, "defaultSalesChannel");
|
|
1052
|
+
__publicField$_(this, "defaultTaxId");
|
|
1053
|
+
__publicField$_(this, "defaultCurrencyId");
|
|
1054
|
+
__publicField$_(this, "defaultCategoryId");
|
|
1055
|
+
__publicField$_(this, "defaultLanguageId");
|
|
1056
|
+
__publicField$_(this, "defaultCountryId");
|
|
1057
|
+
__publicField$_(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$_(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$_(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$_(this, "createdRecords", []);
|
|
1078
|
+
__publicField$_(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$_(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$_(this, "combineAll", (array) => {
|
|
1091
1091
|
const result = [];
|
|
1092
1092
|
const max = array.length - 1;
|
|
1093
1093
|
const helper = (tmpArray, i) => {
|
|
@@ -3235,7 +3235,7 @@ class TestDataService {
|
|
|
3235
3235
|
|
|
3236
3236
|
const ATS_SKIP_CLEANUP = ["1", "true"].includes(process.env["ATS_SKIP_CLEANUP"] || "");
|
|
3237
3237
|
const ATS_EXEC_CLEANUP = !ATS_SKIP_CLEANUP;
|
|
3238
|
-
const test$9 = test$
|
|
3238
|
+
const test$9 = test$e.extend({
|
|
3239
3239
|
TestDataService: async ({ AdminApiContext, IdProvider, DefaultSalesChannel, SalesChannelBaseConfig }, use) => {
|
|
3240
3240
|
const DataService = new TestDataService(AdminApiContext, IdProvider, {
|
|
3241
3241
|
defaultSalesChannel: DefaultSalesChannel.salesChannel,
|
|
@@ -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$Z = Object.defineProperty;
|
|
3257
|
+
var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3258
|
+
var __publicField$Z = (obj, key, value) => {
|
|
3259
|
+
__defNormalProp$Z(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$Z(this, "workerIndex");
|
|
3265
|
+
__publicField$Z(this, "seed");
|
|
3266
3266
|
this.workerIndex = workerIndex;
|
|
3267
3267
|
this.seed = seed;
|
|
3268
3268
|
}
|
|
@@ -3291,7 +3291,7 @@ class IdProvider {
|
|
|
3291
3291
|
}
|
|
3292
3292
|
}
|
|
3293
3293
|
|
|
3294
|
-
const test$8 = test$
|
|
3294
|
+
const test$8 = test$e.extend({
|
|
3295
3295
|
IdProvider: [
|
|
3296
3296
|
async ({}, use, workerInfo) => {
|
|
3297
3297
|
const seed = process.env.SHOPWARE_ACCESS_KEY_ID || process.env.SHOPWARE_ADMIN_PASSWORD || "test-suite";
|
|
@@ -3346,83 +3346,84 @@ const test$8 = test$f.extend({
|
|
|
3346
3346
|
]
|
|
3347
3347
|
});
|
|
3348
3348
|
|
|
3349
|
-
var __defProp$
|
|
3350
|
-
var __defNormalProp$
|
|
3351
|
-
var __publicField$
|
|
3352
|
-
__defNormalProp$
|
|
3349
|
+
var __defProp$Y = Object.defineProperty;
|
|
3350
|
+
var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3351
|
+
var __publicField$Y = (obj, key, value) => {
|
|
3352
|
+
__defNormalProp$Y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3353
3353
|
return value;
|
|
3354
3354
|
};
|
|
3355
3355
|
class Home {
|
|
3356
3356
|
constructor(page) {
|
|
3357
|
-
this
|
|
3358
|
-
__publicField$
|
|
3359
|
-
__publicField$
|
|
3360
|
-
__publicField$
|
|
3361
|
-
__publicField$
|
|
3362
|
-
__publicField$
|
|
3363
|
-
__publicField$
|
|
3364
|
-
__publicField$X(this, "productVariantCharacteristicsOptions");
|
|
3357
|
+
__publicField$Y(this, "categoryTitle");
|
|
3358
|
+
__publicField$Y(this, "accountMenuButton");
|
|
3359
|
+
__publicField$Y(this, "closeGuestSessionButton");
|
|
3360
|
+
__publicField$Y(this, "productImages");
|
|
3361
|
+
__publicField$Y(this, "productListItems");
|
|
3362
|
+
__publicField$Y(this, "loader");
|
|
3363
|
+
__publicField$Y(this, "productVariantCharacteristicsOptions");
|
|
3365
3364
|
/**
|
|
3366
3365
|
* @deprecated Use 'Header/languagesDropdown' instead
|
|
3367
3366
|
*/
|
|
3368
|
-
__publicField$
|
|
3367
|
+
__publicField$Y(this, "languagesDropdown");
|
|
3369
3368
|
/**
|
|
3370
3369
|
* @deprecated Use 'Header/languagesMenuOptions' instead
|
|
3371
3370
|
*/
|
|
3372
|
-
__publicField$
|
|
3371
|
+
__publicField$Y(this, "languagesMenuOptions");
|
|
3373
3372
|
/**
|
|
3374
3373
|
* @deprecated Use 'Header/currenciesDropdown' instead
|
|
3375
3374
|
*/
|
|
3376
|
-
__publicField$
|
|
3375
|
+
__publicField$Y(this, "currenciesDropdown");
|
|
3377
3376
|
/**
|
|
3378
3377
|
* @deprecated Use 'Header/currenciesMenuOptions' instead
|
|
3379
3378
|
*/
|
|
3380
|
-
__publicField$
|
|
3381
|
-
__publicField$
|
|
3382
|
-
__publicField$
|
|
3383
|
-
__publicField$
|
|
3384
|
-
__publicField$
|
|
3385
|
-
__publicField$
|
|
3386
|
-
__publicField$
|
|
3387
|
-
__publicField$
|
|
3388
|
-
__publicField$
|
|
3379
|
+
__publicField$Y(this, "currenciesMenuOptions");
|
|
3380
|
+
__publicField$Y(this, "consentOnlyTechnicallyRequiredButton");
|
|
3381
|
+
__publicField$Y(this, "consentConfigureButton");
|
|
3382
|
+
__publicField$Y(this, "consentAcceptAllCookiesButton");
|
|
3383
|
+
__publicField$Y(this, "consentCookiePreferences");
|
|
3384
|
+
__publicField$Y(this, "consentCookiePermissionContent");
|
|
3385
|
+
__publicField$Y(this, "consentDialog");
|
|
3386
|
+
__publicField$Y(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
3387
|
+
__publicField$Y(this, "consentDialogStatisticsCheckbox");
|
|
3389
3388
|
/**
|
|
3390
3389
|
* @deprecated Use 'consentDialogMarketingCheckbox' instead
|
|
3391
3390
|
*/
|
|
3392
|
-
__publicField$
|
|
3393
|
-
__publicField$
|
|
3394
|
-
__publicField$
|
|
3395
|
-
__publicField$
|
|
3396
|
-
__publicField$
|
|
3397
|
-
__publicField$
|
|
3391
|
+
__publicField$Y(this, "consentDialogMarketingdCheckbox");
|
|
3392
|
+
__publicField$Y(this, "consentDialogMarketingCheckbox");
|
|
3393
|
+
__publicField$Y(this, "consentDialogAcceptAllCookiesButton");
|
|
3394
|
+
__publicField$Y(this, "consentDialogSaveButton");
|
|
3395
|
+
__publicField$Y(this, "consentCookieBannerContainer");
|
|
3396
|
+
__publicField$Y(this, "offcanvasBackdrop");
|
|
3398
3397
|
/**
|
|
3399
3398
|
* @deprecated Use 'Header/mainNavigationLink' instead
|
|
3400
3399
|
*/
|
|
3401
|
-
__publicField$
|
|
3400
|
+
__publicField$Y(this, "mainNavigationLink");
|
|
3402
3401
|
/**
|
|
3403
3402
|
* @deprecated Use 'Footer/contactFormLink' instead
|
|
3404
3403
|
*/
|
|
3405
|
-
__publicField$
|
|
3404
|
+
__publicField$Y(this, "contactFormLink");
|
|
3406
3405
|
//wishlist
|
|
3407
3406
|
/**
|
|
3408
3407
|
* @deprecated Use 'Header/wishlistIcon' instead
|
|
3409
3408
|
*/
|
|
3410
|
-
__publicField$
|
|
3409
|
+
__publicField$Y(this, "wishlistIcon");
|
|
3411
3410
|
/**
|
|
3412
3411
|
* @deprecated Use 'Header/wishlistBasket' instead
|
|
3413
3412
|
*/
|
|
3414
|
-
__publicField$
|
|
3413
|
+
__publicField$Y(this, "wishlistBasket");
|
|
3415
3414
|
//product filters
|
|
3416
|
-
__publicField$
|
|
3417
|
-
__publicField$
|
|
3418
|
-
__publicField$
|
|
3419
|
-
__publicField$
|
|
3420
|
-
__publicField$
|
|
3421
|
-
__publicField$
|
|
3422
|
-
__publicField$
|
|
3423
|
-
__publicField$
|
|
3424
|
-
__publicField$
|
|
3425
|
-
__publicField$
|
|
3415
|
+
__publicField$Y(this, "filterMultiSelect");
|
|
3416
|
+
__publicField$Y(this, "manufacturerFilter");
|
|
3417
|
+
__publicField$Y(this, "propertyFilters");
|
|
3418
|
+
__publicField$Y(this, "priceFilterButton");
|
|
3419
|
+
__publicField$Y(this, "resetAllButton");
|
|
3420
|
+
__publicField$Y(this, "freeShippingFilter");
|
|
3421
|
+
__publicField$Y(this, "productList");
|
|
3422
|
+
__publicField$Y(this, "productItemNames");
|
|
3423
|
+
__publicField$Y(this, "productRatingButton");
|
|
3424
|
+
__publicField$Y(this, "productRatingList");
|
|
3425
|
+
__publicField$Y(this, "page");
|
|
3426
|
+
this.page = page;
|
|
3426
3427
|
this.categoryTitle = page.locator(".cms-element-text h1");
|
|
3427
3428
|
this.accountMenuButton = page.getByLabel("Your account");
|
|
3428
3429
|
this.closeGuestSessionButton = page.locator(".account-aside-btn");
|
|
@@ -3577,59 +3578,60 @@ class Home {
|
|
|
3577
3578
|
}
|
|
3578
3579
|
}
|
|
3579
3580
|
|
|
3580
|
-
var __defProp$
|
|
3581
|
-
var __defNormalProp$
|
|
3582
|
-
var __publicField$
|
|
3583
|
-
__defNormalProp$
|
|
3581
|
+
var __defProp$X = Object.defineProperty;
|
|
3582
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3583
|
+
var __publicField$X = (obj, key, value) => {
|
|
3584
|
+
__defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3584
3585
|
return value;
|
|
3585
3586
|
};
|
|
3586
3587
|
let ProductDetail$1 = class ProductDetail {
|
|
3587
3588
|
constructor(page) {
|
|
3588
|
-
this
|
|
3589
|
-
__publicField$
|
|
3590
|
-
__publicField$
|
|
3591
|
-
__publicField$
|
|
3592
|
-
__publicField$
|
|
3593
|
-
__publicField$
|
|
3594
|
-
__publicField$
|
|
3595
|
-
__publicField$
|
|
3596
|
-
__publicField$
|
|
3597
|
-
__publicField$
|
|
3598
|
-
__publicField$
|
|
3599
|
-
__publicField$
|
|
3600
|
-
__publicField$
|
|
3601
|
-
__publicField$
|
|
3602
|
-
__publicField$
|
|
3603
|
-
__publicField$
|
|
3604
|
-
__publicField$
|
|
3605
|
-
__publicField$
|
|
3606
|
-
__publicField$
|
|
3607
|
-
__publicField$
|
|
3608
|
-
__publicField$W(this, "productName");
|
|
3589
|
+
__publicField$X(this, "addToCartButton");
|
|
3590
|
+
__publicField$X(this, "quantitySelect");
|
|
3591
|
+
__publicField$X(this, "productSingleImage");
|
|
3592
|
+
__publicField$X(this, "productSinglePrice");
|
|
3593
|
+
__publicField$X(this, "productPriceRangesRow");
|
|
3594
|
+
__publicField$X(this, "productListingPriceBadge");
|
|
3595
|
+
__publicField$X(this, "productListingPrice");
|
|
3596
|
+
__publicField$X(this, "productListingPricePercentage");
|
|
3597
|
+
__publicField$X(this, "offCanvasCartTitle");
|
|
3598
|
+
__publicField$X(this, "offCanvasCart");
|
|
3599
|
+
__publicField$X(this, "offCanvasCartGoToCheckoutButton");
|
|
3600
|
+
__publicField$X(this, "offCanvasLineItemImages");
|
|
3601
|
+
__publicField$X(this, "offCanvasSummaryTotalPrice");
|
|
3602
|
+
__publicField$X(this, "offCanvas");
|
|
3603
|
+
__publicField$X(this, "wishlistAddedButton");
|
|
3604
|
+
__publicField$X(this, "wishlistNotAddedButton");
|
|
3605
|
+
__publicField$X(this, "productDetailConfigurator");
|
|
3606
|
+
__publicField$X(this, "productDetailConfiguratorGroupTitle");
|
|
3607
|
+
__publicField$X(this, "productDetailConfiguratorOptionInputs");
|
|
3608
|
+
__publicField$X(this, "productName");
|
|
3609
3609
|
//Reviews Tab
|
|
3610
|
-
__publicField$
|
|
3611
|
-
__publicField$
|
|
3612
|
-
__publicField$
|
|
3613
|
-
__publicField$
|
|
3614
|
-
__publicField$
|
|
3615
|
-
__publicField$
|
|
3616
|
-
__publicField$
|
|
3617
|
-
__publicField$
|
|
3618
|
-
__publicField$
|
|
3619
|
-
__publicField$
|
|
3620
|
-
__publicField$
|
|
3621
|
-
__publicField$
|
|
3622
|
-
__publicField$
|
|
3623
|
-
__publicField$
|
|
3624
|
-
__publicField$
|
|
3625
|
-
__publicField$
|
|
3626
|
-
__publicField$
|
|
3627
|
-
__publicField$
|
|
3628
|
-
__publicField$
|
|
3629
|
-
__publicField$
|
|
3630
|
-
__publicField$
|
|
3631
|
-
__publicField$
|
|
3632
|
-
__publicField$
|
|
3610
|
+
__publicField$X(this, "reviewsTab");
|
|
3611
|
+
__publicField$X(this, "reviewTeaserButton");
|
|
3612
|
+
__publicField$X(this, "reviewTeaserText");
|
|
3613
|
+
__publicField$X(this, "reviewListingItems");
|
|
3614
|
+
__publicField$X(this, "reviewEmptyListingText");
|
|
3615
|
+
__publicField$X(this, "reviewLoginForm");
|
|
3616
|
+
__publicField$X(this, "forgottenPasswordLink");
|
|
3617
|
+
__publicField$X(this, "reviewForm");
|
|
3618
|
+
__publicField$X(this, "reviewRatingPoints");
|
|
3619
|
+
__publicField$X(this, "reviewRatingText");
|
|
3620
|
+
__publicField$X(this, "reviewSubmitMessage");
|
|
3621
|
+
__publicField$X(this, "reviewCounter");
|
|
3622
|
+
__publicField$X(this, "reviewItemRatingPoints");
|
|
3623
|
+
__publicField$X(this, "reviewItemTitle");
|
|
3624
|
+
__publicField$X(this, "reviewReviewTextInput");
|
|
3625
|
+
__publicField$X(this, "reviewItemContent");
|
|
3626
|
+
__publicField$X(this, "reviewLoginButton");
|
|
3627
|
+
__publicField$X(this, "reviewEmailInput");
|
|
3628
|
+
__publicField$X(this, "reviewPasswordInput");
|
|
3629
|
+
__publicField$X(this, "reviewTitleInput");
|
|
3630
|
+
__publicField$X(this, "reviewSubmitButton");
|
|
3631
|
+
__publicField$X(this, "productReviewsLink");
|
|
3632
|
+
__publicField$X(this, "productReviewRating");
|
|
3633
|
+
__publicField$X(this, "page");
|
|
3634
|
+
this.page = page;
|
|
3633
3635
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
3634
3636
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
3635
3637
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -3694,18 +3696,19 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
3694
3696
|
}
|
|
3695
3697
|
};
|
|
3696
3698
|
|
|
3697
|
-
var __defProp$
|
|
3698
|
-
var __defNormalProp$
|
|
3699
|
-
var __publicField$
|
|
3700
|
-
__defNormalProp$
|
|
3699
|
+
var __defProp$W = Object.defineProperty;
|
|
3700
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3701
|
+
var __publicField$W = (obj, key, value) => {
|
|
3702
|
+
__defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3701
3703
|
return value;
|
|
3702
3704
|
};
|
|
3703
3705
|
class Category {
|
|
3704
3706
|
constructor(page) {
|
|
3707
|
+
__publicField$W(this, "sortingSelect");
|
|
3708
|
+
__publicField$W(this, "firstProductBuyButton");
|
|
3709
|
+
__publicField$W(this, "noProductsFoundAlert");
|
|
3710
|
+
__publicField$W(this, "page");
|
|
3705
3711
|
this.page = page;
|
|
3706
|
-
__publicField$V(this, "sortingSelect");
|
|
3707
|
-
__publicField$V(this, "firstProductBuyButton");
|
|
3708
|
-
__publicField$V(this, "noProductsFoundAlert");
|
|
3709
3712
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
3710
3713
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
3711
3714
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -3715,24 +3718,25 @@ class Category {
|
|
|
3715
3718
|
}
|
|
3716
3719
|
}
|
|
3717
3720
|
|
|
3718
|
-
var __defProp$
|
|
3719
|
-
var __defNormalProp$
|
|
3720
|
-
var __publicField$
|
|
3721
|
-
__defNormalProp$
|
|
3721
|
+
var __defProp$V = Object.defineProperty;
|
|
3722
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3723
|
+
var __publicField$V = (obj, key, value) => {
|
|
3724
|
+
__defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3722
3725
|
return value;
|
|
3723
3726
|
};
|
|
3724
3727
|
class CheckoutCart {
|
|
3725
3728
|
constructor(page) {
|
|
3729
|
+
__publicField$V(this, "headline");
|
|
3730
|
+
__publicField$V(this, "goToCheckoutButton");
|
|
3731
|
+
__publicField$V(this, "enterPromoInput");
|
|
3732
|
+
__publicField$V(this, "grandTotalPrice");
|
|
3733
|
+
__publicField$V(this, "emptyCartAlert");
|
|
3734
|
+
__publicField$V(this, "stockReachedAlert");
|
|
3735
|
+
__publicField$V(this, "cartLineItemImages");
|
|
3736
|
+
__publicField$V(this, "unitPriceInfo");
|
|
3737
|
+
__publicField$V(this, "cartQuantityNumber");
|
|
3738
|
+
__publicField$V(this, "page");
|
|
3726
3739
|
this.page = page;
|
|
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");
|
|
3736
3740
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3737
3741
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
3738
3742
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -3773,25 +3777,26 @@ class CheckoutCart {
|
|
|
3773
3777
|
}
|
|
3774
3778
|
}
|
|
3775
3779
|
|
|
3776
|
-
var __defProp$
|
|
3777
|
-
var __defNormalProp$
|
|
3778
|
-
var __publicField$
|
|
3779
|
-
__defNormalProp$
|
|
3780
|
+
var __defProp$U = Object.defineProperty;
|
|
3781
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3782
|
+
var __publicField$U = (obj, key, value) => {
|
|
3783
|
+
__defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3780
3784
|
return value;
|
|
3781
3785
|
};
|
|
3782
3786
|
class OffCanvasCart {
|
|
3783
3787
|
constructor(page) {
|
|
3788
|
+
__publicField$U(this, "headline");
|
|
3789
|
+
__publicField$U(this, "itemCount");
|
|
3790
|
+
__publicField$U(this, "goToCheckoutButton");
|
|
3791
|
+
__publicField$U(this, "goToCartButton");
|
|
3792
|
+
__publicField$U(this, "continueShoppingButton");
|
|
3793
|
+
__publicField$U(this, "enterPromoInput");
|
|
3794
|
+
__publicField$U(this, "submitDiscountButton");
|
|
3795
|
+
__publicField$U(this, "subTotalPrice");
|
|
3796
|
+
__publicField$U(this, "shippingCosts");
|
|
3797
|
+
__publicField$U(this, "cartQuantityNumber");
|
|
3798
|
+
__publicField$U(this, "page");
|
|
3784
3799
|
this.page = page;
|
|
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");
|
|
3795
3800
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3796
3801
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
3797
3802
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -3837,36 +3842,37 @@ class OffCanvasCart {
|
|
|
3837
3842
|
}
|
|
3838
3843
|
}
|
|
3839
3844
|
|
|
3840
|
-
var __defProp$
|
|
3841
|
-
var __defNormalProp$
|
|
3842
|
-
var __publicField$
|
|
3843
|
-
__defNormalProp$
|
|
3845
|
+
var __defProp$T = Object.defineProperty;
|
|
3846
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3847
|
+
var __publicField$T = (obj, key, value) => {
|
|
3848
|
+
__defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3844
3849
|
return value;
|
|
3845
3850
|
};
|
|
3846
3851
|
class CheckoutConfirm {
|
|
3847
3852
|
constructor(page) {
|
|
3848
|
-
this
|
|
3849
|
-
__publicField$
|
|
3850
|
-
__publicField$
|
|
3851
|
-
__publicField$
|
|
3852
|
-
__publicField$
|
|
3853
|
-
__publicField$
|
|
3854
|
-
__publicField$S(this, "submitOrderButton");
|
|
3853
|
+
__publicField$T(this, "headline");
|
|
3854
|
+
__publicField$T(this, "termsAndConditionsCheckbox");
|
|
3855
|
+
__publicField$T(this, "immediateAccessToDigitalProductCheckbox");
|
|
3856
|
+
__publicField$T(this, "grandTotalPrice");
|
|
3857
|
+
__publicField$T(this, "taxPrice");
|
|
3858
|
+
__publicField$T(this, "submitOrderButton");
|
|
3855
3859
|
/**
|
|
3856
3860
|
* Payment options
|
|
3857
3861
|
*/
|
|
3858
|
-
__publicField$
|
|
3859
|
-
__publicField$
|
|
3860
|
-
__publicField$
|
|
3862
|
+
__publicField$T(this, "paymentCashOnDelivery");
|
|
3863
|
+
__publicField$T(this, "paymentPaidInAdvance");
|
|
3864
|
+
__publicField$T(this, "paymentInvoice");
|
|
3861
3865
|
/**
|
|
3862
3866
|
* Shipping options
|
|
3863
3867
|
*/
|
|
3864
|
-
__publicField$
|
|
3865
|
-
__publicField$
|
|
3868
|
+
__publicField$T(this, "shippingStandard");
|
|
3869
|
+
__publicField$T(this, "shippingExpress");
|
|
3866
3870
|
/**
|
|
3867
3871
|
* Product details
|
|
3868
3872
|
*/
|
|
3869
|
-
__publicField$
|
|
3873
|
+
__publicField$T(this, "cartLineItemImages");
|
|
3874
|
+
__publicField$T(this, "page");
|
|
3875
|
+
this.page = page;
|
|
3870
3876
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3871
3877
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3872
3878
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3885,21 +3891,22 @@ class CheckoutConfirm {
|
|
|
3885
3891
|
}
|
|
3886
3892
|
}
|
|
3887
3893
|
|
|
3888
|
-
var __defProp$
|
|
3889
|
-
var __defNormalProp$
|
|
3890
|
-
var __publicField$
|
|
3891
|
-
__defNormalProp$
|
|
3894
|
+
var __defProp$S = Object.defineProperty;
|
|
3895
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3896
|
+
var __publicField$S = (obj, key, value) => {
|
|
3897
|
+
__defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3892
3898
|
return value;
|
|
3893
3899
|
};
|
|
3894
3900
|
class CheckoutFinish {
|
|
3895
3901
|
constructor(page) {
|
|
3902
|
+
__publicField$S(this, "headline");
|
|
3903
|
+
__publicField$S(this, "orderNumberText");
|
|
3904
|
+
__publicField$S(this, "grandTotalPrice");
|
|
3905
|
+
__publicField$S(this, "taxPrice");
|
|
3906
|
+
__publicField$S(this, "cartLineItemImages");
|
|
3907
|
+
__publicField$S(this, "page");
|
|
3908
|
+
__publicField$S(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3896
3909
|
this.page = page;
|
|
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+)/);
|
|
3903
3910
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3904
3911
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3905
3912
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3928,16 +3935,17 @@ class CheckoutFinish {
|
|
|
3928
3935
|
}
|
|
3929
3936
|
}
|
|
3930
3937
|
|
|
3931
|
-
var __defProp$
|
|
3932
|
-
var __defNormalProp$
|
|
3933
|
-
var __publicField$
|
|
3934
|
-
__defNormalProp$
|
|
3938
|
+
var __defProp$R = Object.defineProperty;
|
|
3939
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3940
|
+
var __publicField$R = (obj, key, value) => {
|
|
3941
|
+
__defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3935
3942
|
return value;
|
|
3936
3943
|
};
|
|
3937
3944
|
class CheckoutRegister {
|
|
3938
3945
|
constructor(page) {
|
|
3946
|
+
__publicField$R(this, "cartLineItemImages");
|
|
3947
|
+
__publicField$R(this, "page");
|
|
3939
3948
|
this.page = page;
|
|
3940
|
-
__publicField$Q(this, "cartLineItemImages");
|
|
3941
3949
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3942
3950
|
}
|
|
3943
3951
|
url() {
|
|
@@ -3945,26 +3953,28 @@ class CheckoutRegister {
|
|
|
3945
3953
|
}
|
|
3946
3954
|
}
|
|
3947
3955
|
|
|
3948
|
-
var __defProp$
|
|
3949
|
-
var __defNormalProp$
|
|
3950
|
-
var __publicField$
|
|
3951
|
-
__defNormalProp$
|
|
3956
|
+
var __defProp$Q = Object.defineProperty;
|
|
3957
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3958
|
+
var __publicField$Q = (obj, key, value) => {
|
|
3959
|
+
__defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3952
3960
|
return value;
|
|
3953
3961
|
};
|
|
3954
3962
|
class Account {
|
|
3955
3963
|
constructor(page, instanceMeta) {
|
|
3964
|
+
__publicField$Q(this, "headline");
|
|
3965
|
+
__publicField$Q(this, "personalDataCardTitle");
|
|
3966
|
+
__publicField$Q(this, "paymentMethodCardTitle");
|
|
3967
|
+
__publicField$Q(this, "billingAddressCardTitle");
|
|
3968
|
+
__publicField$Q(this, "shippingAddressCardTitle");
|
|
3969
|
+
__publicField$Q(this, "newsletterCheckbox");
|
|
3970
|
+
__publicField$Q(this, "newsletterRegistrationSuccessMessage");
|
|
3971
|
+
__publicField$Q(this, "customerGroupRequestMessage");
|
|
3972
|
+
__publicField$Q(this, "cannotDeliverToCountryAlert");
|
|
3973
|
+
__publicField$Q(this, "shippingToAddressNotPossibleAlert");
|
|
3974
|
+
__publicField$Q(this, "page");
|
|
3975
|
+
__publicField$Q(this, "instanceMeta");
|
|
3956
3976
|
this.page = page;
|
|
3957
3977
|
this.instanceMeta = instanceMeta;
|
|
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");
|
|
3968
3978
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3969
3979
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3970
3980
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3988,57 +3998,58 @@ class Account {
|
|
|
3988
3998
|
}
|
|
3989
3999
|
}
|
|
3990
4000
|
|
|
3991
|
-
var __defProp$
|
|
3992
|
-
var __defNormalProp$
|
|
3993
|
-
var __publicField$
|
|
3994
|
-
__defNormalProp$
|
|
4001
|
+
var __defProp$P = Object.defineProperty;
|
|
4002
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4003
|
+
var __publicField$P = (obj, key, value) => {
|
|
4004
|
+
__defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3995
4005
|
return value;
|
|
3996
4006
|
};
|
|
3997
4007
|
class AccountLogin {
|
|
3998
4008
|
constructor(page) {
|
|
3999
|
-
this
|
|
4000
|
-
__publicField$
|
|
4001
|
-
__publicField$
|
|
4002
|
-
__publicField$
|
|
4003
|
-
__publicField$
|
|
4004
|
-
__publicField$
|
|
4005
|
-
__publicField$
|
|
4006
|
-
__publicField$
|
|
4007
|
-
__publicField$O(this, "passwordUpdatedAlert");
|
|
4009
|
+
__publicField$P(this, "emailInput");
|
|
4010
|
+
__publicField$P(this, "passwordInput");
|
|
4011
|
+
__publicField$P(this, "forgotPasswordLink");
|
|
4012
|
+
__publicField$P(this, "loginButton");
|
|
4013
|
+
__publicField$P(this, "logoutLink");
|
|
4014
|
+
__publicField$P(this, "successAlert");
|
|
4015
|
+
__publicField$P(this, "invalidCredentialsAlert");
|
|
4016
|
+
__publicField$P(this, "passwordUpdatedAlert");
|
|
4008
4017
|
// Inputs for registration
|
|
4009
|
-
__publicField$
|
|
4010
|
-
__publicField$
|
|
4011
|
-
__publicField$
|
|
4012
|
-
__publicField$
|
|
4013
|
-
__publicField$
|
|
4014
|
-
__publicField$
|
|
4015
|
-
__publicField$
|
|
4016
|
-
__publicField$
|
|
4017
|
-
__publicField$
|
|
4018
|
-
__publicField$
|
|
4019
|
-
__publicField$
|
|
4020
|
-
__publicField$
|
|
4021
|
-
__publicField$
|
|
4022
|
-
__publicField$
|
|
4023
|
-
__publicField$
|
|
4024
|
-
__publicField$
|
|
4018
|
+
__publicField$P(this, "personalFormArea");
|
|
4019
|
+
__publicField$P(this, "billingAddressFormArea");
|
|
4020
|
+
__publicField$P(this, "accountTypeSelect");
|
|
4021
|
+
__publicField$P(this, "salutationSelect");
|
|
4022
|
+
__publicField$P(this, "firstNameInput");
|
|
4023
|
+
__publicField$P(this, "lastNameInput");
|
|
4024
|
+
__publicField$P(this, "companyInput");
|
|
4025
|
+
__publicField$P(this, "departmentInput");
|
|
4026
|
+
__publicField$P(this, "vatRegNoInput");
|
|
4027
|
+
__publicField$P(this, "registerEmailInput");
|
|
4028
|
+
__publicField$P(this, "registerPasswordInput");
|
|
4029
|
+
__publicField$P(this, "streetAddressInput");
|
|
4030
|
+
__publicField$P(this, "cityInput");
|
|
4031
|
+
__publicField$P(this, "countryInput");
|
|
4032
|
+
__publicField$P(this, "postalCodeInput");
|
|
4033
|
+
__publicField$P(this, "registerButton");
|
|
4025
4034
|
// Inputs for reCaptcha
|
|
4026
|
-
__publicField$
|
|
4027
|
-
__publicField$
|
|
4028
|
-
__publicField$
|
|
4029
|
-
__publicField$
|
|
4030
|
-
__publicField$
|
|
4035
|
+
__publicField$P(this, "greCaptchaV2Container");
|
|
4036
|
+
__publicField$P(this, "greCaptchaV2Input");
|
|
4037
|
+
__publicField$P(this, "greCaptchaV3Input");
|
|
4038
|
+
__publicField$P(this, "greCaptchaProtectionInformation");
|
|
4039
|
+
__publicField$P(this, "greCaptchaBadge");
|
|
4031
4040
|
//Input for shipping address
|
|
4032
|
-
__publicField$
|
|
4033
|
-
__publicField$
|
|
4034
|
-
__publicField$
|
|
4035
|
-
__publicField$
|
|
4036
|
-
__publicField$
|
|
4037
|
-
__publicField$
|
|
4038
|
-
__publicField$
|
|
4039
|
-
__publicField$
|
|
4040
|
-
__publicField$
|
|
4041
|
-
__publicField$
|
|
4041
|
+
__publicField$P(this, "differentShippingAddressCheckbox");
|
|
4042
|
+
__publicField$P(this, "registerShippingAddressFormArea");
|
|
4043
|
+
__publicField$P(this, "shippingAddressSalutationSelect");
|
|
4044
|
+
__publicField$P(this, "shippingAddressFirstNameInput");
|
|
4045
|
+
__publicField$P(this, "shippingAddressLastNameInput");
|
|
4046
|
+
__publicField$P(this, "shippingAddressStreetAddressInput");
|
|
4047
|
+
__publicField$P(this, "shippingAddressCityInput");
|
|
4048
|
+
__publicField$P(this, "shippingAddressCountryInput");
|
|
4049
|
+
__publicField$P(this, "shippingAddressPostalCodeInput");
|
|
4050
|
+
__publicField$P(this, "shippingAddressStateInput");
|
|
4051
|
+
__publicField$P(this, "page");
|
|
4052
|
+
this.page = page;
|
|
4042
4053
|
this.emailInput = page.getByLabel("Your email address");
|
|
4043
4054
|
this.passwordInput = page.getByLabel("Your password");
|
|
4044
4055
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -4088,26 +4099,27 @@ class AccountLogin {
|
|
|
4088
4099
|
}
|
|
4089
4100
|
}
|
|
4090
4101
|
|
|
4091
|
-
var __defProp$
|
|
4092
|
-
var __defNormalProp$
|
|
4093
|
-
var __publicField$
|
|
4094
|
-
__defNormalProp$
|
|
4102
|
+
var __defProp$O = Object.defineProperty;
|
|
4103
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4104
|
+
var __publicField$O = (obj, key, value) => {
|
|
4105
|
+
__defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4095
4106
|
return value;
|
|
4096
4107
|
};
|
|
4097
4108
|
class AccountRecover {
|
|
4098
4109
|
constructor(page) {
|
|
4110
|
+
__publicField$O(this, "passwordRecoveryForm");
|
|
4111
|
+
__publicField$O(this, "title");
|
|
4112
|
+
__publicField$O(this, "subtitle");
|
|
4113
|
+
__publicField$O(this, "emailInput");
|
|
4114
|
+
__publicField$O(this, "requestEmailButton");
|
|
4115
|
+
__publicField$O(this, "backButton");
|
|
4116
|
+
__publicField$O(this, "passwordResetEmailSentMessage");
|
|
4117
|
+
__publicField$O(this, "newPasswordInput");
|
|
4118
|
+
__publicField$O(this, "newPasswordConfirmInput");
|
|
4119
|
+
__publicField$O(this, "changePasswordButton");
|
|
4120
|
+
__publicField$O(this, "invalidLinkMessage");
|
|
4121
|
+
__publicField$O(this, "page");
|
|
4099
4122
|
this.page = page;
|
|
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");
|
|
4111
4123
|
this.passwordRecoveryForm = page.locator(".account-recover-password-form");
|
|
4112
4124
|
const cardTitle = this.passwordRecoveryForm.locator(".card-title");
|
|
4113
4125
|
this.title = cardTitle.getByText("Password recovery");
|
|
@@ -4129,36 +4141,38 @@ class AccountRecover {
|
|
|
4129
4141
|
}
|
|
4130
4142
|
}
|
|
4131
4143
|
|
|
4132
|
-
var __defProp$
|
|
4133
|
-
var __defNormalProp$
|
|
4134
|
-
var __publicField$
|
|
4135
|
-
__defNormalProp$
|
|
4144
|
+
var __defProp$N = Object.defineProperty;
|
|
4145
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4146
|
+
var __publicField$N = (obj, key, value) => {
|
|
4147
|
+
__defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4136
4148
|
return value;
|
|
4137
4149
|
};
|
|
4138
4150
|
class AccountProfile {
|
|
4139
4151
|
constructor(page, instanceMeta) {
|
|
4152
|
+
__publicField$N(this, "page");
|
|
4153
|
+
__publicField$N(this, "instanceMeta");
|
|
4154
|
+
__publicField$N(this, "salutationSelect");
|
|
4155
|
+
__publicField$N(this, "firstNameInput");
|
|
4156
|
+
__publicField$N(this, "lastNameInput");
|
|
4157
|
+
__publicField$N(this, "saveProfileButton");
|
|
4158
|
+
__publicField$N(this, "changeEmailButton");
|
|
4159
|
+
__publicField$N(this, "emailAddressInput");
|
|
4160
|
+
__publicField$N(this, "emailAddressConfirmInput");
|
|
4161
|
+
__publicField$N(this, "emailConfirmPasswordInput");
|
|
4162
|
+
__publicField$N(this, "saveEmailAddressButton");
|
|
4163
|
+
__publicField$N(this, "changePasswordButton");
|
|
4164
|
+
__publicField$N(this, "newPasswordInput");
|
|
4165
|
+
__publicField$N(this, "newPasswordConfirmInput");
|
|
4166
|
+
__publicField$N(this, "currentPasswordInput");
|
|
4167
|
+
__publicField$N(this, "saveNewPasswordButton");
|
|
4168
|
+
__publicField$N(this, "loginDataEmailAddress");
|
|
4169
|
+
__publicField$N(this, "emailUpdateMessage");
|
|
4170
|
+
__publicField$N(this, "passwordUpdateMessage");
|
|
4171
|
+
__publicField$N(this, "emailValidationAlert");
|
|
4172
|
+
__publicField$N(this, "emailUpdateFailureAlert");
|
|
4173
|
+
__publicField$N(this, "passwordUpdateFailureAlert");
|
|
4140
4174
|
this.page = page;
|
|
4141
4175
|
this.instanceMeta = instanceMeta;
|
|
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");
|
|
4162
4176
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
4163
4177
|
this.firstNameInput = page.getByLabel("First name");
|
|
4164
4178
|
this.lastNameInput = page.getByLabel("Last name");
|
|
@@ -4198,24 +4212,25 @@ class AccountProfile {
|
|
|
4198
4212
|
}
|
|
4199
4213
|
}
|
|
4200
4214
|
|
|
4201
|
-
var __defProp$
|
|
4202
|
-
var __defNormalProp$
|
|
4203
|
-
var __publicField$
|
|
4204
|
-
__defNormalProp$
|
|
4215
|
+
var __defProp$M = Object.defineProperty;
|
|
4216
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4217
|
+
var __publicField$M = (obj, key, value) => {
|
|
4218
|
+
__defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4205
4219
|
return value;
|
|
4206
4220
|
};
|
|
4207
4221
|
class AccountOrder {
|
|
4208
4222
|
constructor(page) {
|
|
4223
|
+
__publicField$M(this, "cartLineItemImages");
|
|
4224
|
+
__publicField$M(this, "orderExpandButton");
|
|
4225
|
+
__publicField$M(this, "digitalProductDownloadButton");
|
|
4226
|
+
__publicField$M(this, "dialogOrderCancel");
|
|
4227
|
+
__publicField$M(this, "dialogOrderCancelButton");
|
|
4228
|
+
__publicField$M(this, "dialogBackButton");
|
|
4229
|
+
__publicField$M(this, "orderDetails");
|
|
4230
|
+
__publicField$M(this, "invoiceHTML");
|
|
4231
|
+
__publicField$M(this, "creditItem");
|
|
4232
|
+
__publicField$M(this, "page");
|
|
4209
4233
|
this.page = page;
|
|
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");
|
|
4219
4234
|
this.orderExpandButton = page.getByRole("button", { name: /Expand|Show details/ }).first();
|
|
4220
4235
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
4221
4236
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
@@ -4266,27 +4281,29 @@ class AccountOrder {
|
|
|
4266
4281
|
}
|
|
4267
4282
|
}
|
|
4268
4283
|
|
|
4269
|
-
var __defProp$
|
|
4270
|
-
var __defNormalProp$
|
|
4271
|
-
var __publicField$
|
|
4272
|
-
__defNormalProp$
|
|
4284
|
+
var __defProp$L = Object.defineProperty;
|
|
4285
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4286
|
+
var __publicField$L = (obj, key, value) => {
|
|
4287
|
+
__defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4273
4288
|
return value;
|
|
4274
4289
|
};
|
|
4275
4290
|
class AccountAddresses {
|
|
4276
4291
|
constructor(page, instanceMeta) {
|
|
4292
|
+
__publicField$L(this, "addNewAddressButton");
|
|
4293
|
+
__publicField$L(this, "editBillingAddressButton");
|
|
4294
|
+
__publicField$L(this, "editShippingAddressButton");
|
|
4295
|
+
__publicField$L(this, "useDefaultBillingAddressButton");
|
|
4296
|
+
__publicField$L(this, "useDefaultShippingAddressButton");
|
|
4297
|
+
__publicField$L(this, "deliveryNotPossibleAlert");
|
|
4298
|
+
__publicField$L(this, "availableAddresses");
|
|
4299
|
+
__publicField$L(this, "addressDropdownButton");
|
|
4300
|
+
__publicField$L(this, "addressDropdownButtons");
|
|
4301
|
+
__publicField$L(this, "availableAddressesUseAsBillingAddress");
|
|
4302
|
+
__publicField$L(this, "availableAddressesUseAsShippingAddress");
|
|
4303
|
+
__publicField$L(this, "page");
|
|
4304
|
+
__publicField$L(this, "instanceMeta");
|
|
4277
4305
|
this.page = page;
|
|
4278
4306
|
this.instanceMeta = instanceMeta;
|
|
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");
|
|
4290
4307
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
4291
4308
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
4292
4309
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -4308,19 +4325,20 @@ class AccountAddresses {
|
|
|
4308
4325
|
}
|
|
4309
4326
|
}
|
|
4310
4327
|
|
|
4311
|
-
var __defProp$
|
|
4312
|
-
var __defNormalProp$
|
|
4313
|
-
var __publicField$
|
|
4314
|
-
__defNormalProp$
|
|
4328
|
+
var __defProp$K = Object.defineProperty;
|
|
4329
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4330
|
+
var __publicField$K = (obj, key, value) => {
|
|
4331
|
+
__defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4315
4332
|
return value;
|
|
4316
4333
|
};
|
|
4317
4334
|
class AccountPayment {
|
|
4318
4335
|
constructor(page) {
|
|
4336
|
+
__publicField$K(this, "cashOnDeliveryOption");
|
|
4337
|
+
__publicField$K(this, "paidInAdvanceOption");
|
|
4338
|
+
__publicField$K(this, "invoiceOption");
|
|
4339
|
+
__publicField$K(this, "changeDefaultPaymentButton");
|
|
4340
|
+
__publicField$K(this, "page");
|
|
4319
4341
|
this.page = page;
|
|
4320
|
-
__publicField$J(this, "cashOnDeliveryOption");
|
|
4321
|
-
__publicField$J(this, "paidInAdvanceOption");
|
|
4322
|
-
__publicField$J(this, "invoiceOption");
|
|
4323
|
-
__publicField$J(this, "changeDefaultPaymentButton");
|
|
4324
4342
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
4325
4343
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
4326
4344
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -4331,17 +4349,18 @@ class AccountPayment {
|
|
|
4331
4349
|
}
|
|
4332
4350
|
}
|
|
4333
4351
|
|
|
4334
|
-
var __defProp$
|
|
4335
|
-
var __defNormalProp$
|
|
4336
|
-
var __publicField$
|
|
4337
|
-
__defNormalProp$
|
|
4352
|
+
var __defProp$J = Object.defineProperty;
|
|
4353
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4354
|
+
var __publicField$J = (obj, key, value) => {
|
|
4355
|
+
__defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4338
4356
|
return value;
|
|
4339
4357
|
};
|
|
4340
4358
|
class Search {
|
|
4341
4359
|
constructor(page) {
|
|
4360
|
+
__publicField$J(this, "headline");
|
|
4361
|
+
__publicField$J(this, "productImages");
|
|
4362
|
+
__publicField$J(this, "page");
|
|
4342
4363
|
this.page = page;
|
|
4343
|
-
__publicField$I(this, "headline");
|
|
4344
|
-
__publicField$I(this, "productImages");
|
|
4345
4364
|
this.headline = page.locator("h1.search-headline");
|
|
4346
4365
|
this.productImages = page.locator(".product-image-wrapper");
|
|
4347
4366
|
}
|
|
@@ -4350,25 +4369,26 @@ class Search {
|
|
|
4350
4369
|
}
|
|
4351
4370
|
}
|
|
4352
4371
|
|
|
4353
|
-
var __defProp$
|
|
4354
|
-
var __defNormalProp$
|
|
4355
|
-
var __publicField$
|
|
4356
|
-
__defNormalProp$
|
|
4372
|
+
var __defProp$I = Object.defineProperty;
|
|
4373
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4374
|
+
var __publicField$I = (obj, key, value) => {
|
|
4375
|
+
__defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4357
4376
|
return value;
|
|
4358
4377
|
};
|
|
4359
4378
|
class SearchSuggest extends Home {
|
|
4360
4379
|
constructor(page) {
|
|
4361
4380
|
super(page);
|
|
4381
|
+
__publicField$I(this, "searchSuggestLineItemImages");
|
|
4382
|
+
__publicField$I(this, "searchInput");
|
|
4383
|
+
__publicField$I(this, "searchIcon");
|
|
4384
|
+
__publicField$I(this, "searchSuggestNoResult");
|
|
4385
|
+
__publicField$I(this, "searchSuggestLineItemName");
|
|
4386
|
+
__publicField$I(this, "searchSuggestLineItemPrice");
|
|
4387
|
+
__publicField$I(this, "searchSuggestTotalLink");
|
|
4388
|
+
__publicField$I(this, "searchResultTotal");
|
|
4389
|
+
__publicField$I(this, "searchHeadline");
|
|
4390
|
+
__publicField$I(this, "page");
|
|
4362
4391
|
this.page = page;
|
|
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");
|
|
4372
4392
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
4373
4393
|
this.searchInput = page.locator(".header-search-input");
|
|
4374
4394
|
this.searchIcon = page.locator(".header-search-icon");
|
|
@@ -4388,9 +4408,16 @@ class SearchSuggest extends Home {
|
|
|
4388
4408
|
}
|
|
4389
4409
|
}
|
|
4390
4410
|
|
|
4411
|
+
var __defProp$H = Object.defineProperty;
|
|
4412
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4413
|
+
var __publicField$H = (obj, key, value) => {
|
|
4414
|
+
__defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4415
|
+
return value;
|
|
4416
|
+
};
|
|
4391
4417
|
class CustomRegister extends AccountLogin {
|
|
4392
4418
|
constructor(page) {
|
|
4393
4419
|
super(page);
|
|
4420
|
+
__publicField$H(this, "page");
|
|
4394
4421
|
this.page = page;
|
|
4395
4422
|
}
|
|
4396
4423
|
url(customCustomerGroupName) {
|
|
@@ -4406,7 +4433,6 @@ var __publicField$G = (obj, key, value) => {
|
|
|
4406
4433
|
};
|
|
4407
4434
|
class CheckoutOrderEdit {
|
|
4408
4435
|
constructor(page) {
|
|
4409
|
-
this.page = page;
|
|
4410
4436
|
__publicField$G(this, "completePaymentButton");
|
|
4411
4437
|
__publicField$G(this, "orderCancelButton");
|
|
4412
4438
|
__publicField$G(this, "dialogOrderCancel");
|
|
@@ -4423,6 +4449,8 @@ class CheckoutOrderEdit {
|
|
|
4423
4449
|
*/
|
|
4424
4450
|
__publicField$G(this, "shippingStandard");
|
|
4425
4451
|
__publicField$G(this, "shippingExpress");
|
|
4452
|
+
__publicField$G(this, "page");
|
|
4453
|
+
this.page = page;
|
|
4426
4454
|
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
4427
4455
|
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
4428
4456
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
@@ -4455,7 +4483,6 @@ var __publicField$F = (obj, key, value) => {
|
|
|
4455
4483
|
};
|
|
4456
4484
|
class AccountAddressCreate {
|
|
4457
4485
|
constructor(page) {
|
|
4458
|
-
this.page = page;
|
|
4459
4486
|
__publicField$F(this, "salutationDropdown");
|
|
4460
4487
|
__publicField$F(this, "firstNameInput");
|
|
4461
4488
|
__publicField$F(this, "lastNameInput");
|
|
@@ -4467,6 +4494,8 @@ class AccountAddressCreate {
|
|
|
4467
4494
|
__publicField$F(this, "countryDropdown");
|
|
4468
4495
|
__publicField$F(this, "saveAddressButton");
|
|
4469
4496
|
__publicField$F(this, "stateDropdown");
|
|
4497
|
+
__publicField$F(this, "page");
|
|
4498
|
+
this.page = page;
|
|
4470
4499
|
this.salutationDropdown = page.getByRole("combobox", { name: "Salutation" });
|
|
4471
4500
|
this.firstNameInput = page.getByRole("textbox", { name: "First name" });
|
|
4472
4501
|
this.lastNameInput = page.getByRole("textbox", { name: "Last name" });
|
|
@@ -4492,11 +4521,12 @@ var __publicField$E = (obj, key, value) => {
|
|
|
4492
4521
|
};
|
|
4493
4522
|
class PageNotFound {
|
|
4494
4523
|
constructor(page) {
|
|
4495
|
-
this.page = page;
|
|
4496
4524
|
__publicField$E(this, "pageNotFoundImage");
|
|
4497
4525
|
__publicField$E(this, "headline");
|
|
4498
4526
|
__publicField$E(this, "pageNotFoundMessage");
|
|
4499
4527
|
__publicField$E(this, "backToShopButton");
|
|
4528
|
+
__publicField$E(this, "page");
|
|
4529
|
+
this.page = page;
|
|
4500
4530
|
this.pageNotFoundImage = page.getByAltText("Page not found");
|
|
4501
4531
|
this.headline = page.getByRole("heading", { name: "Page not found" });
|
|
4502
4532
|
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.`);
|
|
@@ -4516,8 +4546,6 @@ var __publicField$D = (obj, key, value) => {
|
|
|
4516
4546
|
class ContactForm extends Home {
|
|
4517
4547
|
constructor(page, instanceMeta) {
|
|
4518
4548
|
super(page);
|
|
4519
|
-
this.page = page;
|
|
4520
|
-
this.instanceMeta = instanceMeta;
|
|
4521
4549
|
/**
|
|
4522
4550
|
* @deprecated Compatible until shopware v6.6.x, will be removed in 6.8.0.0, use 'contactWrapper' instead
|
|
4523
4551
|
*/
|
|
@@ -4550,6 +4578,8 @@ class ContactForm extends Home {
|
|
|
4550
4578
|
__publicField$D(this, "greCaptchaV2Container");
|
|
4551
4579
|
__publicField$D(this, "greCaptchaV2Input");
|
|
4552
4580
|
__publicField$D(this, "greCaptchaProtectionInformation");
|
|
4581
|
+
__publicField$D(this, "instanceMeta");
|
|
4582
|
+
this.instanceMeta = instanceMeta;
|
|
4553
4583
|
this.contactWrapper = this.page.locator(".card").filter({ has: this.page.getByText("Contact") });
|
|
4554
4584
|
this.formFieldFeedback = this.contactWrapper.locator(".form-field-feedback");
|
|
4555
4585
|
this.formAlert = this.page.getByRole("alert");
|
|
@@ -4593,10 +4623,11 @@ var __publicField$C = (obj, key, value) => {
|
|
|
4593
4623
|
class Wishlist extends Home {
|
|
4594
4624
|
constructor(page) {
|
|
4595
4625
|
super(page);
|
|
4596
|
-
this.page = page;
|
|
4597
4626
|
__publicField$C(this, "wishListHeader");
|
|
4598
4627
|
__publicField$C(this, "removeAlert");
|
|
4599
4628
|
__publicField$C(this, "emptyListing");
|
|
4629
|
+
__publicField$C(this, "page");
|
|
4630
|
+
this.page = page;
|
|
4600
4631
|
this.wishListHeader = page.locator(".wishlist-headline");
|
|
4601
4632
|
this.removeAlert = page.locator(".alert-success");
|
|
4602
4633
|
this.emptyListing = page.locator(".wishlist-listing-empty");
|
|
@@ -4623,12 +4654,13 @@ var __publicField$B = (obj, key, value) => {
|
|
|
4623
4654
|
};
|
|
4624
4655
|
class Footer {
|
|
4625
4656
|
constructor(page) {
|
|
4626
|
-
this.page = page;
|
|
4627
4657
|
__publicField$B(this, "footerHeadline");
|
|
4628
4658
|
__publicField$B(this, "footerContent");
|
|
4629
4659
|
__publicField$B(this, "footerHotline");
|
|
4630
4660
|
__publicField$B(this, "footerContactForm");
|
|
4631
4661
|
__publicField$B(this, "footerContactFormLink");
|
|
4662
|
+
__publicField$B(this, "page");
|
|
4663
|
+
this.page = page;
|
|
4632
4664
|
this.footerHeadline = page.locator(".footer-column-headline");
|
|
4633
4665
|
this.footerContent = page.locator(".footer-column-content-inner");
|
|
4634
4666
|
this.footerHotline = page.locator(".footer-contact-hotline");
|
|
@@ -4648,7 +4680,6 @@ var __publicField$A = (obj, key, value) => {
|
|
|
4648
4680
|
};
|
|
4649
4681
|
class Header {
|
|
4650
4682
|
constructor(page) {
|
|
4651
|
-
this.page = page;
|
|
4652
4683
|
__publicField$A(this, "mainNavigationLink");
|
|
4653
4684
|
__publicField$A(this, "languagesDropdown");
|
|
4654
4685
|
__publicField$A(this, "languagesMenuOptions");
|
|
@@ -4657,6 +4688,8 @@ class Header {
|
|
|
4657
4688
|
//wishlist
|
|
4658
4689
|
__publicField$A(this, "wishlistIcon");
|
|
4659
4690
|
__publicField$A(this, "wishlistBasket");
|
|
4691
|
+
__publicField$A(this, "page");
|
|
4692
|
+
this.page = page;
|
|
4660
4693
|
this.mainNavigationLink = page.locator(".main-navigation-link-text");
|
|
4661
4694
|
this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
|
|
4662
4695
|
this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
|
|
@@ -4697,7 +4730,7 @@ const StorefrontPageObjects = {
|
|
|
4697
4730
|
Footer,
|
|
4698
4731
|
Header
|
|
4699
4732
|
};
|
|
4700
|
-
const test$7 = test$
|
|
4733
|
+
const test$7 = test$e.extend({
|
|
4701
4734
|
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
4702
4735
|
await use(new Home(StorefrontPage));
|
|
4703
4736
|
},
|
|
@@ -4801,8 +4834,6 @@ var __publicField$z = (obj, key, value) => {
|
|
|
4801
4834
|
};
|
|
4802
4835
|
class ProductDetail {
|
|
4803
4836
|
constructor(page, instanceMeta) {
|
|
4804
|
-
this.page = page;
|
|
4805
|
-
this.instanceMeta = instanceMeta;
|
|
4806
4837
|
__publicField$z(this, "contentView");
|
|
4807
4838
|
__publicField$z(this, "productHeadline");
|
|
4808
4839
|
/**
|
|
@@ -4874,6 +4905,10 @@ class ProductDetail {
|
|
|
4874
4905
|
* Cards
|
|
4875
4906
|
*/
|
|
4876
4907
|
__publicField$z(this, "customFieldCard");
|
|
4908
|
+
__publicField$z(this, "page");
|
|
4909
|
+
__publicField$z(this, "instanceMeta");
|
|
4910
|
+
this.page = page;
|
|
4911
|
+
this.instanceMeta = instanceMeta;
|
|
4877
4912
|
this.contentView = page.locator(".sw-desktop__content");
|
|
4878
4913
|
this.productHeadline = page.locator(".smart-bar__header");
|
|
4879
4914
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
@@ -4951,8 +4986,6 @@ var __publicField$y = (obj, key, value) => {
|
|
|
4951
4986
|
};
|
|
4952
4987
|
class OrderDetail {
|
|
4953
4988
|
constructor(page, instanceMeta) {
|
|
4954
|
-
this.page = page;
|
|
4955
|
-
this.instanceMeta = instanceMeta;
|
|
4956
4989
|
__publicField$y(this, "saveButton");
|
|
4957
4990
|
__publicField$y(this, "dataGridContextButton");
|
|
4958
4991
|
__publicField$y(this, "orderTag");
|
|
@@ -4972,6 +5005,10 @@ class OrderDetail {
|
|
|
4972
5005
|
__publicField$y(this, "generalTabLink");
|
|
4973
5006
|
__publicField$y(this, "detailsTabLink");
|
|
4974
5007
|
__publicField$y(this, "documentsTabLink");
|
|
5008
|
+
__publicField$y(this, "page");
|
|
5009
|
+
__publicField$y(this, "instanceMeta");
|
|
5010
|
+
this.page = page;
|
|
5011
|
+
this.instanceMeta = instanceMeta;
|
|
4975
5012
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
4976
5013
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
4977
5014
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -5009,7 +5046,6 @@ var __publicField$x = (obj, key, value) => {
|
|
|
5009
5046
|
};
|
|
5010
5047
|
class CustomerListing {
|
|
5011
5048
|
constructor(page) {
|
|
5012
|
-
this.page = page;
|
|
5013
5049
|
__publicField$x(this, "headline");
|
|
5014
5050
|
__publicField$x(this, "addCustomerButton");
|
|
5015
5051
|
__publicField$x(this, "bulkEditButton");
|
|
@@ -5019,6 +5055,8 @@ class CustomerListing {
|
|
|
5019
5055
|
__publicField$x(this, "startBulkEditButton");
|
|
5020
5056
|
__publicField$x(this, "cancelButton");
|
|
5021
5057
|
__publicField$x(this, "modalHeaderCheckbox");
|
|
5058
|
+
__publicField$x(this, "page");
|
|
5059
|
+
this.page = page;
|
|
5022
5060
|
this.headline = page.getByRole("heading", { name: "Customers" });
|
|
5023
5061
|
this.addCustomerButton = page.locator(".sw-customer-list__button-create");
|
|
5024
5062
|
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
@@ -5087,8 +5125,6 @@ var __publicField$w = (obj, key, value) => {
|
|
|
5087
5125
|
};
|
|
5088
5126
|
class CustomerDetail {
|
|
5089
5127
|
constructor(page, instanceMeta) {
|
|
5090
|
-
this.page = page;
|
|
5091
|
-
this.instanceMeta = instanceMeta;
|
|
5092
5128
|
__publicField$w(this, "editButton");
|
|
5093
5129
|
__publicField$w(this, "generalTab");
|
|
5094
5130
|
__publicField$w(this, "accountCard");
|
|
@@ -5100,6 +5136,10 @@ class CustomerDetail {
|
|
|
5100
5136
|
__publicField$w(this, "customerGroupDeclineButton");
|
|
5101
5137
|
__publicField$w(this, "tagList");
|
|
5102
5138
|
__publicField$w(this, "tagItems");
|
|
5139
|
+
__publicField$w(this, "page");
|
|
5140
|
+
__publicField$w(this, "instanceMeta");
|
|
5141
|
+
this.page = page;
|
|
5142
|
+
this.instanceMeta = instanceMeta;
|
|
5103
5143
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
5104
5144
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
5105
5145
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -5168,9 +5208,10 @@ var __publicField$v = (obj, key, value) => {
|
|
|
5168
5208
|
};
|
|
5169
5209
|
class CustomerGroupListing {
|
|
5170
5210
|
constructor(page) {
|
|
5171
|
-
this.page = page;
|
|
5172
5211
|
__publicField$v(this, "headline");
|
|
5173
5212
|
__publicField$v(this, "addCustomerGroupButton");
|
|
5213
|
+
__publicField$v(this, "page");
|
|
5214
|
+
this.page = page;
|
|
5174
5215
|
this.headline = page.getByRole("heading", { name: "Customer groups" });
|
|
5175
5216
|
this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
|
|
5176
5217
|
}
|
|
@@ -5200,8 +5241,6 @@ var __publicField$u = (obj, key, value) => {
|
|
|
5200
5241
|
};
|
|
5201
5242
|
class CustomerGroupCreate {
|
|
5202
5243
|
constructor(page, instanceMeta) {
|
|
5203
|
-
this.page = page;
|
|
5204
|
-
this.instanceMeta = instanceMeta;
|
|
5205
5244
|
__publicField$u(this, "headline");
|
|
5206
5245
|
__publicField$u(this, "saveButton");
|
|
5207
5246
|
__publicField$u(this, "cancelButton");
|
|
@@ -5216,6 +5255,10 @@ class CustomerGroupCreate {
|
|
|
5216
5255
|
__publicField$u(this, "signupFormCompanySignupToggle");
|
|
5217
5256
|
__publicField$u(this, "customerGroupSaleschannelSelection");
|
|
5218
5257
|
__publicField$u(this, "customerGroupSaleschannelResultList");
|
|
5258
|
+
__publicField$u(this, "page");
|
|
5259
|
+
__publicField$u(this, "instanceMeta");
|
|
5260
|
+
this.page = page;
|
|
5261
|
+
this.instanceMeta = instanceMeta;
|
|
5219
5262
|
this.headline = page.getByRole("heading", { name: "New customer group" });
|
|
5220
5263
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
5221
5264
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
@@ -5253,8 +5296,6 @@ var __publicField$t = (obj, key, value) => {
|
|
|
5253
5296
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
5254
5297
|
constructor(page, instanceMeta) {
|
|
5255
5298
|
super(page, instanceMeta);
|
|
5256
|
-
this.page = page;
|
|
5257
|
-
this.instanceMeta = instanceMeta;
|
|
5258
5299
|
__publicField$t(this, "headline");
|
|
5259
5300
|
__publicField$t(this, "selectedSalesChannel");
|
|
5260
5301
|
__publicField$t(this, "technicalUrl");
|
|
@@ -5277,8 +5318,6 @@ var __publicField$s = (obj, key, value) => {
|
|
|
5277
5318
|
};
|
|
5278
5319
|
class FirstRunWizard {
|
|
5279
5320
|
constructor(page, instanceMeta) {
|
|
5280
|
-
this.page = page;
|
|
5281
|
-
this.instanceMeta = instanceMeta;
|
|
5282
5321
|
__publicField$s(this, "nextButton");
|
|
5283
5322
|
__publicField$s(this, "configureLaterButton");
|
|
5284
5323
|
__publicField$s(this, "skipButton");
|
|
@@ -5329,6 +5368,10 @@ class FirstRunWizard {
|
|
|
5329
5368
|
__publicField$s(this, "toolsSelector");
|
|
5330
5369
|
__publicField$s(this, "recommendationHeader");
|
|
5331
5370
|
__publicField$s(this, "toolsRecommendedPlugin");
|
|
5371
|
+
__publicField$s(this, "page");
|
|
5372
|
+
__publicField$s(this, "instanceMeta");
|
|
5373
|
+
this.page = page;
|
|
5374
|
+
this.instanceMeta = instanceMeta;
|
|
5332
5375
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
5333
5376
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
5334
5377
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -5386,6 +5429,17 @@ class FirstRunWizard {
|
|
|
5386
5429
|
}
|
|
5387
5430
|
}
|
|
5388
5431
|
|
|
5432
|
+
async function getSelectFieldListitem(page, selectField, listItem, instanceMeta) {
|
|
5433
|
+
await selectField.click();
|
|
5434
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5435
|
+
await page.locator(".sw-select-result-list__item-list").waitFor({ state: "visible" });
|
|
5436
|
+
return page.locator(".sw-select-result-list__content").getByRole("listitem").filter({ hasText: listItem });
|
|
5437
|
+
} else {
|
|
5438
|
+
await page.locator(".mt-select-result-list__item-list").waitFor({ state: "visible" });
|
|
5439
|
+
return page.locator(".mt-select-result-list__item-list").getByRole("listitem").filter({ hasText: listItem });
|
|
5440
|
+
}
|
|
5441
|
+
}
|
|
5442
|
+
|
|
5389
5443
|
var __defProp$r = Object.defineProperty;
|
|
5390
5444
|
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5391
5445
|
var __publicField$r = (obj, key, value) => {
|
|
@@ -5393,24 +5447,93 @@ var __publicField$r = (obj, key, value) => {
|
|
|
5393
5447
|
return value;
|
|
5394
5448
|
};
|
|
5395
5449
|
class FlowBuilderCreate {
|
|
5396
|
-
constructor(page) {
|
|
5397
|
-
|
|
5450
|
+
constructor(page, instanceMeta) {
|
|
5451
|
+
//header
|
|
5398
5452
|
__publicField$r(this, "saveButton");
|
|
5399
5453
|
__publicField$r(this, "header");
|
|
5400
|
-
__publicField$r(this, "
|
|
5454
|
+
__publicField$r(this, "smartBarHeader");
|
|
5455
|
+
//tabs
|
|
5456
|
+
__publicField$r(this, "generalTab");
|
|
5401
5457
|
__publicField$r(this, "flowTab");
|
|
5458
|
+
//../general
|
|
5459
|
+
__publicField$r(this, "nameField");
|
|
5460
|
+
__publicField$r(this, "descriptionField");
|
|
5461
|
+
__publicField$r(this, "priorityField");
|
|
5462
|
+
__publicField$r(this, "activeSwitch");
|
|
5463
|
+
//../flow
|
|
5402
5464
|
__publicField$r(this, "triggerSelectField");
|
|
5465
|
+
__publicField$r(this, "modalAddButton");
|
|
5466
|
+
__publicField$r(this, "sequenceSelectorConditionButton");
|
|
5467
|
+
__publicField$r(this, "conditionSelectField");
|
|
5468
|
+
__publicField$r(this, "sequenceSelectorActionButton");
|
|
5469
|
+
__publicField$r(this, "actionSelectField");
|
|
5470
|
+
__publicField$r(this, "selectFieldResultList");
|
|
5471
|
+
__publicField$r(this, "trueBlock");
|
|
5472
|
+
__publicField$r(this, "trueBlockAddConditionButton");
|
|
5473
|
+
__publicField$r(this, "trueBlockAddActionButton");
|
|
5474
|
+
__publicField$r(this, "trueBlockActionSelectField");
|
|
5475
|
+
__publicField$r(this, "trueBlockActionDescription");
|
|
5476
|
+
__publicField$r(this, "mailSendModal");
|
|
5477
|
+
__publicField$r(this, "mailSendModalTemplateSelectField");
|
|
5478
|
+
__publicField$r(this, "falseBlock");
|
|
5479
|
+
__publicField$r(this, "falseBlockAddConditionButton");
|
|
5480
|
+
__publicField$r(this, "falseBlockAddActionButton");
|
|
5481
|
+
__publicField$r(this, "falseBlockActionSelectField");
|
|
5482
|
+
__publicField$r(this, "falseBlockActionDescription");
|
|
5483
|
+
__publicField$r(this, "tagModal");
|
|
5484
|
+
__publicField$r(this, "tagModalTagsSelectField");
|
|
5485
|
+
__publicField$r(this, "delayCard");
|
|
5486
|
+
__publicField$r(this, "conditionRule");
|
|
5487
|
+
__publicField$r(this, "sequenceSeparator");
|
|
5403
5488
|
__publicField$r(this, "addActionField");
|
|
5404
|
-
__publicField$r(this, "smartBarHeader");
|
|
5405
5489
|
__publicField$r(this, "newFlowHeader");
|
|
5490
|
+
__publicField$r(this, "resultListItem");
|
|
5491
|
+
__publicField$r(this, "resultList");
|
|
5492
|
+
__publicField$r(this, "page");
|
|
5493
|
+
__publicField$r(this, "instanceMeta");
|
|
5494
|
+
this.page = page;
|
|
5495
|
+
this.instanceMeta = instanceMeta;
|
|
5406
5496
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
5407
5497
|
this.header = page.locator("h2");
|
|
5408
|
-
this.nameField = page.locator(".sw-flow-detail-general__general-name").getByLabel("Name");
|
|
5409
|
-
this.flowTab = page.locator(".sw-tabs__content").locator(".sw-flow-detail__tab-flow");
|
|
5410
|
-
this.triggerSelectField = page.locator(".sw-flow-detail-flow__trigger-card").getByRole("textbox");
|
|
5411
|
-
this.addActionField = page.locator(".sw-flow-sequence-action__content").locator(".sw-single-select__selection");
|
|
5412
5498
|
this.smartBarHeader = page.locator(".smart-bar__header");
|
|
5499
|
+
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
5500
|
+
this.triggerSelectField = page.locator(".sw-flow-detail-flow__trigger-card").getByRole("textbox");
|
|
5501
|
+
this.flowTab = page.locator(".sw-tabs__content").locator(".sw-flow-detail__tab-flow");
|
|
5502
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5503
|
+
this.modalAddButton = page.locator(".sw-button--primary").getByText("Add action");
|
|
5504
|
+
} else {
|
|
5505
|
+
this.modalAddButton = page.locator(".mt-button--primary").getByText("Add action");
|
|
5506
|
+
}
|
|
5507
|
+
this.nameField = page.getByLabel("Name");
|
|
5508
|
+
this.descriptionField = page.getByLabel("Description");
|
|
5509
|
+
this.priorityField = page.getByLabel("Priority");
|
|
5510
|
+
this.activeSwitch = page.getByLabel("Active");
|
|
5511
|
+
this.sequenceSelectorConditionButton = page.getByText("Add condition (IF)");
|
|
5512
|
+
this.conditionSelectField = page.locator(".sw-flow-sequence-condition__select");
|
|
5513
|
+
this.conditionRule = page.locator(".sw-flow-sequence-condition__rule-header");
|
|
5514
|
+
this.sequenceSelectorActionButton = page.getByText("Add action (THEN)");
|
|
5515
|
+
this.actionSelectField = page.locator(".sw-flow-sequence-action__content").locator(".sw-single-select__selection");
|
|
5516
|
+
this.selectFieldResultList = page.locator(".sw-select-result-list__item-list");
|
|
5517
|
+
this.trueBlock = page.locator(".sw-flow-sequence__true-block");
|
|
5518
|
+
this.trueBlockAddConditionButton = this.trueBlock.getByText("Add condition (IF)");
|
|
5519
|
+
this.trueBlockAddActionButton = this.trueBlock.getByText("Add action (THEN)");
|
|
5520
|
+
this.trueBlockActionSelectField = this.trueBlock.locator(".sw-single-select");
|
|
5521
|
+
this.trueBlockActionDescription = this.trueBlock.locator(".sw-flow-sequence-action__action-description");
|
|
5522
|
+
this.mailSendModal = page.locator(".sw-flow-mail-send-modal");
|
|
5523
|
+
this.mailSendModalTemplateSelectField = page.locator(".sw-flow-mail-send-modal").locator(".sw-entity-single-select__selection");
|
|
5524
|
+
this.falseBlock = page.locator(".sw-flow-sequence__false-block");
|
|
5525
|
+
this.falseBlockAddConditionButton = this.falseBlock.getByText("Add condition (IF)");
|
|
5526
|
+
this.falseBlockAddActionButton = this.falseBlock.getByText("Add action (THEN)");
|
|
5527
|
+
this.falseBlockActionSelectField = this.falseBlock.locator(".sw-single-select");
|
|
5528
|
+
this.falseBlockActionDescription = this.falseBlock.locator(".sw-flow-sequence-action__actions");
|
|
5529
|
+
this.tagModal = page.locator(".sw-flow-tag-modal");
|
|
5530
|
+
this.tagModalTagsSelectField = page.locator(".sw-flow-tag-modal").locator(".sw-select__selection").getByLabel("Tags");
|
|
5531
|
+
this.delayCard = page.locator(".sw-flow-delay-action__delay_card");
|
|
5532
|
+
this.sequenceSeparator = page.locator(".sw-flow-detail-flow__position-connection");
|
|
5413
5533
|
this.newFlowHeader = page.getByRole("heading", { name: "New flow" });
|
|
5534
|
+
this.addActionField = page.locator(".sw-flow-sequence-action__content").locator(".sw-single-select__selection");
|
|
5535
|
+
this.resultListItem = page.locator(".sw-select-result-list__content");
|
|
5536
|
+
this.resultList = page.locator(".sw-select-result-list");
|
|
5414
5537
|
}
|
|
5415
5538
|
url(flowId, tabName = "general") {
|
|
5416
5539
|
if (!flowId || flowId === "") {
|
|
@@ -5418,6 +5541,9 @@ class FlowBuilderCreate {
|
|
|
5418
5541
|
}
|
|
5419
5542
|
return `#/sw/flow/create/${flowId}/${tabName}`;
|
|
5420
5543
|
}
|
|
5544
|
+
async getSelectFieldListitem(selectField, listItem) {
|
|
5545
|
+
return getSelectFieldListitem(this.page, selectField, listItem, this.instanceMeta);
|
|
5546
|
+
}
|
|
5421
5547
|
}
|
|
5422
5548
|
|
|
5423
5549
|
var __defProp$q = Object.defineProperty;
|
|
@@ -5428,7 +5554,6 @@ var __publicField$q = (obj, key, value) => {
|
|
|
5428
5554
|
};
|
|
5429
5555
|
class FlowBuilderListing {
|
|
5430
5556
|
constructor(page) {
|
|
5431
|
-
this.page = page;
|
|
5432
5557
|
__publicField$q(this, "createFlowButton");
|
|
5433
5558
|
__publicField$q(this, "firstFlowName");
|
|
5434
5559
|
__publicField$q(this, "firstFlowContextButton");
|
|
@@ -5443,6 +5568,8 @@ class FlowBuilderListing {
|
|
|
5443
5568
|
__publicField$q(this, "successAlert");
|
|
5444
5569
|
__publicField$q(this, "successAlertMessage");
|
|
5445
5570
|
__publicField$q(this, "searchBar");
|
|
5571
|
+
__publicField$q(this, "page");
|
|
5572
|
+
this.page = page;
|
|
5446
5573
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
5447
5574
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
5448
5575
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -5483,7 +5610,6 @@ class FlowBuilderListing {
|
|
|
5483
5610
|
class FlowBuilderTemplates extends FlowBuilderListing {
|
|
5484
5611
|
constructor(page) {
|
|
5485
5612
|
super(page);
|
|
5486
|
-
this.page = page;
|
|
5487
5613
|
}
|
|
5488
5614
|
url() {
|
|
5489
5615
|
return `#/sw/flow/index/templates`;
|
|
@@ -5500,6 +5626,12 @@ class FlowBuilderTemplates extends FlowBuilderListing {
|
|
|
5500
5626
|
}
|
|
5501
5627
|
}
|
|
5502
5628
|
|
|
5629
|
+
async function getTooltipText(page, tooltipArea) {
|
|
5630
|
+
await tooltipArea.hover();
|
|
5631
|
+
const tooltipContent = page.locator(".sw-tooltip");
|
|
5632
|
+
return await tooltipContent.innerText();
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5503
5635
|
var __defProp$p = Object.defineProperty;
|
|
5504
5636
|
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5505
5637
|
var __publicField$p = (obj, key, value) => {
|
|
@@ -5508,9 +5640,7 @@ var __publicField$p = (obj, key, value) => {
|
|
|
5508
5640
|
};
|
|
5509
5641
|
class FlowBuilderDetail extends FlowBuilderCreate {
|
|
5510
5642
|
constructor(page, instanceMeta) {
|
|
5511
|
-
super(page);
|
|
5512
|
-
this.page = page;
|
|
5513
|
-
this.instanceMeta = instanceMeta;
|
|
5643
|
+
super(page, instanceMeta);
|
|
5514
5644
|
__publicField$p(this, "saveButtonLoader");
|
|
5515
5645
|
__publicField$p(this, "saveButton");
|
|
5516
5646
|
__publicField$p(this, "generalTab");
|
|
@@ -5518,12 +5648,16 @@ class FlowBuilderDetail extends FlowBuilderCreate {
|
|
|
5518
5648
|
__publicField$p(this, "alertWarning");
|
|
5519
5649
|
__publicField$p(this, "templateName");
|
|
5520
5650
|
__publicField$p(this, "alertMessage");
|
|
5651
|
+
__publicField$p(this, "successMessage");
|
|
5652
|
+
__publicField$p(this, "actionContentTag");
|
|
5521
5653
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
5522
5654
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5655
|
+
this.successMessage = page.locator(".sw-alert__title");
|
|
5523
5656
|
this.saveButtonLoader = page.locator(".sw-button--primary").locator(".sw-button_loader");
|
|
5524
5657
|
this.alertWarning = page.getByRole("alert").first();
|
|
5525
5658
|
this.alertMessage = page.locator(".sw-alert__title");
|
|
5526
5659
|
} else {
|
|
5660
|
+
this.successMessage = page.locator(".mt-banner__title");
|
|
5527
5661
|
this.saveButtonLoader = page.locator(".mt-button--primary").locator(".mt-button__loader");
|
|
5528
5662
|
this.alertWarning = page.getByRole("banner").first();
|
|
5529
5663
|
this.alertMessage = page.locator(".mt-banner__title");
|
|
@@ -5531,10 +5665,17 @@ class FlowBuilderDetail extends FlowBuilderCreate {
|
|
|
5531
5665
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
5532
5666
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
5533
5667
|
this.templateName = page.getByLabel("Name");
|
|
5668
|
+
this.actionContentTag = page.locator(".sw-flow-sequence-action__content").locator(".tag");
|
|
5534
5669
|
}
|
|
5535
5670
|
url(flowId, tabName = "general") {
|
|
5671
|
+
if (!flowId || flowId === "") {
|
|
5672
|
+
return `#/sw/flow/detail/${tabName}`;
|
|
5673
|
+
}
|
|
5536
5674
|
return `#/sw/flow/detail/${flowId}/${tabName}`;
|
|
5537
5675
|
}
|
|
5676
|
+
async getTooltipText(toolTipArea) {
|
|
5677
|
+
return await getTooltipText(this.page, toolTipArea);
|
|
5678
|
+
}
|
|
5538
5679
|
}
|
|
5539
5680
|
|
|
5540
5681
|
var __defProp$o = Object.defineProperty;
|
|
@@ -5545,13 +5686,15 @@ var __publicField$o = (obj, key, value) => {
|
|
|
5545
5686
|
};
|
|
5546
5687
|
class DataSharing {
|
|
5547
5688
|
constructor(page, instanceMeta) {
|
|
5548
|
-
this.page = page;
|
|
5549
|
-
this.instanceMeta = instanceMeta;
|
|
5550
5689
|
__publicField$o(this, "dataConsentHeadline");
|
|
5551
5690
|
__publicField$o(this, "dataSharingSuccessMessageLabel");
|
|
5552
5691
|
__publicField$o(this, "dataSharingAgreeButton");
|
|
5553
5692
|
__publicField$o(this, "dataSharingDisableButton");
|
|
5554
5693
|
__publicField$o(this, "dataSharingTermsAgreementLabel");
|
|
5694
|
+
__publicField$o(this, "page");
|
|
5695
|
+
__publicField$o(this, "instanceMeta");
|
|
5696
|
+
this.page = page;
|
|
5697
|
+
this.instanceMeta = instanceMeta;
|
|
5555
5698
|
if (satisfies(instanceMeta.version, "<6.6.1")) {
|
|
5556
5699
|
this.dataConsentHeadline = page.locator("header.sw-usage-data-consent-banner__title");
|
|
5557
5700
|
} else {
|
|
@@ -5578,7 +5721,6 @@ var __publicField$n = (obj, key, value) => {
|
|
|
5578
5721
|
};
|
|
5579
5722
|
class Dashboard {
|
|
5580
5723
|
constructor(page) {
|
|
5581
|
-
this.page = page;
|
|
5582
5724
|
__publicField$n(this, "contentView");
|
|
5583
5725
|
__publicField$n(this, "adminMenuView");
|
|
5584
5726
|
__publicField$n(this, "adminMenuCatalog");
|
|
@@ -5601,6 +5743,8 @@ class Dashboard {
|
|
|
5601
5743
|
__publicField$n(this, "dataSharingNotAtTheMomentMessageText");
|
|
5602
5744
|
__publicField$n(this, "statisticsDateRange");
|
|
5603
5745
|
__publicField$n(this, "statisticsChart");
|
|
5746
|
+
__publicField$n(this, "page");
|
|
5747
|
+
this.page = page;
|
|
5604
5748
|
this.adminMenuView = page.locator(".sw-admin-menu");
|
|
5605
5749
|
this.contentView = page.locator(".sw-desktop__content");
|
|
5606
5750
|
this.adminMenuCatalog = page.locator(".sw-catalogue");
|
|
@@ -5637,7 +5781,6 @@ var __publicField$m = (obj, key, value) => {
|
|
|
5637
5781
|
};
|
|
5638
5782
|
class ShippingListing {
|
|
5639
5783
|
constructor(page) {
|
|
5640
|
-
this.page = page;
|
|
5641
5784
|
__publicField$m(this, "header");
|
|
5642
5785
|
__publicField$m(this, "addShippingMethod");
|
|
5643
5786
|
__publicField$m(this, "contextMenu");
|
|
@@ -5648,6 +5791,8 @@ class ShippingListing {
|
|
|
5648
5791
|
__publicField$m(this, "modalHeader");
|
|
5649
5792
|
__publicField$m(this, "modalCancelButton");
|
|
5650
5793
|
__publicField$m(this, "modalDeleteButton");
|
|
5794
|
+
__publicField$m(this, "page");
|
|
5795
|
+
this.page = page;
|
|
5651
5796
|
this.header = page.locator(".smart-bar__header");
|
|
5652
5797
|
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
5653
5798
|
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
@@ -5671,11 +5816,12 @@ var __publicField$l = (obj, key, value) => {
|
|
|
5671
5816
|
};
|
|
5672
5817
|
class ShippingDetail {
|
|
5673
5818
|
constructor(page) {
|
|
5674
|
-
this.page = page;
|
|
5675
5819
|
__publicField$l(this, "header");
|
|
5676
5820
|
__publicField$l(this, "nameField");
|
|
5677
5821
|
__publicField$l(this, "availabilityRuleField");
|
|
5678
5822
|
__publicField$l(this, "availabilityRuleListItem");
|
|
5823
|
+
__publicField$l(this, "page");
|
|
5824
|
+
this.page = page;
|
|
5679
5825
|
this.header = page.locator(".smart-bar__header");
|
|
5680
5826
|
this.nameField = page.getByLabel("Name", { exact: true });
|
|
5681
5827
|
this.availabilityRuleField = page.locator(".sw-settings-shipping-detail__top-rule").locator(".sw-entity-single-select__selection-text");
|
|
@@ -5697,11 +5843,12 @@ var __publicField$k = (obj, key, value) => {
|
|
|
5697
5843
|
};
|
|
5698
5844
|
class PaymentDetail {
|
|
5699
5845
|
constructor(page) {
|
|
5700
|
-
this.page = page;
|
|
5701
5846
|
__publicField$k(this, "header");
|
|
5702
5847
|
__publicField$k(this, "nameField");
|
|
5703
5848
|
__publicField$k(this, "availabilityRuleField");
|
|
5704
5849
|
__publicField$k(this, "availabilityRuleListItem");
|
|
5850
|
+
__publicField$k(this, "page");
|
|
5851
|
+
this.page = page;
|
|
5705
5852
|
this.header = page.locator(".smart-bar__header");
|
|
5706
5853
|
this.nameField = page.getByLabel("Name", { exact: true });
|
|
5707
5854
|
this.availabilityRuleField = page.locator(".sw-settings-payment-detail__field-availability-rule").locator(".sw-entity-single-select__selection-text");
|
|
@@ -5723,7 +5870,6 @@ var __publicField$j = (obj, key, value) => {
|
|
|
5723
5870
|
};
|
|
5724
5871
|
class LandingPageCreate {
|
|
5725
5872
|
constructor(page) {
|
|
5726
|
-
this.page = page;
|
|
5727
5873
|
/**
|
|
5728
5874
|
* General
|
|
5729
5875
|
*/
|
|
@@ -5745,6 +5891,8 @@ class LandingPageCreate {
|
|
|
5745
5891
|
__publicField$j(this, "layoutEmptyState");
|
|
5746
5892
|
__publicField$j(this, "createNewLayoutButton");
|
|
5747
5893
|
__publicField$j(this, "layoutCheckboxes");
|
|
5894
|
+
__publicField$j(this, "page");
|
|
5895
|
+
this.page = page;
|
|
5748
5896
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
5749
5897
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
5750
5898
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -5777,7 +5925,6 @@ var __publicField$i = (obj, key, value) => {
|
|
|
5777
5925
|
};
|
|
5778
5926
|
class LandingPageDetail {
|
|
5779
5927
|
constructor(page) {
|
|
5780
|
-
this.page = page;
|
|
5781
5928
|
/**
|
|
5782
5929
|
* General
|
|
5783
5930
|
*/
|
|
@@ -5799,6 +5946,8 @@ class LandingPageDetail {
|
|
|
5799
5946
|
__publicField$i(this, "layoutResetButton");
|
|
5800
5947
|
__publicField$i(this, "layoutAssignmentStatus");
|
|
5801
5948
|
__publicField$i(this, "layoutAssignmentContentSection");
|
|
5949
|
+
__publicField$i(this, "page");
|
|
5950
|
+
this.page = page;
|
|
5802
5951
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
5803
5952
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
5804
5953
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -5830,8 +5979,6 @@ var __publicField$h = (obj, key, value) => {
|
|
|
5830
5979
|
};
|
|
5831
5980
|
class Categories {
|
|
5832
5981
|
constructor(page, instanceMeta) {
|
|
5833
|
-
this.page = page;
|
|
5834
|
-
this.instanceMeta = instanceMeta;
|
|
5835
5982
|
/**
|
|
5836
5983
|
* Visual tests
|
|
5837
5984
|
*/
|
|
@@ -5884,6 +6031,10 @@ class Categories {
|
|
|
5884
6031
|
__publicField$h(this, "popoverCategoryTree");
|
|
5885
6032
|
__publicField$h(this, "categorySelectionListWrapper");
|
|
5886
6033
|
__publicField$h(this, "productSelectionInput");
|
|
6034
|
+
__publicField$h(this, "page");
|
|
6035
|
+
__publicField$h(this, "instanceMeta");
|
|
6036
|
+
this.page = page;
|
|
6037
|
+
this.instanceMeta = instanceMeta;
|
|
5887
6038
|
this.contentView = page.locator(".sw-desktop__content");
|
|
5888
6039
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
5889
6040
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
@@ -5942,9 +6093,10 @@ var __publicField$g = (obj, key, value) => {
|
|
|
5942
6093
|
};
|
|
5943
6094
|
class CustomFieldListing {
|
|
5944
6095
|
constructor(page) {
|
|
5945
|
-
this.page = page;
|
|
5946
6096
|
__publicField$g(this, "addNewSetButton");
|
|
5947
6097
|
__publicField$g(this, "customFieldRows");
|
|
6098
|
+
__publicField$g(this, "page");
|
|
6099
|
+
this.page = page;
|
|
5948
6100
|
this.addNewSetButton = page.getByText("Add new set");
|
|
5949
6101
|
this.customFieldRows = page.getByRole("row");
|
|
5950
6102
|
}
|
|
@@ -5980,7 +6132,6 @@ var __publicField$f = (obj, key, value) => {
|
|
|
5980
6132
|
};
|
|
5981
6133
|
class CustomFieldCreate {
|
|
5982
6134
|
constructor(page) {
|
|
5983
|
-
this.page = page;
|
|
5984
6135
|
__publicField$f(this, "saveButton");
|
|
5985
6136
|
__publicField$f(this, "cancelButton");
|
|
5986
6137
|
__publicField$f(this, "technicalNameInput");
|
|
@@ -5988,6 +6139,8 @@ class CustomFieldCreate {
|
|
|
5988
6139
|
__publicField$f(this, "labelEnglishGBInput");
|
|
5989
6140
|
__publicField$f(this, "assignToSelectionList");
|
|
5990
6141
|
__publicField$f(this, "resultAssignToPopoverItemList");
|
|
6142
|
+
__publicField$f(this, "page");
|
|
6143
|
+
this.page = page;
|
|
5991
6144
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
5992
6145
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
5993
6146
|
this.technicalNameInput = page.getByLabel("Technical name");
|
|
@@ -6001,17 +6154,6 @@ class CustomFieldCreate {
|
|
|
6001
6154
|
}
|
|
6002
6155
|
}
|
|
6003
6156
|
|
|
6004
|
-
async function getSelectFieldListitem(page, selectField, listItem, instanceMeta) {
|
|
6005
|
-
await selectField.click();
|
|
6006
|
-
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
6007
|
-
await page.locator(".sw-select-result-list__item-list").waitFor({ state: "visible" });
|
|
6008
|
-
return page.locator(".sw-select-result-list__content").getByRole("listitem").filter({ hasText: listItem });
|
|
6009
|
-
} else {
|
|
6010
|
-
await page.locator(".mt-select-result-list__item-list").waitFor({ state: "visible" });
|
|
6011
|
-
return page.locator(".mt-select-result-list__item-list").getByRole("listitem").filter({ hasText: listItem });
|
|
6012
|
-
}
|
|
6013
|
-
}
|
|
6014
|
-
|
|
6015
6157
|
var __defProp$e = Object.defineProperty;
|
|
6016
6158
|
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6017
6159
|
var __publicField$e = (obj, key, value) => {
|
|
@@ -6021,8 +6163,6 @@ var __publicField$e = (obj, key, value) => {
|
|
|
6021
6163
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
6022
6164
|
constructor(page, instanceMeta) {
|
|
6023
6165
|
super(page);
|
|
6024
|
-
this.page = page;
|
|
6025
|
-
this.instanceMeta = instanceMeta;
|
|
6026
6166
|
__publicField$e(this, "newCustomFieldButton");
|
|
6027
6167
|
__publicField$e(this, "customFieldEditDialog");
|
|
6028
6168
|
__publicField$e(this, "newCustomFieldDialog");
|
|
@@ -6041,6 +6181,8 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
6041
6181
|
__publicField$e(this, "customFieldDeleteCancelButton");
|
|
6042
6182
|
__publicField$e(this, "customFieldDeleteButton");
|
|
6043
6183
|
__publicField$e(this, "customFieldEditAvailableInShoppingCartCheckbox");
|
|
6184
|
+
__publicField$e(this, "instanceMeta");
|
|
6185
|
+
this.instanceMeta = instanceMeta;
|
|
6044
6186
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
6045
6187
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
6046
6188
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
@@ -6101,13 +6243,15 @@ var __publicField$d = (obj, key, value) => {
|
|
|
6101
6243
|
};
|
|
6102
6244
|
class CategoryDetail {
|
|
6103
6245
|
constructor(page, instanceMeta) {
|
|
6104
|
-
this.page = page;
|
|
6105
|
-
this.instanceMeta = instanceMeta;
|
|
6106
6246
|
__publicField$d(this, "saveButton");
|
|
6107
6247
|
__publicField$d(this, "cancelButton");
|
|
6108
6248
|
__publicField$d(this, "customFieldCard");
|
|
6109
6249
|
__publicField$d(this, "customFieldSetTabs");
|
|
6110
6250
|
__publicField$d(this, "customFieldSetTabCustomContent");
|
|
6251
|
+
__publicField$d(this, "page");
|
|
6252
|
+
__publicField$d(this, "instanceMeta");
|
|
6253
|
+
this.page = page;
|
|
6254
|
+
this.instanceMeta = instanceMeta;
|
|
6111
6255
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
6112
6256
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
6113
6257
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
@@ -6148,8 +6292,6 @@ var __publicField$c = (obj, key, value) => {
|
|
|
6148
6292
|
};
|
|
6149
6293
|
class RuleCreate {
|
|
6150
6294
|
constructor(page, instanceMeta) {
|
|
6151
|
-
this.page = page;
|
|
6152
|
-
this.instanceMeta = instanceMeta;
|
|
6153
6295
|
__publicField$c(this, "nameInput");
|
|
6154
6296
|
__publicField$c(this, "priorityInput");
|
|
6155
6297
|
__publicField$c(this, "conditionTypeSelectionInput");
|
|
@@ -6158,6 +6300,10 @@ class RuleCreate {
|
|
|
6158
6300
|
__publicField$c(this, "saveButton");
|
|
6159
6301
|
__publicField$c(this, "cancelButton");
|
|
6160
6302
|
__publicField$c(this, "valueNotAvailableTooltip");
|
|
6303
|
+
__publicField$c(this, "page");
|
|
6304
|
+
__publicField$c(this, "instanceMeta");
|
|
6305
|
+
this.page = page;
|
|
6306
|
+
this.instanceMeta = instanceMeta;
|
|
6161
6307
|
this.nameInput = page.getByLabel("Name");
|
|
6162
6308
|
this.priorityInput = page.getByLabel("Priority");
|
|
6163
6309
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -6184,8 +6330,6 @@ var __publicField$b = (obj, key, value) => {
|
|
|
6184
6330
|
class RuleDetail extends RuleCreate {
|
|
6185
6331
|
constructor(page, instanceMeta) {
|
|
6186
6332
|
super(page, instanceMeta);
|
|
6187
|
-
this.page = page;
|
|
6188
|
-
this.instanceMeta = instanceMeta;
|
|
6189
6333
|
__publicField$b(this, "shippingMethodAvailabilityRulesCard");
|
|
6190
6334
|
__publicField$b(this, "shippingMethodAvailabilityRulesCardLink");
|
|
6191
6335
|
__publicField$b(this, "shippingMethodAvailabilityRulesCardTable");
|
|
@@ -6245,8 +6389,9 @@ var __publicField$a = (obj, key, value) => {
|
|
|
6245
6389
|
};
|
|
6246
6390
|
class RuleListing {
|
|
6247
6391
|
constructor(page) {
|
|
6248
|
-
this.page = page;
|
|
6249
6392
|
__publicField$a(this, "createRuleButton");
|
|
6393
|
+
__publicField$a(this, "page");
|
|
6394
|
+
this.page = page;
|
|
6250
6395
|
this.createRuleButton = page.getByText("Create rule");
|
|
6251
6396
|
}
|
|
6252
6397
|
url() {
|
|
@@ -6262,13 +6407,15 @@ var __publicField$9 = (obj, key, value) => {
|
|
|
6262
6407
|
};
|
|
6263
6408
|
class ManufacturerCreate {
|
|
6264
6409
|
constructor(page, instanceMeta) {
|
|
6265
|
-
this.page = page;
|
|
6266
|
-
this.instanceMeta = instanceMeta;
|
|
6267
6410
|
__publicField$9(this, "saveButton");
|
|
6268
6411
|
__publicField$9(this, "cancelButton");
|
|
6269
6412
|
__publicField$9(this, "nameInput");
|
|
6270
6413
|
__publicField$9(this, "websiteInput");
|
|
6271
6414
|
__publicField$9(this, "descriptionInput");
|
|
6415
|
+
__publicField$9(this, "page");
|
|
6416
|
+
__publicField$9(this, "instanceMeta");
|
|
6417
|
+
this.page = page;
|
|
6418
|
+
this.instanceMeta = instanceMeta;
|
|
6272
6419
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
6273
6420
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
6274
6421
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -6292,9 +6439,10 @@ var __publicField$8 = (obj, key, value) => {
|
|
|
6292
6439
|
};
|
|
6293
6440
|
class ManufacturerListing {
|
|
6294
6441
|
constructor(page) {
|
|
6295
|
-
this.page = page;
|
|
6296
6442
|
__publicField$8(this, "addManufacturerButton");
|
|
6297
6443
|
__publicField$8(this, "manufacturerRows");
|
|
6444
|
+
__publicField$8(this, "page");
|
|
6445
|
+
this.page = page;
|
|
6298
6446
|
this.addManufacturerButton = page.getByText("Add manufacturer");
|
|
6299
6447
|
this.manufacturerRows = page.getByRole("row");
|
|
6300
6448
|
}
|
|
@@ -6335,8 +6483,6 @@ var __publicField$7 = (obj, key, value) => {
|
|
|
6335
6483
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
6336
6484
|
constructor(page, instanceMeta) {
|
|
6337
6485
|
super(page, instanceMeta);
|
|
6338
|
-
this.page = page;
|
|
6339
|
-
this.instanceMeta = instanceMeta;
|
|
6340
6486
|
__publicField$7(this, "customFieldCard");
|
|
6341
6487
|
__publicField$7(this, "customFieldSetTabs");
|
|
6342
6488
|
__publicField$7(this, "customFieldSetTabCustomContent");
|
|
@@ -6375,17 +6521,18 @@ var __publicField$6 = (obj, key, value) => {
|
|
|
6375
6521
|
};
|
|
6376
6522
|
class ProductListing {
|
|
6377
6523
|
constructor(page) {
|
|
6378
|
-
this.page = page;
|
|
6379
6524
|
/**
|
|
6380
6525
|
* Multi selection
|
|
6381
6526
|
*/
|
|
6382
6527
|
__publicField$6(this, "productsTable");
|
|
6383
6528
|
__publicField$6(this, "bulkEditButton");
|
|
6529
|
+
__publicField$6(this, "page");
|
|
6384
6530
|
/**
|
|
6385
6531
|
* Bulk edit modal
|
|
6386
6532
|
*/
|
|
6387
6533
|
__publicField$6(this, "bulkEditModal");
|
|
6388
6534
|
__publicField$6(this, "startBulkEditButton");
|
|
6535
|
+
this.page = page;
|
|
6389
6536
|
this.productsTable = page.locator(".sw-data-grid__table");
|
|
6390
6537
|
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
6391
6538
|
this.bulkEditModal = page.locator(".sw-product-bulk-edit-modal");
|
|
@@ -6443,7 +6590,6 @@ var __publicField$5 = (obj, key, value) => {
|
|
|
6443
6590
|
};
|
|
6444
6591
|
class ProductBulkEdit {
|
|
6445
6592
|
constructor(page) {
|
|
6446
|
-
this.page = page;
|
|
6447
6593
|
/**
|
|
6448
6594
|
* Bulk edit values
|
|
6449
6595
|
*/
|
|
@@ -6490,6 +6636,8 @@ class ProductBulkEdit {
|
|
|
6490
6636
|
__publicField$5(this, "confirmModalLoadingSpinner");
|
|
6491
6637
|
__publicField$5(this, "confirmModalSuccessHeader");
|
|
6492
6638
|
__publicField$5(this, "confirmModalSuccessCloseButton");
|
|
6639
|
+
__publicField$5(this, "page");
|
|
6640
|
+
this.page = page;
|
|
6493
6641
|
this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
|
|
6494
6642
|
this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
|
|
6495
6643
|
this.manufacturerDropdown = this.changeManufacturerRow.locator(".sw-select__selection");
|
|
@@ -6547,7 +6695,6 @@ var __publicField$4 = (obj, key, value) => {
|
|
|
6547
6695
|
};
|
|
6548
6696
|
class CustomerBulkEdit {
|
|
6549
6697
|
constructor(page) {
|
|
6550
|
-
this.page = page;
|
|
6551
6698
|
//General
|
|
6552
6699
|
__publicField$4(this, "applyChangesButton");
|
|
6553
6700
|
__publicField$4(this, "filtersResultPopoverItemList");
|
|
@@ -6575,6 +6722,8 @@ class CustomerBulkEdit {
|
|
|
6575
6722
|
__publicField$4(this, "confirmModalApplyChangesButton");
|
|
6576
6723
|
__publicField$4(this, "confirmModalSuccessHeader");
|
|
6577
6724
|
__publicField$4(this, "confirmModalSuccessCloseButton");
|
|
6725
|
+
__publicField$4(this, "page");
|
|
6726
|
+
this.page = page;
|
|
6578
6727
|
this.applyChangesButton = page.getByRole("button", { name: "Apply changes" });
|
|
6579
6728
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
6580
6729
|
this.changeCustomerGroupCheckbox = page.getByRole("checkbox", { name: "Change: Customer group" });
|
|
@@ -6624,9 +6773,10 @@ var __publicField$3 = (obj, key, value) => {
|
|
|
6624
6773
|
};
|
|
6625
6774
|
class SettingsListing {
|
|
6626
6775
|
constructor(page) {
|
|
6627
|
-
this.page = page;
|
|
6628
6776
|
__publicField$3(this, "contentView");
|
|
6629
6777
|
__publicField$3(this, "header");
|
|
6778
|
+
__publicField$3(this, "page");
|
|
6779
|
+
this.page = page;
|
|
6630
6780
|
this.header = page.locator(".sw-settings__content-header");
|
|
6631
6781
|
this.contentView = page.locator(".sw-desktop__content");
|
|
6632
6782
|
}
|
|
@@ -6643,9 +6793,10 @@ var __publicField$2 = (obj, key, value) => {
|
|
|
6643
6793
|
};
|
|
6644
6794
|
class DocumentListing {
|
|
6645
6795
|
constructor(page) {
|
|
6646
|
-
this.page = page;
|
|
6647
6796
|
__publicField$2(this, "addDocumentButton");
|
|
6648
6797
|
__publicField$2(this, "invoiceLink");
|
|
6798
|
+
__publicField$2(this, "page");
|
|
6799
|
+
this.page = page;
|
|
6649
6800
|
this.addDocumentButton = page.getByRole("button", { name: "Add document" });
|
|
6650
6801
|
this.invoiceLink = page.getByRole("link", { name: "invoice", exact: true });
|
|
6651
6802
|
}
|
|
@@ -6662,10 +6813,11 @@ var __publicField$1 = (obj, key, value) => {
|
|
|
6662
6813
|
};
|
|
6663
6814
|
class DocumentDetail {
|
|
6664
6815
|
constructor(page) {
|
|
6665
|
-
this.page = page;
|
|
6666
6816
|
__publicField$1(this, "showInAccountSwitch");
|
|
6667
6817
|
__publicField$1(this, "saveButton");
|
|
6668
6818
|
__publicField$1(this, "documentTypeSelect");
|
|
6819
|
+
__publicField$1(this, "page");
|
|
6820
|
+
this.page = page;
|
|
6669
6821
|
this.showInAccountSwitch = page.getByRole("checkbox", { name: 'Display document in "My' });
|
|
6670
6822
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
6671
6823
|
this.documentTypeSelect = page.locator(".sw-settings-document-detail__select-type");
|
|
@@ -6713,7 +6865,7 @@ const AdminPageObjects = {
|
|
|
6713
6865
|
DocumentListing,
|
|
6714
6866
|
DocumentDetail
|
|
6715
6867
|
};
|
|
6716
|
-
const test$6 = test$
|
|
6868
|
+
const test$6 = test$e.extend({
|
|
6717
6869
|
AdminProductDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6718
6870
|
await use(new ProductDetail(AdminPage, InstanceMeta));
|
|
6719
6871
|
},
|
|
@@ -6738,8 +6890,8 @@ const test$6 = test$f.extend({
|
|
|
6738
6890
|
AdminFirstRunWizard: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6739
6891
|
await use(new FirstRunWizard(AdminPage, InstanceMeta));
|
|
6740
6892
|
},
|
|
6741
|
-
AdminFlowBuilderCreate: async ({ AdminPage }, use) => {
|
|
6742
|
-
await use(new FlowBuilderCreate(AdminPage));
|
|
6893
|
+
AdminFlowBuilderCreate: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6894
|
+
await use(new FlowBuilderCreate(AdminPage, InstanceMeta));
|
|
6743
6895
|
},
|
|
6744
6896
|
AdminFlowBuilderListing: async ({ AdminPage }, use) => {
|
|
6745
6897
|
await use(new FlowBuilderListing(AdminPage));
|
|
@@ -6824,7 +6976,7 @@ const test$6 = test$f.extend({
|
|
|
6824
6976
|
}
|
|
6825
6977
|
});
|
|
6826
6978
|
|
|
6827
|
-
const ProductData = test$
|
|
6979
|
+
const ProductData = test$e.extend({
|
|
6828
6980
|
ProductData: async ({ IdProvider, SalesChannelBaseConfig, AdminApiContext, DefaultSalesChannel }, use) => {
|
|
6829
6981
|
const { id: productId, uuid: productUuid } = IdProvider.getIdPair();
|
|
6830
6982
|
const productName = `Product_test_${productId}`;
|
|
@@ -6873,7 +7025,7 @@ const ProductData = test$f.extend({
|
|
|
6873
7025
|
}
|
|
6874
7026
|
});
|
|
6875
7027
|
|
|
6876
|
-
const CategoryData = test$
|
|
7028
|
+
const CategoryData = test$e.extend({
|
|
6877
7029
|
CategoryData: async ({ IdProvider, AdminApiContext, DefaultSalesChannel, ProductData }, use) => {
|
|
6878
7030
|
const { id: categoryId, uuid: categoryUuid } = IdProvider.getIdPair();
|
|
6879
7031
|
const categoryName = `Category-${categoryId}`;
|
|
@@ -6900,7 +7052,7 @@ const CategoryData = test$f.extend({
|
|
|
6900
7052
|
}
|
|
6901
7053
|
});
|
|
6902
7054
|
|
|
6903
|
-
const DigitalProductData = test$
|
|
7055
|
+
const DigitalProductData = test$e.extend({
|
|
6904
7056
|
DigitalProductData: async ({ ProductData, IdProvider, AdminApiContext }, use) => {
|
|
6905
7057
|
const newMediaResource = await AdminApiContext.post("./media?_response", {
|
|
6906
7058
|
data: {
|
|
@@ -6955,7 +7107,7 @@ const DigitalProductData = test$f.extend({
|
|
|
6955
7107
|
}
|
|
6956
7108
|
});
|
|
6957
7109
|
|
|
6958
|
-
const PropertiesData = test$
|
|
7110
|
+
const PropertiesData = test$e.extend({
|
|
6959
7111
|
PropertiesData: async ({ AdminApiContext }, use) => {
|
|
6960
7112
|
const propertyGroupColorResponse = await AdminApiContext.post("property-group?_response=1", {
|
|
6961
7113
|
data: {
|
|
@@ -7005,7 +7157,7 @@ const PropertiesData = test$f.extend({
|
|
|
7005
7157
|
}
|
|
7006
7158
|
});
|
|
7007
7159
|
|
|
7008
|
-
const CartWithProductData = test$
|
|
7160
|
+
const CartWithProductData = test$e.extend({
|
|
7009
7161
|
CartWithProductData: async ({ StoreApiContext, DefaultSalesChannel, ProductData }, use) => {
|
|
7010
7162
|
await StoreApiContext.login(DefaultSalesChannel.customer);
|
|
7011
7163
|
const cartResponse = await StoreApiContext.post("checkout/cart", {
|
|
@@ -7031,7 +7183,7 @@ const CartWithProductData = test$f.extend({
|
|
|
7031
7183
|
}
|
|
7032
7184
|
});
|
|
7033
7185
|
|
|
7034
|
-
const PromotionWithCodeData = test$
|
|
7186
|
+
const PromotionWithCodeData = test$e.extend({
|
|
7035
7187
|
PromotionWithCodeData: async ({ AdminApiContext, DefaultSalesChannel, IdProvider }, use) => {
|
|
7036
7188
|
const promotionCode = `${IdProvider.getIdPair().id}`;
|
|
7037
7189
|
const promotionName = `Test Promotion ${promotionCode}`;
|
|
@@ -7073,7 +7225,7 @@ const PromotionWithCodeData = test$f.extend({
|
|
|
7073
7225
|
}
|
|
7074
7226
|
});
|
|
7075
7227
|
|
|
7076
|
-
const MediaData = test$
|
|
7228
|
+
const MediaData = test$e.extend({
|
|
7077
7229
|
MediaData: async ({ AdminApiContext, IdProvider }, use) => {
|
|
7078
7230
|
const imageId = IdProvider.getIdPair().id;
|
|
7079
7231
|
const imageFilePath = `./tmp/image-${imageId}.png`;
|
|
@@ -7120,7 +7272,7 @@ const MediaData = test$f.extend({
|
|
|
7120
7272
|
}
|
|
7121
7273
|
});
|
|
7122
7274
|
|
|
7123
|
-
const OrderData = test$
|
|
7275
|
+
const OrderData = test$e.extend({
|
|
7124
7276
|
OrderData: async ({ IdProvider, AdminApiContext, SalesChannelBaseConfig, DefaultSalesChannel, ProductData }, use) => {
|
|
7125
7277
|
const requests = {
|
|
7126
7278
|
currencyEUR: getCurrency("EUR", AdminApiContext),
|
|
@@ -7337,7 +7489,7 @@ const OrderData = test$f.extend({
|
|
|
7337
7489
|
}
|
|
7338
7490
|
});
|
|
7339
7491
|
|
|
7340
|
-
const TagData = test$
|
|
7492
|
+
const TagData = test$e.extend({
|
|
7341
7493
|
TagData: async ({ IdProvider, AdminApiContext }, use) => {
|
|
7342
7494
|
const tagUUID = IdProvider.getIdPair().uuid;
|
|
7343
7495
|
const tagId = IdProvider.getIdPair().id;
|
|
@@ -7368,7 +7520,7 @@ const test$5 = mergeTests(
|
|
|
7368
7520
|
TagData
|
|
7369
7521
|
);
|
|
7370
7522
|
|
|
7371
|
-
const SaveProduct = test$
|
|
7523
|
+
const SaveProduct = test$e.extend({
|
|
7372
7524
|
SaveProduct: async ({ ShopAdmin, AdminProductDetail }, use) => {
|
|
7373
7525
|
const task = () => {
|
|
7374
7526
|
return async function SaveProduct2() {
|
|
@@ -7386,7 +7538,7 @@ const SaveProduct = test$f.extend({
|
|
|
7386
7538
|
}
|
|
7387
7539
|
});
|
|
7388
7540
|
|
|
7389
|
-
const ExpectNotification = test$
|
|
7541
|
+
const ExpectNotification = test$e.extend({
|
|
7390
7542
|
ExpectNotification: async ({ ShopAdmin, InstanceMeta }, use) => {
|
|
7391
7543
|
const task = (message, close = true) => {
|
|
7392
7544
|
return async function ExpectNotification2() {
|
|
@@ -7411,7 +7563,7 @@ const ExpectNotification = test$f.extend({
|
|
|
7411
7563
|
}
|
|
7412
7564
|
});
|
|
7413
7565
|
|
|
7414
|
-
const CreateLinkTypeCategory = test$
|
|
7566
|
+
const CreateLinkTypeCategory = test$e.extend({
|
|
7415
7567
|
CreateLinkTypeCategory: async ({ AdminCategories, AdminCategoryDetail, TestDataService }, use) => {
|
|
7416
7568
|
const task = (categoryData, categoryCustomizableLinkData, parentCategoryName) => {
|
|
7417
7569
|
return async function CreateLinkTypeCategory2() {
|
|
@@ -7465,7 +7617,7 @@ const CreateLinkTypeCategory = test$f.extend({
|
|
|
7465
7617
|
}
|
|
7466
7618
|
});
|
|
7467
7619
|
|
|
7468
|
-
const BulkEditProducts = test$
|
|
7620
|
+
const BulkEditProducts = test$e.extend({
|
|
7469
7621
|
BulkEditProducts: async ({ AdminProductBulkEdit, AdminProductListing }, use) => {
|
|
7470
7622
|
const task = (products, changes) => {
|
|
7471
7623
|
return async function BulkEditProducts2() {
|
|
@@ -7564,7 +7716,7 @@ const BulkEditProducts = test$f.extend({
|
|
|
7564
7716
|
}
|
|
7565
7717
|
});
|
|
7566
7718
|
|
|
7567
|
-
const BulkEditCustomers = test$
|
|
7719
|
+
const BulkEditCustomers = test$e.extend({
|
|
7568
7720
|
BulkEditCustomers: async ({ ShopAdmin, AdminCustomerListing, AdminCustomerBulkEdit }, use) => {
|
|
7569
7721
|
const task = (customers, accountData, tagData, customFieldData) => {
|
|
7570
7722
|
return async function BulkEditCustomers2() {
|
|
@@ -7633,17 +7785,16 @@ const BulkEditCustomers = test$f.extend({
|
|
|
7633
7785
|
}
|
|
7634
7786
|
});
|
|
7635
7787
|
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
const AssignEntitiesToRule = test$f.extend({
|
|
7788
|
+
const RuleType = {
|
|
7789
|
+
shippingAvailability: "shippingMethodAvailabilityRule",
|
|
7790
|
+
taxAvailability: "taxProviderAvailabilityRule",
|
|
7791
|
+
paymentAvailability: "paymentMethodAvailabilityRule",
|
|
7792
|
+
promotionOrder: "promotionOrderRule",
|
|
7793
|
+
promotionCustomer: "promotionCustomerRule",
|
|
7794
|
+
promotionCart: "promotionCartRule"
|
|
7795
|
+
};
|
|
7796
|
+
|
|
7797
|
+
const AssignEntitiesToRule = test$e.extend({
|
|
7647
7798
|
AssignEntitiesToRule: async ({ AdminRuleDetail }, use) => {
|
|
7648
7799
|
const task = (assignableEntities) => {
|
|
7649
7800
|
return async function AssignEntitiesToRule2() {
|
|
@@ -7684,7 +7835,58 @@ const AssignEntitiesToRule = test$f.extend({
|
|
|
7684
7835
|
}
|
|
7685
7836
|
});
|
|
7686
7837
|
|
|
7687
|
-
const
|
|
7838
|
+
const CreateFlow = test$e.extend({
|
|
7839
|
+
CreateFlow: async ({ AdminFlowBuilderCreate, AdminFlowBuilderDetail, AdminFlowBuilderListing, ShopAdmin, TestDataService }, use) => {
|
|
7840
|
+
const task = (flowConfig) => {
|
|
7841
|
+
return async function createFlow() {
|
|
7842
|
+
await AdminFlowBuilderListing.createFlowButton.click();
|
|
7843
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.smartBarHeader).toHaveText("New flow");
|
|
7844
|
+
await AdminFlowBuilderCreate.nameField.fill(`${flowConfig.name}`);
|
|
7845
|
+
await AdminFlowBuilderCreate.descriptionField.fill(`${flowConfig.description}`);
|
|
7846
|
+
await AdminFlowBuilderCreate.priorityField.fill(`${flowConfig.priority}`);
|
|
7847
|
+
if (flowConfig.active) {
|
|
7848
|
+
await AdminFlowBuilderCreate.activeSwitch.click();
|
|
7849
|
+
}
|
|
7850
|
+
await AdminFlowBuilderCreate.flowTab.click();
|
|
7851
|
+
await AdminFlowBuilderCreate.triggerSelectField.fill(flowConfig.triggerSearchTerm);
|
|
7852
|
+
await AdminFlowBuilderCreate.triggerSelectField.press("Enter");
|
|
7853
|
+
await AdminFlowBuilderCreate.sequenceSelectorConditionButton.click();
|
|
7854
|
+
await AdminFlowBuilderCreate.conditionSelectField.click();
|
|
7855
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.resultList).toBeVisible();
|
|
7856
|
+
await AdminFlowBuilderCreate.resultListItem.getByRole("listitem").filter({ hasText: `${flowConfig.condition}` }).click();
|
|
7857
|
+
await AdminFlowBuilderCreate.trueBlockAddActionButton.click();
|
|
7858
|
+
await AdminFlowBuilderCreate.trueBlockActionSelectField.click();
|
|
7859
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.resultList).toBeVisible();
|
|
7860
|
+
await AdminFlowBuilderCreate.resultListItem.getByRole("listitem").filter({ hasText: `${flowConfig.trueAction}` }).click();
|
|
7861
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.mailSendModal).toBeVisible();
|
|
7862
|
+
await AdminFlowBuilderCreate.mailSendModalTemplateSelectField.click();
|
|
7863
|
+
await AdminFlowBuilderCreate.resultListItem.waitFor({ state: "visible" });
|
|
7864
|
+
await AdminFlowBuilderCreate.resultListItem.getByRole("listitem").filter({ hasText: `${flowConfig.trueActionIdentifier}` }).click();
|
|
7865
|
+
await AdminFlowBuilderCreate.modalAddButton.click();
|
|
7866
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.trueBlockActionDescription).toContainText(`${flowConfig.trueActionIdentifier}`);
|
|
7867
|
+
await AdminFlowBuilderCreate.falseBlockAddActionButton.click();
|
|
7868
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.falseBlockActionSelectField).toBeVisible();
|
|
7869
|
+
await AdminFlowBuilderCreate.falseBlockActionSelectField.click();
|
|
7870
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.resultList).toBeVisible();
|
|
7871
|
+
await AdminFlowBuilderCreate.resultListItem.getByRole("listitem").filter({ hasText: `${flowConfig.falseAction}` }).click();
|
|
7872
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.tagModal).toBeVisible();
|
|
7873
|
+
await AdminFlowBuilderCreate.tagModalTagsSelectField.click();
|
|
7874
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.resultList).toBeVisible();
|
|
7875
|
+
await AdminFlowBuilderCreate.resultListItem.getByRole("listitem").filter({ hasText: `${flowConfig.falseActionIdentifier}` }).click();
|
|
7876
|
+
await AdminFlowBuilderCreate.modalAddButton.click();
|
|
7877
|
+
await ShopAdmin.expects(AdminFlowBuilderCreate.falseBlockActionDescription).toContainText(`Tag: ${flowConfig.falseActionIdentifier}`);
|
|
7878
|
+
await AdminFlowBuilderCreate.saveButton.click();
|
|
7879
|
+
await ShopAdmin.expects(AdminFlowBuilderDetail.successMessage).toBeVisible();
|
|
7880
|
+
const flowURL = AdminFlowBuilderDetail.page.url();
|
|
7881
|
+
const flowID = flowURL.split("/")[flowURL.split("/").length - 2];
|
|
7882
|
+
TestDataService.addCreatedRecord("flow", flowID);
|
|
7883
|
+
};
|
|
7884
|
+
};
|
|
7885
|
+
await use(task);
|
|
7886
|
+
}
|
|
7887
|
+
});
|
|
7888
|
+
|
|
7889
|
+
const LoginViaReviewsTab = test$e.extend({
|
|
7688
7890
|
LoginViaReviewsTab: async ({ ShopCustomer, DefaultSalesChannel, StorefrontProductDetail }, use) => {
|
|
7689
7891
|
const task = (product, customCustomer) => {
|
|
7690
7892
|
return async function LoginViaReviewsTab2() {
|
|
@@ -7709,10 +7911,11 @@ const test$4 = mergeTests(
|
|
|
7709
7911
|
BulkEditProducts,
|
|
7710
7912
|
BulkEditCustomers,
|
|
7711
7913
|
AssignEntitiesToRule,
|
|
7914
|
+
CreateFlow,
|
|
7712
7915
|
LoginViaReviewsTab
|
|
7713
7916
|
);
|
|
7714
7917
|
|
|
7715
|
-
const Login = test$
|
|
7918
|
+
const Login = test$e.extend({
|
|
7716
7919
|
Login: async ({ ShopCustomer, DefaultSalesChannel, StorefrontAccountLogin, StorefrontAccount }, use) => {
|
|
7717
7920
|
const task = (customCustomer) => {
|
|
7718
7921
|
return async function Login2() {
|
|
@@ -7728,7 +7931,7 @@ const Login = test$f.extend({
|
|
|
7728
7931
|
}
|
|
7729
7932
|
});
|
|
7730
7933
|
|
|
7731
|
-
const Logout = test$
|
|
7934
|
+
const Logout = test$e.extend({
|
|
7732
7935
|
Logout: async ({ ShopCustomer, StorefrontAccountLogin }, use) => {
|
|
7733
7936
|
const task = () => {
|
|
7734
7937
|
return async function Logout2() {
|
|
@@ -7742,7 +7945,7 @@ const Logout = test$f.extend({
|
|
|
7742
7945
|
}
|
|
7743
7946
|
});
|
|
7744
7947
|
|
|
7745
|
-
const Register = test$
|
|
7948
|
+
const Register = test$e.extend({
|
|
7746
7949
|
Register: async ({ StorefrontAccountLogin, IdProvider, TestDataService }, use) => {
|
|
7747
7950
|
let registeredEmail = "";
|
|
7748
7951
|
const defaultRegistrationData = {
|
|
@@ -7792,7 +7995,7 @@ const Register = test$f.extend({
|
|
|
7792
7995
|
}
|
|
7793
7996
|
});
|
|
7794
7997
|
|
|
7795
|
-
const RegisterGuest = test$
|
|
7998
|
+
const RegisterGuest = test$e.extend({
|
|
7796
7999
|
RegisterGuest: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
|
|
7797
8000
|
const registrationData = {
|
|
7798
8001
|
firstName: "Jeff",
|
|
@@ -7840,7 +8043,7 @@ const RegisterGuest = test$f.extend({
|
|
|
7840
8043
|
}
|
|
7841
8044
|
});
|
|
7842
8045
|
|
|
7843
|
-
const ChangeStorefrontCurrency = test$
|
|
8046
|
+
const ChangeStorefrontCurrency = test$e.extend({
|
|
7844
8047
|
ChangeStorefrontCurrency: async ({ StorefrontHome }, use) => {
|
|
7845
8048
|
const task = (isoCode) => {
|
|
7846
8049
|
return async function ChangeStorefrontCurrency2() {
|
|
@@ -7852,7 +8055,7 @@ const ChangeStorefrontCurrency = test$f.extend({
|
|
|
7852
8055
|
}
|
|
7853
8056
|
});
|
|
7854
8057
|
|
|
7855
|
-
const AddNewAddress = test$
|
|
8058
|
+
const AddNewAddress = test$e.extend({
|
|
7856
8059
|
AddNewAddress: async ({ StorefrontAccountAddresses, StorefrontAccountAddressCreate }, use) => {
|
|
7857
8060
|
const task = (address) => {
|
|
7858
8061
|
return async function AddNewAddress2() {
|
|
@@ -7875,7 +8078,7 @@ const AddNewAddress = test$f.extend({
|
|
|
7875
8078
|
}
|
|
7876
8079
|
});
|
|
7877
8080
|
|
|
7878
|
-
const AddProductToCart = test$
|
|
8081
|
+
const AddProductToCart = test$e.extend({
|
|
7879
8082
|
AddProductToCart: async ({ ShopCustomer, StorefrontProductDetail }, use) => {
|
|
7880
8083
|
const task = (ProductData, quantity = "1") => {
|
|
7881
8084
|
return async function AddProductToCart2() {
|
|
@@ -7889,7 +8092,7 @@ const AddProductToCart = test$f.extend({
|
|
|
7889
8092
|
}
|
|
7890
8093
|
});
|
|
7891
8094
|
|
|
7892
|
-
const ProceedFromProductToCheckout = test$
|
|
8095
|
+
const ProceedFromProductToCheckout = test$e.extend({
|
|
7893
8096
|
ProceedFromProductToCheckout: async ({ ShopCustomer, StorefrontProductDetail, StorefrontCheckoutConfirm }, use) => {
|
|
7894
8097
|
const task = () => {
|
|
7895
8098
|
return async function ProceedFromProductToCheckout2() {
|
|
@@ -7901,7 +8104,7 @@ const ProceedFromProductToCheckout = test$f.extend({
|
|
|
7901
8104
|
}
|
|
7902
8105
|
});
|
|
7903
8106
|
|
|
7904
|
-
const ProceedFromCartToCheckout = test$
|
|
8107
|
+
const ProceedFromCartToCheckout = test$e.extend({
|
|
7905
8108
|
ProceedFromCartToCheckout: async ({
|
|
7906
8109
|
ShopCustomer,
|
|
7907
8110
|
StorefrontCheckoutCart,
|
|
@@ -7917,7 +8120,7 @@ const ProceedFromCartToCheckout = test$f.extend({
|
|
|
7917
8120
|
}
|
|
7918
8121
|
});
|
|
7919
8122
|
|
|
7920
|
-
const ChangeProductQuantity = test$
|
|
8123
|
+
const ChangeProductQuantity = test$e.extend({
|
|
7921
8124
|
ChangeProductQuantity: async ({
|
|
7922
8125
|
ShopCustomer,
|
|
7923
8126
|
StorefrontCheckoutCart
|
|
@@ -7933,7 +8136,7 @@ const ChangeProductQuantity = test$f.extend({
|
|
|
7933
8136
|
}
|
|
7934
8137
|
});
|
|
7935
8138
|
|
|
7936
|
-
const ConfirmTermsAndConditions = test$
|
|
8139
|
+
const ConfirmTermsAndConditions = test$e.extend({
|
|
7937
8140
|
ConfirmTermsAndConditions: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
7938
8141
|
const task = () => {
|
|
7939
8142
|
return async function ConfirmTermsAndConditions2() {
|
|
@@ -7945,7 +8148,7 @@ const ConfirmTermsAndConditions = test$f.extend({
|
|
|
7945
8148
|
}
|
|
7946
8149
|
});
|
|
7947
8150
|
|
|
7948
|
-
const SelectCashOnDeliveryPaymentOption = test$
|
|
8151
|
+
const SelectCashOnDeliveryPaymentOption = test$e.extend({
|
|
7949
8152
|
SelectCashOnDeliveryPaymentOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
7950
8153
|
const task = () => {
|
|
7951
8154
|
return async function SelectCashOnDeliveryPaymentOption2() {
|
|
@@ -7957,7 +8160,7 @@ const SelectCashOnDeliveryPaymentOption = test$f.extend({
|
|
|
7957
8160
|
}
|
|
7958
8161
|
});
|
|
7959
8162
|
|
|
7960
|
-
const SelectInvoicePaymentOption = test$
|
|
8163
|
+
const SelectInvoicePaymentOption = test$e.extend({
|
|
7961
8164
|
SelectInvoicePaymentOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
7962
8165
|
const task = () => {
|
|
7963
8166
|
return async function SelectInvoicePaymentOption2() {
|
|
@@ -7969,7 +8172,7 @@ const SelectInvoicePaymentOption = test$f.extend({
|
|
|
7969
8172
|
}
|
|
7970
8173
|
});
|
|
7971
8174
|
|
|
7972
|
-
const SelectPaidInAdvancePaymentOption = test$
|
|
8175
|
+
const SelectPaidInAdvancePaymentOption = test$e.extend({
|
|
7973
8176
|
SelectPaidInAdvancePaymentOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
7974
8177
|
const task = () => {
|
|
7975
8178
|
return async function SelectPaidInAdvancePaymentOption2() {
|
|
@@ -7981,7 +8184,7 @@ const SelectPaidInAdvancePaymentOption = test$f.extend({
|
|
|
7981
8184
|
}
|
|
7982
8185
|
});
|
|
7983
8186
|
|
|
7984
|
-
const SelectStandardShippingOption = test$
|
|
8187
|
+
const SelectStandardShippingOption = test$e.extend({
|
|
7985
8188
|
SelectStandardShippingOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
7986
8189
|
const task = () => {
|
|
7987
8190
|
return async function SelectStandardShippingOption2() {
|
|
@@ -7993,7 +8196,7 @@ const SelectStandardShippingOption = test$f.extend({
|
|
|
7993
8196
|
}
|
|
7994
8197
|
});
|
|
7995
8198
|
|
|
7996
|
-
const SelectExpressShippingOption = test$
|
|
8199
|
+
const SelectExpressShippingOption = test$e.extend({
|
|
7997
8200
|
SelectExpressShippingOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
7998
8201
|
const task = () => {
|
|
7999
8202
|
return async function SelectExpressShippingOption2() {
|
|
@@ -8005,7 +8208,7 @@ const SelectExpressShippingOption = test$f.extend({
|
|
|
8005
8208
|
}
|
|
8006
8209
|
});
|
|
8007
8210
|
|
|
8008
|
-
const SubmitOrder = test$
|
|
8211
|
+
const SubmitOrder = test$e.extend({
|
|
8009
8212
|
SubmitOrder: async ({ ShopCustomer, StorefrontCheckoutConfirm, StorefrontCheckoutFinish }, use) => {
|
|
8010
8213
|
const task = () => {
|
|
8011
8214
|
return async function SubmitOrder2() {
|
|
@@ -8017,7 +8220,7 @@ const SubmitOrder = test$f.extend({
|
|
|
8017
8220
|
}
|
|
8018
8221
|
});
|
|
8019
8222
|
|
|
8020
|
-
const OpenSearchResultPage = test$
|
|
8223
|
+
const OpenSearchResultPage = test$e.extend({
|
|
8021
8224
|
OpenSearchResultPage: async ({ StorefrontSearch }, use) => {
|
|
8022
8225
|
const task = (searchTerm) => {
|
|
8023
8226
|
return async function OpenSearchResultPage2() {
|
|
@@ -8029,7 +8232,7 @@ const OpenSearchResultPage = test$f.extend({
|
|
|
8029
8232
|
}
|
|
8030
8233
|
});
|
|
8031
8234
|
|
|
8032
|
-
const OpenSearchSuggestPage = test$
|
|
8235
|
+
const OpenSearchSuggestPage = test$e.extend({
|
|
8033
8236
|
OpenSearchSuggestPage: async ({ StorefrontSearchSuggest }, use) => {
|
|
8034
8237
|
const task = (searchTerm) => {
|
|
8035
8238
|
return async function OpenSearchSuggestPage2() {
|
|
@@ -8041,7 +8244,7 @@ const OpenSearchSuggestPage = test$f.extend({
|
|
|
8041
8244
|
}
|
|
8042
8245
|
});
|
|
8043
8246
|
|
|
8044
|
-
const SearchForTerm = test$
|
|
8247
|
+
const SearchForTerm = test$e.extend({
|
|
8045
8248
|
SearchForTerm: async ({ StorefrontSearchSuggest }, use) => {
|
|
8046
8249
|
const task = (searchTerm) => {
|
|
8047
8250
|
return async function SearchForTerm2() {
|
|
@@ -8054,7 +8257,7 @@ const SearchForTerm = test$f.extend({
|
|
|
8054
8257
|
}
|
|
8055
8258
|
});
|
|
8056
8259
|
|
|
8057
|
-
const ValidateAccessibility = test$
|
|
8260
|
+
const ValidateAccessibility = test$e.extend({
|
|
8058
8261
|
ValidateAccessibility: async ({ ShopCustomer }, use) => {
|
|
8059
8262
|
const task = (pageName, assertViolations = true, createReport = true, ruleTags = ["wcag2a", "wcag2aa", "wcag2aaa", "wcag21a", "wcag21aa", "best-practice"], outputDir = "test-results/AccessibilityReports") => {
|
|
8060
8263
|
return async function ValidateAccessibility2() {
|
|
@@ -8083,7 +8286,7 @@ const ValidateAccessibility = test$f.extend({
|
|
|
8083
8286
|
}
|
|
8084
8287
|
});
|
|
8085
8288
|
|
|
8086
|
-
const AddProductToCartFromWishlist = test$
|
|
8289
|
+
const AddProductToCartFromWishlist = test$e.extend({
|
|
8087
8290
|
AddProductToCartFromWishlist: async ({ ShopCustomer, StorefrontWishlist, StorefrontOffCanvasCart }, use) => {
|
|
8088
8291
|
const task = (ProductData) => {
|
|
8089
8292
|
return async function AddProductToCartFromWishlist2() {
|
|
@@ -8100,7 +8303,7 @@ const AddProductToCartFromWishlist = test$f.extend({
|
|
|
8100
8303
|
await use(task);
|
|
8101
8304
|
}
|
|
8102
8305
|
});
|
|
8103
|
-
const RemoveProductFromWishlist = test$
|
|
8306
|
+
const RemoveProductFromWishlist = test$e.extend({
|
|
8104
8307
|
RemoveProductFromWishlist: async ({ StorefrontHome, StorefrontWishlist }, use) => {
|
|
8105
8308
|
const task = (ProductData) => {
|
|
8106
8309
|
return async function RemoveProductFromWishlist2() {
|
|
@@ -8112,7 +8315,7 @@ const RemoveProductFromWishlist = test$f.extend({
|
|
|
8112
8315
|
await use(task);
|
|
8113
8316
|
}
|
|
8114
8317
|
});
|
|
8115
|
-
const AddProductToWishlist = test$
|
|
8318
|
+
const AddProductToWishlist = test$e.extend({
|
|
8116
8319
|
AddProductToWishlist: async ({ StorefrontHome, ShopCustomer }, use) => {
|
|
8117
8320
|
const task = (ProductData) => {
|
|
8118
8321
|
return async function AddProductToWishlist2() {
|
|
@@ -8125,7 +8328,7 @@ const AddProductToWishlist = test$f.extend({
|
|
|
8125
8328
|
}
|
|
8126
8329
|
});
|
|
8127
8330
|
|
|
8128
|
-
const SelectProductFilterOption = test$
|
|
8331
|
+
const SelectProductFilterOption = test$e.extend({
|
|
8129
8332
|
SelectProductFilterOption: async ({ StorefrontHome }, use) => {
|
|
8130
8333
|
const task = (filterButton, optionName) => {
|
|
8131
8334
|
return async function SelectProductFilterOption2() {
|
|
@@ -8260,7 +8463,7 @@ class FeatureService {
|
|
|
8260
8463
|
}
|
|
8261
8464
|
}
|
|
8262
8465
|
|
|
8263
|
-
const test$2 = test$
|
|
8466
|
+
const test$2 = test$e.extend({
|
|
8264
8467
|
FeatureService: async ({ AdminApiContext }, use) => {
|
|
8265
8468
|
const service = new FeatureService(AdminApiContext);
|
|
8266
8469
|
await use(service);
|
|
@@ -8268,7 +8471,7 @@ const test$2 = test$f.extend({
|
|
|
8268
8471
|
}
|
|
8269
8472
|
});
|
|
8270
8473
|
|
|
8271
|
-
const test$1 = test$
|
|
8474
|
+
const test$1 = test$e.extend({
|
|
8272
8475
|
Country: [
|
|
8273
8476
|
async ({ AdminApiContext }, use) => {
|
|
8274
8477
|
const countryId = await getCountryId("de", AdminApiContext);
|