@shopware-ag/acceptance-test-suite 8.2.2 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +102 -1
- package/dist/index.d.ts +102 -1
- package/dist/index.mjs +1027 -673
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -385,16 +385,16 @@ const test$c = test$e.extend({
|
|
|
385
385
|
]
|
|
386
386
|
});
|
|
387
387
|
|
|
388
|
-
var __defProp$
|
|
389
|
-
var __defNormalProp$
|
|
390
|
-
var __publicField$
|
|
391
|
-
__defNormalProp$
|
|
388
|
+
var __defProp$Q = Object.defineProperty;
|
|
389
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __publicField$Q = (obj, key, value) => {
|
|
391
|
+
__defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
392
392
|
return value;
|
|
393
393
|
};
|
|
394
394
|
const _AdminApiContext = class _AdminApiContext {
|
|
395
395
|
constructor(context, options) {
|
|
396
|
-
__publicField$
|
|
397
|
-
__publicField$
|
|
396
|
+
__publicField$Q(this, "context");
|
|
397
|
+
__publicField$Q(this, "options");
|
|
398
398
|
this.context = context;
|
|
399
399
|
this.options = options;
|
|
400
400
|
}
|
|
@@ -486,7 +486,7 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
486
486
|
return this.context.head(url, options);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
__publicField$
|
|
489
|
+
__publicField$Q(_AdminApiContext, "defaultOptions", {
|
|
490
490
|
app_url: process.env["APP_URL"],
|
|
491
491
|
client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
|
|
492
492
|
client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
|
|
@@ -496,16 +496,16 @@ __publicField$P(_AdminApiContext, "defaultOptions", {
|
|
|
496
496
|
});
|
|
497
497
|
let AdminApiContext = _AdminApiContext;
|
|
498
498
|
|
|
499
|
-
var __defProp$
|
|
500
|
-
var __defNormalProp$
|
|
501
|
-
var __publicField$
|
|
502
|
-
__defNormalProp$
|
|
499
|
+
var __defProp$P = Object.defineProperty;
|
|
500
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
501
|
+
var __publicField$P = (obj, key, value) => {
|
|
502
|
+
__defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
503
503
|
return value;
|
|
504
504
|
};
|
|
505
505
|
const _StoreApiContext = class _StoreApiContext {
|
|
506
506
|
constructor(context, options) {
|
|
507
|
-
__publicField$
|
|
508
|
-
__publicField$
|
|
507
|
+
__publicField$P(this, "context");
|
|
508
|
+
__publicField$P(this, "options");
|
|
509
509
|
this.context = context;
|
|
510
510
|
this.options = options;
|
|
511
511
|
}
|
|
@@ -564,21 +564,21 @@ const _StoreApiContext = class _StoreApiContext {
|
|
|
564
564
|
return this.context.head(url, options);
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
|
-
__publicField$
|
|
567
|
+
__publicField$P(_StoreApiContext, "defaultOptions", {
|
|
568
568
|
app_url: process.env["APP_URL"],
|
|
569
569
|
ignoreHTTPSErrors: true
|
|
570
570
|
});
|
|
571
571
|
let StoreApiContext = _StoreApiContext;
|
|
572
572
|
|
|
573
|
-
var __defProp$
|
|
574
|
-
var __defNormalProp$
|
|
575
|
-
var __publicField$
|
|
576
|
-
__defNormalProp$
|
|
573
|
+
var __defProp$O = Object.defineProperty;
|
|
574
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
575
|
+
var __publicField$O = (obj, key, value) => {
|
|
576
|
+
__defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
577
577
|
return value;
|
|
578
578
|
};
|
|
579
579
|
class MailpitApiContext {
|
|
580
580
|
constructor(context) {
|
|
581
|
-
__publicField$
|
|
581
|
+
__publicField$O(this, "context");
|
|
582
582
|
this.context = context;
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
@@ -875,17 +875,17 @@ const test$a = test$e.extend({
|
|
|
875
875
|
}
|
|
876
876
|
});
|
|
877
877
|
|
|
878
|
-
var __defProp$
|
|
879
|
-
var __defNormalProp$
|
|
880
|
-
var __publicField$
|
|
881
|
-
__defNormalProp$
|
|
878
|
+
var __defProp$N = Object.defineProperty;
|
|
879
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
880
|
+
var __publicField$N = (obj, key, value) => {
|
|
881
|
+
__defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
882
882
|
return value;
|
|
883
883
|
};
|
|
884
884
|
class Actor {
|
|
885
885
|
constructor(name, page) {
|
|
886
|
-
__publicField$
|
|
887
|
-
__publicField$
|
|
888
|
-
__publicField$
|
|
886
|
+
__publicField$N(this, "page");
|
|
887
|
+
__publicField$N(this, "name");
|
|
888
|
+
__publicField$N(this, "expects", expect);
|
|
889
889
|
this.name = name;
|
|
890
890
|
this.page = page;
|
|
891
891
|
}
|
|
@@ -934,31 +934,31 @@ function createRandomImage(width = 800, height = 600) {
|
|
|
934
934
|
return new Image(width, height, buffer);
|
|
935
935
|
}
|
|
936
936
|
|
|
937
|
-
var __defProp$
|
|
938
|
-
var __defNormalProp$
|
|
939
|
-
var __publicField$
|
|
940
|
-
__defNormalProp$
|
|
937
|
+
var __defProp$M = Object.defineProperty;
|
|
938
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
939
|
+
var __publicField$M = (obj, key, value) => {
|
|
940
|
+
__defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
941
941
|
return value;
|
|
942
942
|
};
|
|
943
943
|
class TestDataService {
|
|
944
944
|
constructor(AdminApiClient, IdProvider, options) {
|
|
945
|
-
__publicField$
|
|
946
|
-
__publicField$
|
|
947
|
-
__publicField$
|
|
948
|
-
__publicField$
|
|
949
|
-
__publicField$
|
|
950
|
-
__publicField$
|
|
951
|
-
__publicField$
|
|
952
|
-
__publicField$
|
|
953
|
-
__publicField$
|
|
954
|
-
__publicField$
|
|
955
|
-
__publicField$
|
|
945
|
+
__publicField$M(this, "AdminApiClient");
|
|
946
|
+
__publicField$M(this, "IdProvider");
|
|
947
|
+
__publicField$M(this, "namePrefix", "Test-");
|
|
948
|
+
__publicField$M(this, "nameSuffix", "");
|
|
949
|
+
__publicField$M(this, "defaultSalesChannel");
|
|
950
|
+
__publicField$M(this, "defaultTaxId");
|
|
951
|
+
__publicField$M(this, "defaultCurrencyId");
|
|
952
|
+
__publicField$M(this, "defaultCategoryId");
|
|
953
|
+
__publicField$M(this, "defaultLanguageId");
|
|
954
|
+
__publicField$M(this, "defaultCountryId");
|
|
955
|
+
__publicField$M(this, "defaultCustomerGroupId");
|
|
956
956
|
/**
|
|
957
957
|
* Configures if an automated cleanup of the data should be executed.
|
|
958
958
|
*
|
|
959
959
|
* @private
|
|
960
960
|
*/
|
|
961
|
-
__publicField$
|
|
961
|
+
__publicField$M(this, "shouldCleanUp", true);
|
|
962
962
|
/**
|
|
963
963
|
* Configuration of higher priority entities for the cleanup operation.
|
|
964
964
|
* These entities will be deleted before others.
|
|
@@ -966,25 +966,25 @@ class TestDataService {
|
|
|
966
966
|
*
|
|
967
967
|
* @private
|
|
968
968
|
*/
|
|
969
|
-
__publicField$
|
|
969
|
+
__publicField$M(this, "highPriorityEntities", ["order", "product", "landing_page", "sales_channel_currency", "sales_channel_country", "customer"]);
|
|
970
970
|
/**
|
|
971
971
|
* A registry of all created records.
|
|
972
972
|
*
|
|
973
973
|
* @private
|
|
974
974
|
*/
|
|
975
|
-
__publicField$
|
|
975
|
+
__publicField$M(this, "createdRecords", []);
|
|
976
976
|
/**
|
|
977
977
|
* A registry of all created sales channel records.
|
|
978
978
|
*
|
|
979
979
|
* @private
|
|
980
980
|
*/
|
|
981
|
-
__publicField$
|
|
981
|
+
__publicField$M(this, "createdSalesChannelRecords", []);
|
|
982
982
|
/**
|
|
983
983
|
* Function that generates combinations from n number of arrays
|
|
984
984
|
* with m number of elements in them.
|
|
985
985
|
* @param array
|
|
986
986
|
*/
|
|
987
|
-
__publicField$
|
|
987
|
+
__publicField$M(this, "combineAll", (array) => {
|
|
988
988
|
const result = [];
|
|
989
989
|
const max = array.length - 1;
|
|
990
990
|
const helper = (tmpArray, i) => {
|
|
@@ -1563,6 +1563,37 @@ class TestDataService {
|
|
|
1563
1563
|
this.addCreatedRecord("sales_channel_analytics", salesChannelAnalytics.id);
|
|
1564
1564
|
return salesChannelAnalytics;
|
|
1565
1565
|
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Creates a custom field
|
|
1568
|
+
*
|
|
1569
|
+
* @param customFieldSetId - The uuid of the custom field set.
|
|
1570
|
+
* @param overrides - Specific data overrides that will be applied to the custom field data struct.
|
|
1571
|
+
*/
|
|
1572
|
+
async createCustomField(customFieldSetId, overrides = {}) {
|
|
1573
|
+
const customFieldStruct = this.getBasicCustomFieldStruct(overrides);
|
|
1574
|
+
const response = await this.AdminApiClient.post(`custom-field-set/${customFieldSetId}/custom-fields?_response=detail`, {
|
|
1575
|
+
data: customFieldStruct
|
|
1576
|
+
});
|
|
1577
|
+
expect(response.ok()).toBeTruthy();
|
|
1578
|
+
const { data: customField } = await response.json();
|
|
1579
|
+
this.addCreatedRecord("custom_field", customField.id);
|
|
1580
|
+
return customField;
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Creates a custom field set
|
|
1584
|
+
*
|
|
1585
|
+
* @param overrides - Specific data overrides that will be applied to the custom field set data struct.
|
|
1586
|
+
*/
|
|
1587
|
+
async createCustomFieldSet(overrides = {}) {
|
|
1588
|
+
const customFieldSetStruct = this.getBasicCustomFieldSetStruct(overrides);
|
|
1589
|
+
const response = await this.AdminApiClient.post("custom-field-set?_response=detail", {
|
|
1590
|
+
data: customFieldSetStruct
|
|
1591
|
+
});
|
|
1592
|
+
expect(response.ok()).toBeTruthy();
|
|
1593
|
+
const { data: customFieldSet } = await response.json();
|
|
1594
|
+
this.addCreatedRecord("custom_field_set", customFieldSet.id);
|
|
1595
|
+
return customFieldSet;
|
|
1596
|
+
}
|
|
1566
1597
|
/**
|
|
1567
1598
|
* Assigns a media resource as the download of a digital product.
|
|
1568
1599
|
*
|
|
@@ -1790,6 +1821,32 @@ class TestDataService {
|
|
|
1790
1821
|
this.addCreatedRecord("sales_channel_country", { salesChannelId, countryId });
|
|
1791
1822
|
return salesChannel;
|
|
1792
1823
|
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Assigns a language to a sales channel.
|
|
1826
|
+
*
|
|
1827
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
1828
|
+
* @param languageId - The uuid of the language.
|
|
1829
|
+
*/
|
|
1830
|
+
async assignSalesChannelLanguage(salesChannelId, languageId) {
|
|
1831
|
+
const syncSalesChannelResponse = await this.AdminApiClient.post("./_action/sync", {
|
|
1832
|
+
data: {
|
|
1833
|
+
"write-sales-channel-language": {
|
|
1834
|
+
entity: "sales_channel_language",
|
|
1835
|
+
action: "upsert",
|
|
1836
|
+
payload: [
|
|
1837
|
+
{
|
|
1838
|
+
salesChannelId,
|
|
1839
|
+
languageId
|
|
1840
|
+
}
|
|
1841
|
+
]
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
});
|
|
1845
|
+
expect(syncSalesChannelResponse.ok()).toBeTruthy();
|
|
1846
|
+
const { data: salesChannel } = await syncSalesChannelResponse.json();
|
|
1847
|
+
this.addCreatedRecord("sales_channel_language", { salesChannelId, languageId });
|
|
1848
|
+
return salesChannel;
|
|
1849
|
+
}
|
|
1793
1850
|
/**
|
|
1794
1851
|
* Assigns a media resource to a payment method as a logo.
|
|
1795
1852
|
*
|
|
@@ -1822,6 +1879,13 @@ class TestDataService {
|
|
|
1822
1879
|
const { data: shippingMethodMedia } = await shippingMethodResponse.json();
|
|
1823
1880
|
return shippingMethodMedia;
|
|
1824
1881
|
}
|
|
1882
|
+
/**
|
|
1883
|
+
* Retrieves a language based on its code.
|
|
1884
|
+
* @param languageCode
|
|
1885
|
+
*/
|
|
1886
|
+
async getLanguageData(languageCode) {
|
|
1887
|
+
return await getLanguageData(languageCode, this.AdminApiClient);
|
|
1888
|
+
}
|
|
1825
1889
|
/**
|
|
1826
1890
|
* Retrieves a currency based on its ISO code.
|
|
1827
1891
|
*
|
|
@@ -2025,6 +2089,37 @@ class TestDataService {
|
|
|
2025
2089
|
const { data: result } = await response.json();
|
|
2026
2090
|
return result;
|
|
2027
2091
|
}
|
|
2092
|
+
/**
|
|
2093
|
+
* Retrieves a customer group by its id.
|
|
2094
|
+
*
|
|
2095
|
+
* @param customerGroupId - The id of the property group.
|
|
2096
|
+
*/
|
|
2097
|
+
async getCustomerGroupById(customerGroupId) {
|
|
2098
|
+
const response = await this.AdminApiClient.get(`customer-group/${customerGroupId}`);
|
|
2099
|
+
expect(response.ok()).toBeTruthy();
|
|
2100
|
+
const { data: customerGroup } = await response.json();
|
|
2101
|
+
return customerGroup;
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* Retrieves list of customer groups
|
|
2105
|
+
*/
|
|
2106
|
+
async getCustomerGroups() {
|
|
2107
|
+
const response = await this.AdminApiClient.get("customer-group");
|
|
2108
|
+
expect(response.ok()).toBeTruthy();
|
|
2109
|
+
const { data: customerGroups } = await response.json();
|
|
2110
|
+
return customerGroups;
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* Retrieves a language by its id.
|
|
2114
|
+
*
|
|
2115
|
+
* @param languageId - The id of the property group.
|
|
2116
|
+
*/
|
|
2117
|
+
async getLanguageById(languageId) {
|
|
2118
|
+
const response = await this.AdminApiClient.get(`language/${languageId}`);
|
|
2119
|
+
expect(response.ok()).toBeTruthy();
|
|
2120
|
+
const { data: language } = await response.json();
|
|
2121
|
+
return language;
|
|
2122
|
+
}
|
|
2028
2123
|
/**
|
|
2029
2124
|
* Adds an entity reference to the registry of created records.
|
|
2030
2125
|
* All entities added to the registry will be deleted by the cleanup call.
|
|
@@ -2736,6 +2831,52 @@ class TestDataService {
|
|
|
2736
2831
|
async clearCaches() {
|
|
2737
2832
|
await this.AdminApiClient.delete("_action/cache");
|
|
2738
2833
|
}
|
|
2834
|
+
getBasicCustomFieldSetStruct(overrides = {}) {
|
|
2835
|
+
const customFieldSetUuid = this.IdProvider.getIdPair().uuid;
|
|
2836
|
+
const customFieldSetName = `${this.namePrefix}CustomFieldSet-${customFieldSetUuid}${this.nameSuffix}`;
|
|
2837
|
+
const basicCustomFieldSet = {
|
|
2838
|
+
id: customFieldSetUuid,
|
|
2839
|
+
name: customFieldSetName,
|
|
2840
|
+
config: {
|
|
2841
|
+
label: {
|
|
2842
|
+
"en-GB": null
|
|
2843
|
+
}
|
|
2844
|
+
},
|
|
2845
|
+
position: 1,
|
|
2846
|
+
relations: [
|
|
2847
|
+
{
|
|
2848
|
+
id: this.IdProvider.getIdPair().uuid,
|
|
2849
|
+
entityName: "customer"
|
|
2850
|
+
}
|
|
2851
|
+
]
|
|
2852
|
+
};
|
|
2853
|
+
return Object.assign({}, basicCustomFieldSet, overrides);
|
|
2854
|
+
}
|
|
2855
|
+
getBasicCustomFieldStruct(overrides = {}) {
|
|
2856
|
+
const customFieldUuid = this.IdProvider.getIdPair().uuid;
|
|
2857
|
+
const customFieldName = `${this.namePrefix}CustomField-${customFieldUuid}${this.nameSuffix}`;
|
|
2858
|
+
const basicCustomField = {
|
|
2859
|
+
id: customFieldUuid,
|
|
2860
|
+
name: customFieldName,
|
|
2861
|
+
type: "text",
|
|
2862
|
+
config: {
|
|
2863
|
+
componentName: "sw-field",
|
|
2864
|
+
type: "text",
|
|
2865
|
+
customFieldType: "text",
|
|
2866
|
+
customFieldPosition: 1,
|
|
2867
|
+
label: {
|
|
2868
|
+
"en-GB": null
|
|
2869
|
+
},
|
|
2870
|
+
placeholder: {
|
|
2871
|
+
"en-GB": null
|
|
2872
|
+
},
|
|
2873
|
+
helpText: {
|
|
2874
|
+
"en-GB": null
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
};
|
|
2878
|
+
return Object.assign({}, basicCustomField, overrides);
|
|
2879
|
+
}
|
|
2739
2880
|
}
|
|
2740
2881
|
|
|
2741
2882
|
const test$8 = test$e.extend({
|
|
@@ -2754,16 +2895,16 @@ const test$8 = test$e.extend({
|
|
|
2754
2895
|
}
|
|
2755
2896
|
});
|
|
2756
2897
|
|
|
2757
|
-
var __defProp$
|
|
2758
|
-
var __defNormalProp$
|
|
2759
|
-
var __publicField$
|
|
2760
|
-
__defNormalProp$
|
|
2898
|
+
var __defProp$L = Object.defineProperty;
|
|
2899
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2900
|
+
var __publicField$L = (obj, key, value) => {
|
|
2901
|
+
__defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2761
2902
|
return value;
|
|
2762
2903
|
};
|
|
2763
2904
|
class IdProvider {
|
|
2764
2905
|
constructor(workerIndex, seed) {
|
|
2765
|
-
__publicField$
|
|
2766
|
-
__publicField$
|
|
2906
|
+
__publicField$L(this, "workerIndex");
|
|
2907
|
+
__publicField$L(this, "seed");
|
|
2767
2908
|
this.workerIndex = workerIndex;
|
|
2768
2909
|
this.seed = seed;
|
|
2769
2910
|
}
|
|
@@ -2837,32 +2978,32 @@ const test$7 = test$e.extend({
|
|
|
2837
2978
|
]
|
|
2838
2979
|
});
|
|
2839
2980
|
|
|
2840
|
-
var __defProp$
|
|
2841
|
-
var __defNormalProp$
|
|
2842
|
-
var __publicField$
|
|
2843
|
-
__defNormalProp$
|
|
2981
|
+
var __defProp$K = Object.defineProperty;
|
|
2982
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2983
|
+
var __publicField$K = (obj, key, value) => {
|
|
2984
|
+
__defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2844
2985
|
return value;
|
|
2845
2986
|
};
|
|
2846
2987
|
class Home {
|
|
2847
2988
|
constructor(page) {
|
|
2848
2989
|
this.page = page;
|
|
2849
|
-
__publicField$
|
|
2850
|
-
__publicField$
|
|
2851
|
-
__publicField$
|
|
2852
|
-
__publicField$
|
|
2853
|
-
__publicField$
|
|
2854
|
-
__publicField$
|
|
2855
|
-
__publicField$
|
|
2856
|
-
__publicField$
|
|
2857
|
-
__publicField$
|
|
2858
|
-
__publicField$
|
|
2859
|
-
__publicField$
|
|
2860
|
-
__publicField$
|
|
2861
|
-
__publicField$
|
|
2862
|
-
__publicField$
|
|
2863
|
-
__publicField$
|
|
2864
|
-
__publicField$
|
|
2865
|
-
__publicField$
|
|
2990
|
+
__publicField$K(this, "productImages");
|
|
2991
|
+
__publicField$K(this, "productListItems");
|
|
2992
|
+
__publicField$K(this, "languagesDropdown");
|
|
2993
|
+
__publicField$K(this, "currenciesDropdown");
|
|
2994
|
+
__publicField$K(this, "consentOnlyTechnicallyRequiredButton");
|
|
2995
|
+
__publicField$K(this, "consentConfigureButton");
|
|
2996
|
+
__publicField$K(this, "consentAcceptAllCookiesButton");
|
|
2997
|
+
__publicField$K(this, "consentCookiePreferences");
|
|
2998
|
+
__publicField$K(this, "consentCookiePermissionContent");
|
|
2999
|
+
__publicField$K(this, "consentDialog");
|
|
3000
|
+
__publicField$K(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
3001
|
+
__publicField$K(this, "consentDialogStatisticsCheckbox");
|
|
3002
|
+
__publicField$K(this, "consentDialogMarketingdCheckbox");
|
|
3003
|
+
__publicField$K(this, "consentDialogAcceptAllCookiesButton");
|
|
3004
|
+
__publicField$K(this, "consentDialogSaveButton");
|
|
3005
|
+
__publicField$K(this, "consentCookieBannerContainer");
|
|
3006
|
+
__publicField$K(this, "offcanvasBackdrop");
|
|
2866
3007
|
this.productImages = page.locator(".product-image-link");
|
|
2867
3008
|
this.productListItems = page.getByRole("listitem");
|
|
2868
3009
|
this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
|
|
@@ -2909,26 +3050,26 @@ class Home {
|
|
|
2909
3050
|
}
|
|
2910
3051
|
}
|
|
2911
3052
|
|
|
2912
|
-
var __defProp$
|
|
2913
|
-
var __defNormalProp$
|
|
2914
|
-
var __publicField$
|
|
2915
|
-
__defNormalProp$
|
|
3053
|
+
var __defProp$J = Object.defineProperty;
|
|
3054
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3055
|
+
var __publicField$J = (obj, key, value) => {
|
|
3056
|
+
__defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2916
3057
|
return value;
|
|
2917
3058
|
};
|
|
2918
3059
|
let ProductDetail$1 = class ProductDetail {
|
|
2919
3060
|
constructor(page) {
|
|
2920
3061
|
this.page = page;
|
|
2921
|
-
__publicField$
|
|
2922
|
-
__publicField$
|
|
2923
|
-
__publicField$
|
|
2924
|
-
__publicField$
|
|
2925
|
-
__publicField$
|
|
2926
|
-
__publicField$
|
|
2927
|
-
__publicField$
|
|
2928
|
-
__publicField$
|
|
2929
|
-
__publicField$
|
|
2930
|
-
__publicField$
|
|
2931
|
-
__publicField$
|
|
3062
|
+
__publicField$J(this, "addToCartButton");
|
|
3063
|
+
__publicField$J(this, "quantitySelect");
|
|
3064
|
+
__publicField$J(this, "productSingleImage");
|
|
3065
|
+
__publicField$J(this, "productSinglePrice");
|
|
3066
|
+
__publicField$J(this, "productPriceRangesRow");
|
|
3067
|
+
__publicField$J(this, "offCanvasCartTitle");
|
|
3068
|
+
__publicField$J(this, "offCanvasCart");
|
|
3069
|
+
__publicField$J(this, "offCanvasCartGoToCheckoutButton");
|
|
3070
|
+
__publicField$J(this, "offCanvasLineItemImages");
|
|
3071
|
+
__publicField$J(this, "offCanvasSummaryTotalPrice");
|
|
3072
|
+
__publicField$J(this, "offCanvas");
|
|
2932
3073
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2933
3074
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2934
3075
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2950,18 +3091,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2950
3091
|
}
|
|
2951
3092
|
};
|
|
2952
3093
|
|
|
2953
|
-
var __defProp$
|
|
2954
|
-
var __defNormalProp$
|
|
2955
|
-
var __publicField$
|
|
2956
|
-
__defNormalProp$
|
|
3094
|
+
var __defProp$I = Object.defineProperty;
|
|
3095
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3096
|
+
var __publicField$I = (obj, key, value) => {
|
|
3097
|
+
__defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2957
3098
|
return value;
|
|
2958
3099
|
};
|
|
2959
3100
|
class Category {
|
|
2960
3101
|
constructor(page) {
|
|
2961
3102
|
this.page = page;
|
|
2962
|
-
__publicField$
|
|
2963
|
-
__publicField$
|
|
2964
|
-
__publicField$
|
|
3103
|
+
__publicField$I(this, "sortingSelect");
|
|
3104
|
+
__publicField$I(this, "firstProductBuyButton");
|
|
3105
|
+
__publicField$I(this, "noProductsFoundAlert");
|
|
2965
3106
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2966
3107
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2967
3108
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2971,24 +3112,24 @@ class Category {
|
|
|
2971
3112
|
}
|
|
2972
3113
|
}
|
|
2973
3114
|
|
|
2974
|
-
var __defProp$
|
|
2975
|
-
var __defNormalProp$
|
|
2976
|
-
var __publicField$
|
|
2977
|
-
__defNormalProp$
|
|
3115
|
+
var __defProp$H = Object.defineProperty;
|
|
3116
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3117
|
+
var __publicField$H = (obj, key, value) => {
|
|
3118
|
+
__defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2978
3119
|
return value;
|
|
2979
3120
|
};
|
|
2980
3121
|
class CheckoutCart {
|
|
2981
3122
|
constructor(page) {
|
|
2982
3123
|
this.page = page;
|
|
2983
|
-
__publicField$
|
|
2984
|
-
__publicField$
|
|
2985
|
-
__publicField$
|
|
2986
|
-
__publicField$
|
|
2987
|
-
__publicField$
|
|
2988
|
-
__publicField$
|
|
2989
|
-
__publicField$
|
|
2990
|
-
__publicField$
|
|
2991
|
-
__publicField$
|
|
3124
|
+
__publicField$H(this, "headline");
|
|
3125
|
+
__publicField$H(this, "goToCheckoutButton");
|
|
3126
|
+
__publicField$H(this, "enterPromoInput");
|
|
3127
|
+
__publicField$H(this, "grandTotalPrice");
|
|
3128
|
+
__publicField$H(this, "emptyCartAlert");
|
|
3129
|
+
__publicField$H(this, "stockReachedAlert");
|
|
3130
|
+
__publicField$H(this, "cartLineItemImages");
|
|
3131
|
+
__publicField$H(this, "unitPriceInfo");
|
|
3132
|
+
__publicField$H(this, "cartQuantityNumber");
|
|
2992
3133
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2993
3134
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2994
3135
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -3029,25 +3170,25 @@ class CheckoutCart {
|
|
|
3029
3170
|
}
|
|
3030
3171
|
}
|
|
3031
3172
|
|
|
3032
|
-
var __defProp$
|
|
3033
|
-
var __defNormalProp$
|
|
3034
|
-
var __publicField$
|
|
3035
|
-
__defNormalProp$
|
|
3173
|
+
var __defProp$G = Object.defineProperty;
|
|
3174
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3175
|
+
var __publicField$G = (obj, key, value) => {
|
|
3176
|
+
__defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3036
3177
|
return value;
|
|
3037
3178
|
};
|
|
3038
3179
|
class OffCanvasCart {
|
|
3039
3180
|
constructor(page) {
|
|
3040
3181
|
this.page = page;
|
|
3041
|
-
__publicField$
|
|
3042
|
-
__publicField$
|
|
3043
|
-
__publicField$
|
|
3044
|
-
__publicField$
|
|
3045
|
-
__publicField$
|
|
3046
|
-
__publicField$
|
|
3047
|
-
__publicField$
|
|
3048
|
-
__publicField$
|
|
3049
|
-
__publicField$
|
|
3050
|
-
__publicField$
|
|
3182
|
+
__publicField$G(this, "headline");
|
|
3183
|
+
__publicField$G(this, "itemCount");
|
|
3184
|
+
__publicField$G(this, "goToCheckoutButton");
|
|
3185
|
+
__publicField$G(this, "goToCartButton");
|
|
3186
|
+
__publicField$G(this, "continueShoppingButton");
|
|
3187
|
+
__publicField$G(this, "enterPromoInput");
|
|
3188
|
+
__publicField$G(this, "submitDiscountButton");
|
|
3189
|
+
__publicField$G(this, "subTotalPrice");
|
|
3190
|
+
__publicField$G(this, "shippingCosts");
|
|
3191
|
+
__publicField$G(this, "cartQuantityNumber");
|
|
3051
3192
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3052
3193
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
3053
3194
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -3089,36 +3230,36 @@ class OffCanvasCart {
|
|
|
3089
3230
|
}
|
|
3090
3231
|
}
|
|
3091
3232
|
|
|
3092
|
-
var __defProp$
|
|
3093
|
-
var __defNormalProp$
|
|
3094
|
-
var __publicField$
|
|
3095
|
-
__defNormalProp$
|
|
3233
|
+
var __defProp$F = Object.defineProperty;
|
|
3234
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3235
|
+
var __publicField$F = (obj, key, value) => {
|
|
3236
|
+
__defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3096
3237
|
return value;
|
|
3097
3238
|
};
|
|
3098
3239
|
class CheckoutConfirm {
|
|
3099
3240
|
constructor(page) {
|
|
3100
3241
|
this.page = page;
|
|
3101
|
-
__publicField$
|
|
3102
|
-
__publicField$
|
|
3103
|
-
__publicField$
|
|
3104
|
-
__publicField$
|
|
3105
|
-
__publicField$
|
|
3106
|
-
__publicField$
|
|
3242
|
+
__publicField$F(this, "headline");
|
|
3243
|
+
__publicField$F(this, "termsAndConditionsCheckbox");
|
|
3244
|
+
__publicField$F(this, "immediateAccessToDigitalProductCheckbox");
|
|
3245
|
+
__publicField$F(this, "grandTotalPrice");
|
|
3246
|
+
__publicField$F(this, "taxPrice");
|
|
3247
|
+
__publicField$F(this, "submitOrderButton");
|
|
3107
3248
|
/**
|
|
3108
3249
|
* Payment options
|
|
3109
3250
|
*/
|
|
3110
|
-
__publicField$
|
|
3111
|
-
__publicField$
|
|
3112
|
-
__publicField$
|
|
3251
|
+
__publicField$F(this, "paymentCashOnDelivery");
|
|
3252
|
+
__publicField$F(this, "paymentPaidInAdvance");
|
|
3253
|
+
__publicField$F(this, "paymentInvoice");
|
|
3113
3254
|
/**
|
|
3114
3255
|
* Shipping options
|
|
3115
3256
|
*/
|
|
3116
|
-
__publicField$
|
|
3117
|
-
__publicField$
|
|
3257
|
+
__publicField$F(this, "shippingStandard");
|
|
3258
|
+
__publicField$F(this, "shippingExpress");
|
|
3118
3259
|
/**
|
|
3119
3260
|
* Product details
|
|
3120
3261
|
*/
|
|
3121
|
-
__publicField$
|
|
3262
|
+
__publicField$F(this, "cartLineItemImages");
|
|
3122
3263
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3123
3264
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3124
3265
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3137,21 +3278,21 @@ class CheckoutConfirm {
|
|
|
3137
3278
|
}
|
|
3138
3279
|
}
|
|
3139
3280
|
|
|
3140
|
-
var __defProp$
|
|
3141
|
-
var __defNormalProp$
|
|
3142
|
-
var __publicField$
|
|
3143
|
-
__defNormalProp$
|
|
3281
|
+
var __defProp$E = Object.defineProperty;
|
|
3282
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3283
|
+
var __publicField$E = (obj, key, value) => {
|
|
3284
|
+
__defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3144
3285
|
return value;
|
|
3145
3286
|
};
|
|
3146
3287
|
class CheckoutFinish {
|
|
3147
3288
|
constructor(page) {
|
|
3148
3289
|
this.page = page;
|
|
3149
|
-
__publicField$
|
|
3150
|
-
__publicField$
|
|
3151
|
-
__publicField$
|
|
3152
|
-
__publicField$
|
|
3153
|
-
__publicField$
|
|
3154
|
-
__publicField$
|
|
3290
|
+
__publicField$E(this, "headline");
|
|
3291
|
+
__publicField$E(this, "orderNumberText");
|
|
3292
|
+
__publicField$E(this, "grandTotalPrice");
|
|
3293
|
+
__publicField$E(this, "taxPrice");
|
|
3294
|
+
__publicField$E(this, "cartLineItemImages");
|
|
3295
|
+
__publicField$E(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3155
3296
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3156
3297
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3157
3298
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3180,16 +3321,16 @@ class CheckoutFinish {
|
|
|
3180
3321
|
}
|
|
3181
3322
|
}
|
|
3182
3323
|
|
|
3183
|
-
var __defProp$
|
|
3184
|
-
var __defNormalProp$
|
|
3185
|
-
var __publicField$
|
|
3186
|
-
__defNormalProp$
|
|
3324
|
+
var __defProp$D = Object.defineProperty;
|
|
3325
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3326
|
+
var __publicField$D = (obj, key, value) => {
|
|
3327
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3187
3328
|
return value;
|
|
3188
3329
|
};
|
|
3189
3330
|
class CheckoutRegister {
|
|
3190
3331
|
constructor(page) {
|
|
3191
3332
|
this.page = page;
|
|
3192
|
-
__publicField$
|
|
3333
|
+
__publicField$D(this, "cartLineItemImages");
|
|
3193
3334
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3194
3335
|
}
|
|
3195
3336
|
url() {
|
|
@@ -3197,23 +3338,23 @@ class CheckoutRegister {
|
|
|
3197
3338
|
}
|
|
3198
3339
|
}
|
|
3199
3340
|
|
|
3200
|
-
var __defProp$
|
|
3201
|
-
var __defNormalProp$
|
|
3202
|
-
var __publicField$
|
|
3203
|
-
__defNormalProp$
|
|
3341
|
+
var __defProp$C = Object.defineProperty;
|
|
3342
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3343
|
+
var __publicField$C = (obj, key, value) => {
|
|
3344
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3204
3345
|
return value;
|
|
3205
3346
|
};
|
|
3206
3347
|
class Account {
|
|
3207
3348
|
constructor(page) {
|
|
3208
3349
|
this.page = page;
|
|
3209
|
-
__publicField$
|
|
3210
|
-
__publicField$
|
|
3211
|
-
__publicField$
|
|
3212
|
-
__publicField$
|
|
3213
|
-
__publicField$
|
|
3214
|
-
__publicField$
|
|
3215
|
-
__publicField$
|
|
3216
|
-
__publicField$
|
|
3350
|
+
__publicField$C(this, "headline");
|
|
3351
|
+
__publicField$C(this, "personalDataCardTitle");
|
|
3352
|
+
__publicField$C(this, "paymentMethodCardTitle");
|
|
3353
|
+
__publicField$C(this, "billingAddressCardTitle");
|
|
3354
|
+
__publicField$C(this, "shippingAddressCardTitle");
|
|
3355
|
+
__publicField$C(this, "newsletterCheckbox");
|
|
3356
|
+
__publicField$C(this, "newsletterRegistrationSuccessMessage");
|
|
3357
|
+
__publicField$C(this, "customerGroupRequestMessage");
|
|
3217
3358
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3218
3359
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3219
3360
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3231,37 +3372,37 @@ class Account {
|
|
|
3231
3372
|
}
|
|
3232
3373
|
}
|
|
3233
3374
|
|
|
3234
|
-
var __defProp$
|
|
3235
|
-
var __defNormalProp$
|
|
3236
|
-
var __publicField$
|
|
3237
|
-
__defNormalProp$
|
|
3375
|
+
var __defProp$B = Object.defineProperty;
|
|
3376
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3377
|
+
var __publicField$B = (obj, key, value) => {
|
|
3378
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3238
3379
|
return value;
|
|
3239
3380
|
};
|
|
3240
3381
|
class AccountLogin {
|
|
3241
3382
|
constructor(page) {
|
|
3242
3383
|
this.page = page;
|
|
3243
|
-
__publicField$
|
|
3244
|
-
__publicField$
|
|
3245
|
-
__publicField$
|
|
3246
|
-
__publicField$
|
|
3247
|
-
__publicField$
|
|
3384
|
+
__publicField$B(this, "emailInput");
|
|
3385
|
+
__publicField$B(this, "passwordInput");
|
|
3386
|
+
__publicField$B(this, "loginButton");
|
|
3387
|
+
__publicField$B(this, "logoutLink");
|
|
3388
|
+
__publicField$B(this, "successAlert");
|
|
3248
3389
|
// Inputs for registration
|
|
3249
|
-
__publicField$
|
|
3250
|
-
__publicField$
|
|
3251
|
-
__publicField$
|
|
3252
|
-
__publicField$
|
|
3253
|
-
__publicField$
|
|
3254
|
-
__publicField$
|
|
3255
|
-
__publicField$
|
|
3256
|
-
__publicField$
|
|
3257
|
-
__publicField$
|
|
3258
|
-
__publicField$
|
|
3259
|
-
__publicField$
|
|
3260
|
-
__publicField$
|
|
3261
|
-
__publicField$
|
|
3262
|
-
__publicField$
|
|
3263
|
-
__publicField$
|
|
3264
|
-
__publicField$
|
|
3390
|
+
__publicField$B(this, "personalFormArea");
|
|
3391
|
+
__publicField$B(this, "billingAddressFormArea");
|
|
3392
|
+
__publicField$B(this, "accountTypeSelect");
|
|
3393
|
+
__publicField$B(this, "salutationSelect");
|
|
3394
|
+
__publicField$B(this, "firstNameInput");
|
|
3395
|
+
__publicField$B(this, "lastNameInput");
|
|
3396
|
+
__publicField$B(this, "companyInput");
|
|
3397
|
+
__publicField$B(this, "departmentInput");
|
|
3398
|
+
__publicField$B(this, "vatRegNoInput");
|
|
3399
|
+
__publicField$B(this, "registerEmailInput");
|
|
3400
|
+
__publicField$B(this, "registerPasswordInput");
|
|
3401
|
+
__publicField$B(this, "streetAddressInput");
|
|
3402
|
+
__publicField$B(this, "cityInput");
|
|
3403
|
+
__publicField$B(this, "countryInput");
|
|
3404
|
+
__publicField$B(this, "postalCodeInput");
|
|
3405
|
+
__publicField$B(this, "registerButton");
|
|
3265
3406
|
this.emailInput = page.getByLabel("Your email address");
|
|
3266
3407
|
this.passwordInput = page.getByLabel("Your password");
|
|
3267
3408
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -3290,29 +3431,29 @@ class AccountLogin {
|
|
|
3290
3431
|
}
|
|
3291
3432
|
}
|
|
3292
3433
|
|
|
3293
|
-
var __defProp$
|
|
3294
|
-
var __defNormalProp$
|
|
3295
|
-
var __publicField$
|
|
3296
|
-
__defNormalProp$
|
|
3434
|
+
var __defProp$A = Object.defineProperty;
|
|
3435
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3436
|
+
var __publicField$A = (obj, key, value) => {
|
|
3437
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3297
3438
|
return value;
|
|
3298
3439
|
};
|
|
3299
3440
|
class AccountProfile {
|
|
3300
3441
|
constructor(page) {
|
|
3301
3442
|
this.page = page;
|
|
3302
|
-
__publicField$
|
|
3303
|
-
__publicField$
|
|
3304
|
-
__publicField$
|
|
3305
|
-
__publicField$
|
|
3306
|
-
__publicField$
|
|
3307
|
-
__publicField$
|
|
3308
|
-
__publicField$
|
|
3309
|
-
__publicField$
|
|
3310
|
-
__publicField$
|
|
3311
|
-
__publicField$
|
|
3312
|
-
__publicField$
|
|
3313
|
-
__publicField$
|
|
3314
|
-
__publicField$
|
|
3315
|
-
__publicField$
|
|
3443
|
+
__publicField$A(this, "salutationSelect");
|
|
3444
|
+
__publicField$A(this, "firstNameInput");
|
|
3445
|
+
__publicField$A(this, "lastNameInput");
|
|
3446
|
+
__publicField$A(this, "saveProfileButton");
|
|
3447
|
+
__publicField$A(this, "changeEmailButton");
|
|
3448
|
+
__publicField$A(this, "emailAddressInput");
|
|
3449
|
+
__publicField$A(this, "emailAddressConfirmInput");
|
|
3450
|
+
__publicField$A(this, "emailConfirmPasswordInput");
|
|
3451
|
+
__publicField$A(this, "saveEmailAddressButton");
|
|
3452
|
+
__publicField$A(this, "changePasswordButton");
|
|
3453
|
+
__publicField$A(this, "newPasswordInput");
|
|
3454
|
+
__publicField$A(this, "newPasswordConfirmInput");
|
|
3455
|
+
__publicField$A(this, "currentPasswordInput");
|
|
3456
|
+
__publicField$A(this, "saveNewPasswordButton");
|
|
3316
3457
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
3317
3458
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
3318
3459
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -3333,22 +3474,22 @@ class AccountProfile {
|
|
|
3333
3474
|
}
|
|
3334
3475
|
}
|
|
3335
3476
|
|
|
3336
|
-
var __defProp$
|
|
3337
|
-
var __defNormalProp$
|
|
3338
|
-
var __publicField$
|
|
3339
|
-
__defNormalProp$
|
|
3477
|
+
var __defProp$z = Object.defineProperty;
|
|
3478
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3479
|
+
var __publicField$z = (obj, key, value) => {
|
|
3480
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3340
3481
|
return value;
|
|
3341
3482
|
};
|
|
3342
3483
|
class AccountOrder {
|
|
3343
3484
|
constructor(page) {
|
|
3344
3485
|
this.page = page;
|
|
3345
|
-
__publicField$
|
|
3346
|
-
__publicField$
|
|
3347
|
-
__publicField$
|
|
3348
|
-
__publicField$
|
|
3349
|
-
__publicField$
|
|
3350
|
-
__publicField$
|
|
3351
|
-
__publicField$
|
|
3486
|
+
__publicField$z(this, "cartLineItemImages");
|
|
3487
|
+
__publicField$z(this, "orderExpandButton");
|
|
3488
|
+
__publicField$z(this, "digitalProductDownloadButton");
|
|
3489
|
+
__publicField$z(this, "dialogOrderCancel");
|
|
3490
|
+
__publicField$z(this, "dialogOrderCancelButton");
|
|
3491
|
+
__publicField$z(this, "dialogBackButton");
|
|
3492
|
+
__publicField$z(this, "getViewSubscriptionLink", (orderNumber) => {
|
|
3352
3493
|
const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
|
|
3353
3494
|
return orderContainer.getByText("View Subscription");
|
|
3354
3495
|
});
|
|
@@ -3393,20 +3534,20 @@ class AccountOrder {
|
|
|
3393
3534
|
}
|
|
3394
3535
|
}
|
|
3395
3536
|
|
|
3396
|
-
var __defProp$
|
|
3397
|
-
var __defNormalProp$
|
|
3398
|
-
var __publicField$
|
|
3399
|
-
__defNormalProp$
|
|
3537
|
+
var __defProp$y = Object.defineProperty;
|
|
3538
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3539
|
+
var __publicField$y = (obj, key, value) => {
|
|
3540
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3400
3541
|
return value;
|
|
3401
3542
|
};
|
|
3402
3543
|
class AccountAddresses {
|
|
3403
3544
|
constructor(page) {
|
|
3404
3545
|
this.page = page;
|
|
3405
|
-
__publicField$
|
|
3406
|
-
__publicField$
|
|
3407
|
-
__publicField$
|
|
3408
|
-
__publicField$
|
|
3409
|
-
__publicField$
|
|
3546
|
+
__publicField$y(this, "addNewAddressButton");
|
|
3547
|
+
__publicField$y(this, "editBillingAddressButton");
|
|
3548
|
+
__publicField$y(this, "editShippingAddressButton");
|
|
3549
|
+
__publicField$y(this, "useDefaultBillingAddressButton");
|
|
3550
|
+
__publicField$y(this, "useDefaultShippingAddressButton");
|
|
3410
3551
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
3411
3552
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
3412
3553
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -3418,19 +3559,19 @@ class AccountAddresses {
|
|
|
3418
3559
|
}
|
|
3419
3560
|
}
|
|
3420
3561
|
|
|
3421
|
-
var __defProp$
|
|
3422
|
-
var __defNormalProp$
|
|
3423
|
-
var __publicField$
|
|
3424
|
-
__defNormalProp$
|
|
3562
|
+
var __defProp$x = Object.defineProperty;
|
|
3563
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3564
|
+
var __publicField$x = (obj, key, value) => {
|
|
3565
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3425
3566
|
return value;
|
|
3426
3567
|
};
|
|
3427
3568
|
class AccountPayment {
|
|
3428
3569
|
constructor(page) {
|
|
3429
3570
|
this.page = page;
|
|
3430
|
-
__publicField$
|
|
3431
|
-
__publicField$
|
|
3432
|
-
__publicField$
|
|
3433
|
-
__publicField$
|
|
3571
|
+
__publicField$x(this, "cashOnDeliveryOption");
|
|
3572
|
+
__publicField$x(this, "paidInAdvanceOption");
|
|
3573
|
+
__publicField$x(this, "invoiceOption");
|
|
3574
|
+
__publicField$x(this, "changeDefaultPaymentButton");
|
|
3434
3575
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3435
3576
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3436
3577
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -3441,17 +3582,17 @@ class AccountPayment {
|
|
|
3441
3582
|
}
|
|
3442
3583
|
}
|
|
3443
3584
|
|
|
3444
|
-
var __defProp$
|
|
3445
|
-
var __defNormalProp$
|
|
3446
|
-
var __publicField$
|
|
3447
|
-
__defNormalProp$
|
|
3448
|
-
return value;
|
|
3585
|
+
var __defProp$w = Object.defineProperty;
|
|
3586
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3587
|
+
var __publicField$w = (obj, key, value) => {
|
|
3588
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3589
|
+
return value;
|
|
3449
3590
|
};
|
|
3450
3591
|
class Search {
|
|
3451
3592
|
constructor(page) {
|
|
3452
3593
|
this.page = page;
|
|
3453
|
-
__publicField$
|
|
3454
|
-
__publicField$
|
|
3594
|
+
__publicField$w(this, "headline");
|
|
3595
|
+
__publicField$w(this, "productImages");
|
|
3455
3596
|
this.headline = page.locator("h1.search-headline");
|
|
3456
3597
|
this.productImages = page.locator(".product-image-link");
|
|
3457
3598
|
}
|
|
@@ -3460,16 +3601,16 @@ class Search {
|
|
|
3460
3601
|
}
|
|
3461
3602
|
}
|
|
3462
3603
|
|
|
3463
|
-
var __defProp$
|
|
3464
|
-
var __defNormalProp$
|
|
3465
|
-
var __publicField$
|
|
3466
|
-
__defNormalProp$
|
|
3604
|
+
var __defProp$v = Object.defineProperty;
|
|
3605
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3606
|
+
var __publicField$v = (obj, key, value) => {
|
|
3607
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3467
3608
|
return value;
|
|
3468
3609
|
};
|
|
3469
3610
|
class SearchSuggest {
|
|
3470
3611
|
constructor(page) {
|
|
3471
3612
|
this.page = page;
|
|
3472
|
-
__publicField$
|
|
3613
|
+
__publicField$v(this, "searchSuggestLineItemImages");
|
|
3473
3614
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
3474
3615
|
}
|
|
3475
3616
|
url(searchTerm) {
|
|
@@ -3487,31 +3628,31 @@ class CustomRegister extends AccountLogin {
|
|
|
3487
3628
|
}
|
|
3488
3629
|
}
|
|
3489
3630
|
|
|
3490
|
-
var __defProp$
|
|
3491
|
-
var __defNormalProp$
|
|
3492
|
-
var __publicField$
|
|
3493
|
-
__defNormalProp$
|
|
3631
|
+
var __defProp$u = Object.defineProperty;
|
|
3632
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3633
|
+
var __publicField$u = (obj, key, value) => {
|
|
3634
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3494
3635
|
return value;
|
|
3495
3636
|
};
|
|
3496
3637
|
class CheckoutOrderEdit {
|
|
3497
3638
|
constructor(page) {
|
|
3498
3639
|
this.page = page;
|
|
3499
|
-
__publicField$
|
|
3500
|
-
__publicField$
|
|
3501
|
-
__publicField$
|
|
3502
|
-
__publicField$
|
|
3503
|
-
__publicField$
|
|
3640
|
+
__publicField$u(this, "completePaymentButton");
|
|
3641
|
+
__publicField$u(this, "orderCancelButton");
|
|
3642
|
+
__publicField$u(this, "dialogOrderCancel");
|
|
3643
|
+
__publicField$u(this, "dialogOrderCancelButton");
|
|
3644
|
+
__publicField$u(this, "dialogBackButton");
|
|
3504
3645
|
/**
|
|
3505
3646
|
* Payment options
|
|
3506
3647
|
*/
|
|
3507
|
-
__publicField$
|
|
3508
|
-
__publicField$
|
|
3509
|
-
__publicField$
|
|
3648
|
+
__publicField$u(this, "paymentCashOnDelivery");
|
|
3649
|
+
__publicField$u(this, "paymentPaidInAdvance");
|
|
3650
|
+
__publicField$u(this, "paymentInvoice");
|
|
3510
3651
|
/**
|
|
3511
3652
|
* Shipping options
|
|
3512
3653
|
*/
|
|
3513
|
-
__publicField$
|
|
3514
|
-
__publicField$
|
|
3654
|
+
__publicField$u(this, "shippingStandard");
|
|
3655
|
+
__publicField$u(this, "shippingExpress");
|
|
3515
3656
|
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
3516
3657
|
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
3517
3658
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
@@ -3605,10 +3746,10 @@ const test$6 = test$e.extend({
|
|
|
3605
3746
|
}
|
|
3606
3747
|
});
|
|
3607
3748
|
|
|
3608
|
-
var __defProp$
|
|
3609
|
-
var __defNormalProp$
|
|
3610
|
-
var __publicField$
|
|
3611
|
-
__defNormalProp$
|
|
3749
|
+
var __defProp$t = Object.defineProperty;
|
|
3750
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3751
|
+
var __publicField$t = (obj, key, value) => {
|
|
3752
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3612
3753
|
return value;
|
|
3613
3754
|
};
|
|
3614
3755
|
class ProductDetail {
|
|
@@ -3617,67 +3758,67 @@ class ProductDetail {
|
|
|
3617
3758
|
/**
|
|
3618
3759
|
* Save interactions
|
|
3619
3760
|
*/
|
|
3620
|
-
__publicField$
|
|
3621
|
-
__publicField$
|
|
3622
|
-
__publicField$
|
|
3761
|
+
__publicField$t(this, "savePhysicalProductButton");
|
|
3762
|
+
__publicField$t(this, "saveButtonLoadingSpinner");
|
|
3763
|
+
__publicField$t(this, "saveButtonCheckMark");
|
|
3623
3764
|
/**
|
|
3624
3765
|
* General Info
|
|
3625
3766
|
*/
|
|
3626
|
-
__publicField$
|
|
3767
|
+
__publicField$t(this, "manufacturerDropdownText");
|
|
3627
3768
|
/**
|
|
3628
3769
|
* Prices
|
|
3629
3770
|
*/
|
|
3630
|
-
__publicField$
|
|
3771
|
+
__publicField$t(this, "priceGrossInput");
|
|
3631
3772
|
/**
|
|
3632
3773
|
* Deliverability
|
|
3633
3774
|
*/
|
|
3634
|
-
__publicField$
|
|
3635
|
-
__publicField$
|
|
3775
|
+
__publicField$t(this, "stockInput");
|
|
3776
|
+
__publicField$t(this, "restockTimeInput");
|
|
3636
3777
|
/**
|
|
3637
3778
|
* Visibility
|
|
3638
3779
|
*/
|
|
3639
|
-
__publicField$
|
|
3640
|
-
__publicField$
|
|
3641
|
-
__publicField$
|
|
3780
|
+
__publicField$t(this, "activeForAllSalesChannelsToggle");
|
|
3781
|
+
__publicField$t(this, "tagsInput");
|
|
3782
|
+
__publicField$t(this, "saleChannelsInput");
|
|
3642
3783
|
/**
|
|
3643
3784
|
* Labelling
|
|
3644
3785
|
*/
|
|
3645
|
-
__publicField$
|
|
3786
|
+
__publicField$t(this, "releaseDateInput");
|
|
3646
3787
|
/**
|
|
3647
3788
|
* Media Upload interactions
|
|
3648
3789
|
*/
|
|
3649
|
-
__publicField$
|
|
3650
|
-
__publicField$
|
|
3651
|
-
__publicField$
|
|
3790
|
+
__publicField$t(this, "uploadMediaButton");
|
|
3791
|
+
__publicField$t(this, "coverImage");
|
|
3792
|
+
__publicField$t(this, "productImage");
|
|
3652
3793
|
/**
|
|
3653
3794
|
* Tabs
|
|
3654
3795
|
*/
|
|
3655
|
-
__publicField$
|
|
3656
|
-
__publicField$
|
|
3796
|
+
__publicField$t(this, "variantsTabLink");
|
|
3797
|
+
__publicField$t(this, "specificationsTabLink");
|
|
3657
3798
|
/**
|
|
3658
3799
|
* Variants Generation
|
|
3659
3800
|
*/
|
|
3660
|
-
__publicField$
|
|
3661
|
-
__publicField$
|
|
3662
|
-
__publicField$
|
|
3663
|
-
__publicField$
|
|
3664
|
-
__publicField$
|
|
3801
|
+
__publicField$t(this, "generateVariantsButton");
|
|
3802
|
+
__publicField$t(this, "variantsModal");
|
|
3803
|
+
__publicField$t(this, "variantsModalHeadline");
|
|
3804
|
+
__publicField$t(this, "variantsNextButton");
|
|
3805
|
+
__publicField$t(this, "variantsSaveButton");
|
|
3665
3806
|
/**
|
|
3666
3807
|
* Property Selection
|
|
3667
3808
|
*/
|
|
3668
|
-
__publicField$
|
|
3669
|
-
__publicField$
|
|
3670
|
-
__publicField$
|
|
3671
|
-
__publicField$
|
|
3672
|
-
__publicField$
|
|
3673
|
-
__publicField$
|
|
3674
|
-
__publicField$
|
|
3675
|
-
__publicField$
|
|
3676
|
-
__publicField$
|
|
3809
|
+
__publicField$t(this, "propertyGroupColor");
|
|
3810
|
+
__publicField$t(this, "propertyGroupSize");
|
|
3811
|
+
__publicField$t(this, "propertyOptionGrid");
|
|
3812
|
+
__publicField$t(this, "propertyOptionColorBlue");
|
|
3813
|
+
__publicField$t(this, "propertyOptionColorRed");
|
|
3814
|
+
__publicField$t(this, "propertyOptionColorGreen");
|
|
3815
|
+
__publicField$t(this, "propertyOptionSizeSmall");
|
|
3816
|
+
__publicField$t(this, "propertyOptionSizeMedium");
|
|
3817
|
+
__publicField$t(this, "propertyOptionSizeLarge");
|
|
3677
3818
|
/**
|
|
3678
3819
|
* Cards
|
|
3679
3820
|
*/
|
|
3680
|
-
__publicField$
|
|
3821
|
+
__publicField$t(this, "customFieldCard");
|
|
3681
3822
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
3682
3823
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
3683
3824
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
@@ -3724,18 +3865,18 @@ class ProductDetail {
|
|
|
3724
3865
|
}
|
|
3725
3866
|
}
|
|
3726
3867
|
|
|
3727
|
-
var __defProp$
|
|
3728
|
-
var __defNormalProp$
|
|
3729
|
-
var __publicField$
|
|
3730
|
-
__defNormalProp$
|
|
3868
|
+
var __defProp$s = Object.defineProperty;
|
|
3869
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3870
|
+
var __publicField$s = (obj, key, value) => {
|
|
3871
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3731
3872
|
return value;
|
|
3732
3873
|
};
|
|
3733
3874
|
class OrderDetail {
|
|
3734
3875
|
constructor(page) {
|
|
3735
3876
|
this.page = page;
|
|
3736
|
-
__publicField$
|
|
3737
|
-
__publicField$
|
|
3738
|
-
__publicField$
|
|
3877
|
+
__publicField$s(this, "saveButton");
|
|
3878
|
+
__publicField$s(this, "dataGridContextButton");
|
|
3879
|
+
__publicField$s(this, "orderTag");
|
|
3739
3880
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
3740
3881
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
3741
3882
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -3745,19 +3886,33 @@ class OrderDetail {
|
|
|
3745
3886
|
}
|
|
3746
3887
|
}
|
|
3747
3888
|
|
|
3748
|
-
var __defProp$
|
|
3749
|
-
var __defNormalProp$
|
|
3750
|
-
var __publicField$
|
|
3751
|
-
__defNormalProp$
|
|
3889
|
+
var __defProp$r = Object.defineProperty;
|
|
3890
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3891
|
+
var __publicField$r = (obj, key, value) => {
|
|
3892
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3752
3893
|
return value;
|
|
3753
3894
|
};
|
|
3754
3895
|
class CustomerListing {
|
|
3755
3896
|
constructor(page) {
|
|
3756
3897
|
this.page = page;
|
|
3757
|
-
__publicField$
|
|
3758
|
-
__publicField$
|
|
3898
|
+
__publicField$r(this, "headline");
|
|
3899
|
+
__publicField$r(this, "addCustomerButton");
|
|
3900
|
+
__publicField$r(this, "bulkEditButton");
|
|
3901
|
+
__publicField$r(this, "deleteButton");
|
|
3902
|
+
//Customer Bulk Edit Modal
|
|
3903
|
+
__publicField$r(this, "bulkEditModal");
|
|
3904
|
+
__publicField$r(this, "startBulkEditButton");
|
|
3905
|
+
__publicField$r(this, "cancelButton");
|
|
3906
|
+
__publicField$r(this, "modalHeaderCheckbox");
|
|
3759
3907
|
this.headline = page.getByRole("heading", { name: "Customers" });
|
|
3760
3908
|
this.addCustomerButton = page.locator(".sw-customer-list__button-create");
|
|
3909
|
+
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
3910
|
+
this.deleteButton = page.getByRole("button", { name: "Delete" });
|
|
3911
|
+
this.bulkEditModal = page.locator(".sw-customer-bulk-edit-modal").getByRole("dialog");
|
|
3912
|
+
this.startBulkEditButton = this.bulkEditModal.getByRole("button", { name: "Start bulk edit" });
|
|
3913
|
+
this.cancelButton = this.bulkEditModal.getByRole("button", { name: "Cancel" });
|
|
3914
|
+
const tableHeader = this.bulkEditModal.locator(".sw-data-grid__header");
|
|
3915
|
+
this.modalHeaderCheckbox = tableHeader.getByRole("checkbox");
|
|
3761
3916
|
}
|
|
3762
3917
|
async getCustomerByEmail(customerEmail) {
|
|
3763
3918
|
const customer = this.page.getByRole("row").filter({ hasText: customerEmail });
|
|
@@ -3768,7 +3923,33 @@ class CustomerListing {
|
|
|
3768
3923
|
const customerNumber = customer.locator(".sw-data-grid__cell--customerNumber");
|
|
3769
3924
|
const customerGroup = customer.locator(".sw-data-grid__cell--group");
|
|
3770
3925
|
const customerEmailAddress = customer.locator(".sw-data-grid__cell--email");
|
|
3926
|
+
const customerCheckbox = customer.getByRole("checkbox");
|
|
3927
|
+
return {
|
|
3928
|
+
customerName,
|
|
3929
|
+
customerStreet,
|
|
3930
|
+
customerPostalCode,
|
|
3931
|
+
customerCity,
|
|
3932
|
+
customerNumber,
|
|
3933
|
+
customerGroup,
|
|
3934
|
+
customerEmailAddress,
|
|
3935
|
+
customerCheckbox
|
|
3936
|
+
};
|
|
3937
|
+
}
|
|
3938
|
+
async getCustomerBulkEditModalTitle(customerCount) {
|
|
3939
|
+
return this.bulkEditModal.getByRole("heading", { name: `Bulk edit - ${customerCount} items selected` });
|
|
3940
|
+
}
|
|
3941
|
+
async getBulkEditModalLineItemByCustomerEmail(customerEmail) {
|
|
3942
|
+
const lineItem = this.bulkEditModal.locator(".sw-data-grid__row").filter({ hasText: customerEmail });
|
|
3943
|
+
const customerCheckbox = lineItem.getByRole("checkbox");
|
|
3944
|
+
const customerName = lineItem.locator(".sw-data-grid__cell--firstName").getByRole("link");
|
|
3945
|
+
const customerStreet = lineItem.locator(".sw-data-grid__cell--defaultBillingAddress-street");
|
|
3946
|
+
const customerPostalCode = lineItem.locator(".sw-data-grid__cell--defaultBillingAddress-zipcode");
|
|
3947
|
+
const customerCity = lineItem.locator(".sw-data-grid__cell--defaultBillingAddress-city");
|
|
3948
|
+
const customerNumber = lineItem.locator(".sw-data-grid__cell--customerNumber");
|
|
3949
|
+
const customerGroup = lineItem.locator(".sw-data-grid__cell--group");
|
|
3950
|
+
const customerEmailAddress = lineItem.locator(".sw-data-grid__cell--email");
|
|
3771
3951
|
return {
|
|
3952
|
+
customerCheckbox,
|
|
3772
3953
|
customerName,
|
|
3773
3954
|
customerStreet,
|
|
3774
3955
|
customerPostalCode,
|
|
@@ -3783,24 +3964,26 @@ class CustomerListing {
|
|
|
3783
3964
|
}
|
|
3784
3965
|
}
|
|
3785
3966
|
|
|
3786
|
-
var __defProp$
|
|
3787
|
-
var __defNormalProp$
|
|
3788
|
-
var __publicField$
|
|
3789
|
-
__defNormalProp$
|
|
3967
|
+
var __defProp$q = Object.defineProperty;
|
|
3968
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3969
|
+
var __publicField$q = (obj, key, value) => {
|
|
3970
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3790
3971
|
return value;
|
|
3791
3972
|
};
|
|
3792
3973
|
class CustomerDetail {
|
|
3793
3974
|
constructor(page) {
|
|
3794
3975
|
this.page = page;
|
|
3795
|
-
__publicField$
|
|
3796
|
-
__publicField$
|
|
3797
|
-
__publicField$
|
|
3798
|
-
__publicField$
|
|
3799
|
-
__publicField$
|
|
3800
|
-
__publicField$
|
|
3801
|
-
__publicField$
|
|
3802
|
-
__publicField$
|
|
3803
|
-
__publicField$
|
|
3976
|
+
__publicField$q(this, "editButton");
|
|
3977
|
+
__publicField$q(this, "generalTab");
|
|
3978
|
+
__publicField$q(this, "accountCard");
|
|
3979
|
+
__publicField$q(this, "customFieldCard");
|
|
3980
|
+
__publicField$q(this, "customFieldSetTabs");
|
|
3981
|
+
__publicField$q(this, "customFieldSetTabCustomContent");
|
|
3982
|
+
__publicField$q(this, "customerGroupRequestMessage");
|
|
3983
|
+
__publicField$q(this, "customerGroupAcceptButton");
|
|
3984
|
+
__publicField$q(this, "customerGroupDeclineButton");
|
|
3985
|
+
__publicField$q(this, "tagList");
|
|
3986
|
+
__publicField$q(this, "tagItems");
|
|
3804
3987
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
3805
3988
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
3806
3989
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -3810,6 +3993,8 @@ class CustomerDetail {
|
|
|
3810
3993
|
this.customerGroupRequestMessage = page.locator(".sw-alert__message");
|
|
3811
3994
|
this.customerGroupAcceptButton = page.getByRole("button", { name: "Accept" });
|
|
3812
3995
|
this.customerGroupDeclineButton = page.getByRole("button", { name: "Decline" });
|
|
3996
|
+
this.tagList = page.locator(".sw-customer-card__tag-select").locator(".sw-select-selection-list");
|
|
3997
|
+
this.tagItems = this.tagList.locator(".sw-select-selection-list__item");
|
|
3813
3998
|
}
|
|
3814
3999
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
3815
4000
|
const customFieldCard = this.page.locator(".sw-card").filter({ hasText: "Custom fields" });
|
|
@@ -3823,22 +4008,40 @@ class CustomerDetail {
|
|
|
3823
4008
|
async getCustomerGroupAlert(customerGroup) {
|
|
3824
4009
|
return this.customerGroupRequestMessage.getByText(`Access to customer group "${customerGroup}" requested.`);
|
|
3825
4010
|
}
|
|
4011
|
+
async getCustomerGroup() {
|
|
4012
|
+
const dlElement = this.page.locator("dl").filter({
|
|
4013
|
+
has: this.page.locator("dt", { hasText: "Customer group" })
|
|
4014
|
+
});
|
|
4015
|
+
return dlElement.locator("dd");
|
|
4016
|
+
}
|
|
4017
|
+
async getAccountStatus() {
|
|
4018
|
+
const dlElement = this.page.locator("dl").filter({
|
|
4019
|
+
has: this.page.locator("dt", { hasText: "Account status" })
|
|
4020
|
+
});
|
|
4021
|
+
return dlElement.locator("dd");
|
|
4022
|
+
}
|
|
4023
|
+
async getLanguage() {
|
|
4024
|
+
const dlElement = this.page.locator("dl").filter({
|
|
4025
|
+
has: this.page.locator("dt", { hasText: "Language" })
|
|
4026
|
+
});
|
|
4027
|
+
return dlElement.locator("dd");
|
|
4028
|
+
}
|
|
3826
4029
|
url(customerId) {
|
|
3827
4030
|
return `#/sw/customer/detail/${customerId}/base`;
|
|
3828
4031
|
}
|
|
3829
4032
|
}
|
|
3830
4033
|
|
|
3831
|
-
var __defProp$
|
|
3832
|
-
var __defNormalProp$
|
|
3833
|
-
var __publicField$
|
|
3834
|
-
__defNormalProp$
|
|
4034
|
+
var __defProp$p = Object.defineProperty;
|
|
4035
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4036
|
+
var __publicField$p = (obj, key, value) => {
|
|
4037
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3835
4038
|
return value;
|
|
3836
4039
|
};
|
|
3837
4040
|
class CustomerGroupListing {
|
|
3838
4041
|
constructor(page) {
|
|
3839
4042
|
this.page = page;
|
|
3840
|
-
__publicField$
|
|
3841
|
-
__publicField$
|
|
4043
|
+
__publicField$p(this, "headline");
|
|
4044
|
+
__publicField$p(this, "addCustomerGroupButton");
|
|
3842
4045
|
this.headline = page.getByRole("heading", { name: "Customer groups" });
|
|
3843
4046
|
this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
|
|
3844
4047
|
}
|
|
@@ -3860,29 +4063,29 @@ class CustomerGroupListing {
|
|
|
3860
4063
|
}
|
|
3861
4064
|
}
|
|
3862
4065
|
|
|
3863
|
-
var __defProp$
|
|
3864
|
-
var __defNormalProp$
|
|
3865
|
-
var __publicField$
|
|
3866
|
-
__defNormalProp$
|
|
4066
|
+
var __defProp$o = Object.defineProperty;
|
|
4067
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4068
|
+
var __publicField$o = (obj, key, value) => {
|
|
4069
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3867
4070
|
return value;
|
|
3868
4071
|
};
|
|
3869
4072
|
class CustomerGroupCreate {
|
|
3870
4073
|
constructor(page) {
|
|
3871
4074
|
this.page = page;
|
|
3872
|
-
__publicField$
|
|
3873
|
-
__publicField$
|
|
3874
|
-
__publicField$
|
|
3875
|
-
__publicField$
|
|
3876
|
-
__publicField$
|
|
3877
|
-
__publicField$
|
|
3878
|
-
__publicField$
|
|
3879
|
-
__publicField$
|
|
3880
|
-
__publicField$
|
|
3881
|
-
__publicField$
|
|
3882
|
-
__publicField$
|
|
3883
|
-
__publicField$
|
|
3884
|
-
__publicField$
|
|
3885
|
-
__publicField$
|
|
4075
|
+
__publicField$o(this, "headline");
|
|
4076
|
+
__publicField$o(this, "saveButton");
|
|
4077
|
+
__publicField$o(this, "cancelButton");
|
|
4078
|
+
__publicField$o(this, "cardTitle");
|
|
4079
|
+
__publicField$o(this, "customerGroupNameField");
|
|
4080
|
+
__publicField$o(this, "customerGroupGrossTaxDisplay");
|
|
4081
|
+
__publicField$o(this, "customerGroupNetTaxDisplay");
|
|
4082
|
+
__publicField$o(this, "customSignupFormToggle");
|
|
4083
|
+
__publicField$o(this, "signupFormTitle");
|
|
4084
|
+
__publicField$o(this, "signupFormIntroduction");
|
|
4085
|
+
__publicField$o(this, "signupFormSeoDescription");
|
|
4086
|
+
__publicField$o(this, "signupFormCompanySignupToggle");
|
|
4087
|
+
__publicField$o(this, "customerGroupSaleschannelSelection");
|
|
4088
|
+
__publicField$o(this, "customerGroupSaleschannelResultList");
|
|
3886
4089
|
this.headline = page.getByRole("heading", { name: "New customer group" });
|
|
3887
4090
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
3888
4091
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
@@ -3903,20 +4106,20 @@ class CustomerGroupCreate {
|
|
|
3903
4106
|
}
|
|
3904
4107
|
}
|
|
3905
4108
|
|
|
3906
|
-
var __defProp$
|
|
3907
|
-
var __defNormalProp$
|
|
3908
|
-
var __publicField$
|
|
3909
|
-
__defNormalProp$
|
|
4109
|
+
var __defProp$n = Object.defineProperty;
|
|
4110
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4111
|
+
var __publicField$n = (obj, key, value) => {
|
|
4112
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3910
4113
|
return value;
|
|
3911
4114
|
};
|
|
3912
4115
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
3913
4116
|
constructor(page) {
|
|
3914
4117
|
super(page);
|
|
3915
4118
|
this.page = page;
|
|
3916
|
-
__publicField$
|
|
3917
|
-
__publicField$
|
|
3918
|
-
__publicField$
|
|
3919
|
-
__publicField$
|
|
4119
|
+
__publicField$n(this, "headline");
|
|
4120
|
+
__publicField$n(this, "selectedSalesChannel");
|
|
4121
|
+
__publicField$n(this, "technicalUrl");
|
|
4122
|
+
__publicField$n(this, "saleschannelUrl");
|
|
3920
4123
|
this.headline = page.locator(".smart-bar__header");
|
|
3921
4124
|
this.selectedSalesChannel = page.locator(".sw-select-selection-list");
|
|
3922
4125
|
this.technicalUrl = page.getByLabel("Technical URL");
|
|
@@ -3927,53 +4130,53 @@ class CustomerGroupDetail extends CustomerGroupCreate {
|
|
|
3927
4130
|
}
|
|
3928
4131
|
}
|
|
3929
4132
|
|
|
3930
|
-
var __defProp$
|
|
3931
|
-
var __defNormalProp$
|
|
3932
|
-
var __publicField$
|
|
3933
|
-
__defNormalProp$
|
|
4133
|
+
var __defProp$m = Object.defineProperty;
|
|
4134
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4135
|
+
var __publicField$m = (obj, key, value) => {
|
|
4136
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3934
4137
|
return value;
|
|
3935
4138
|
};
|
|
3936
4139
|
class FirstRunWizard {
|
|
3937
4140
|
constructor(page) {
|
|
3938
4141
|
this.page = page;
|
|
3939
|
-
__publicField$
|
|
3940
|
-
__publicField$
|
|
3941
|
-
__publicField$
|
|
3942
|
-
__publicField$
|
|
3943
|
-
__publicField$
|
|
3944
|
-
__publicField$
|
|
3945
|
-
__publicField$
|
|
3946
|
-
__publicField$
|
|
3947
|
-
__publicField$
|
|
3948
|
-
__publicField$
|
|
3949
|
-
__publicField$
|
|
3950
|
-
__publicField$
|
|
3951
|
-
__publicField$
|
|
3952
|
-
__publicField$
|
|
3953
|
-
__publicField$
|
|
3954
|
-
__publicField$
|
|
3955
|
-
__publicField$
|
|
3956
|
-
__publicField$
|
|
3957
|
-
__publicField$
|
|
3958
|
-
__publicField$
|
|
3959
|
-
__publicField$
|
|
3960
|
-
__publicField$
|
|
3961
|
-
__publicField$
|
|
3962
|
-
__publicField$
|
|
3963
|
-
__publicField$
|
|
3964
|
-
__publicField$
|
|
3965
|
-
__publicField$
|
|
3966
|
-
__publicField$
|
|
3967
|
-
__publicField$
|
|
3968
|
-
__publicField$
|
|
3969
|
-
__publicField$
|
|
3970
|
-
__publicField$
|
|
3971
|
-
__publicField$
|
|
3972
|
-
__publicField$
|
|
3973
|
-
__publicField$
|
|
3974
|
-
__publicField$
|
|
3975
|
-
__publicField$
|
|
3976
|
-
__publicField$
|
|
4142
|
+
__publicField$m(this, "nextButton");
|
|
4143
|
+
__publicField$m(this, "configureLaterButton");
|
|
4144
|
+
__publicField$m(this, "skipButton");
|
|
4145
|
+
__publicField$m(this, "finishButton");
|
|
4146
|
+
__publicField$m(this, "backButton");
|
|
4147
|
+
__publicField$m(this, "smtpServerButton");
|
|
4148
|
+
__publicField$m(this, "dataImportHeader");
|
|
4149
|
+
__publicField$m(this, "installLanguagePackButton");
|
|
4150
|
+
__publicField$m(this, "installDemoDataButton");
|
|
4151
|
+
__publicField$m(this, "installMigrationAssistantButton");
|
|
4152
|
+
__publicField$m(this, "defaultValuesHeader");
|
|
4153
|
+
__publicField$m(this, "mailerConfigurationHeader");
|
|
4154
|
+
__publicField$m(this, "payPalSetupHeader");
|
|
4155
|
+
__publicField$m(this, "extensionsHeader");
|
|
4156
|
+
__publicField$m(this, "shopwareAccountHeader");
|
|
4157
|
+
__publicField$m(this, "shopwareStoreHeader");
|
|
4158
|
+
__publicField$m(this, "doneHeader");
|
|
4159
|
+
__publicField$m(this, "frwSuccessText");
|
|
4160
|
+
__publicField$m(this, "welcomeText");
|
|
4161
|
+
__publicField$m(this, "pluginCardInfo");
|
|
4162
|
+
__publicField$m(this, "dataImportCard");
|
|
4163
|
+
__publicField$m(this, "salesChannelSelectionList");
|
|
4164
|
+
__publicField$m(this, "salesChannelSelectionMultiSelect");
|
|
4165
|
+
__publicField$m(this, "smtpServerTitle");
|
|
4166
|
+
__publicField$m(this, "smtpServerFields");
|
|
4167
|
+
__publicField$m(this, "payPalPaymethods");
|
|
4168
|
+
__publicField$m(this, "payPalInfoCard");
|
|
4169
|
+
__publicField$m(this, "emailAddressInputField");
|
|
4170
|
+
__publicField$m(this, "passwordInputField");
|
|
4171
|
+
__publicField$m(this, "forgotPasswordLink");
|
|
4172
|
+
__publicField$m(this, "extensionStoreHeading");
|
|
4173
|
+
__publicField$m(this, "documentationLink");
|
|
4174
|
+
__publicField$m(this, "forumLink");
|
|
4175
|
+
__publicField$m(this, "roadmapLink");
|
|
4176
|
+
__publicField$m(this, "germanRegionSelector");
|
|
4177
|
+
__publicField$m(this, "toolsSelector");
|
|
4178
|
+
__publicField$m(this, "recommendationHeader");
|
|
4179
|
+
__publicField$m(this, "toolsRecommendedPlugin");
|
|
3977
4180
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
3978
4181
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
3979
4182
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -4018,17 +4221,17 @@ class FirstRunWizard {
|
|
|
4018
4221
|
}
|
|
4019
4222
|
}
|
|
4020
4223
|
|
|
4021
|
-
var __defProp$
|
|
4022
|
-
var __defNormalProp$
|
|
4023
|
-
var __publicField$
|
|
4024
|
-
__defNormalProp$
|
|
4224
|
+
var __defProp$l = Object.defineProperty;
|
|
4225
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4226
|
+
var __publicField$l = (obj, key, value) => {
|
|
4227
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4025
4228
|
return value;
|
|
4026
4229
|
};
|
|
4027
4230
|
class FlowBuilderCreate {
|
|
4028
4231
|
constructor(page) {
|
|
4029
4232
|
this.page = page;
|
|
4030
|
-
__publicField$
|
|
4031
|
-
__publicField$
|
|
4233
|
+
__publicField$l(this, "saveButton");
|
|
4234
|
+
__publicField$l(this, "header");
|
|
4032
4235
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
4033
4236
|
this.header = page.locator("h2");
|
|
4034
4237
|
}
|
|
@@ -4037,28 +4240,28 @@ class FlowBuilderCreate {
|
|
|
4037
4240
|
}
|
|
4038
4241
|
}
|
|
4039
4242
|
|
|
4040
|
-
var __defProp$
|
|
4041
|
-
var __defNormalProp$
|
|
4042
|
-
var __publicField$
|
|
4043
|
-
__defNormalProp$
|
|
4243
|
+
var __defProp$k = Object.defineProperty;
|
|
4244
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4245
|
+
var __publicField$k = (obj, key, value) => {
|
|
4246
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4044
4247
|
return value;
|
|
4045
4248
|
};
|
|
4046
4249
|
class FlowBuilderListing {
|
|
4047
4250
|
constructor(page) {
|
|
4048
4251
|
this.page = page;
|
|
4049
|
-
__publicField$
|
|
4050
|
-
__publicField$
|
|
4051
|
-
__publicField$
|
|
4052
|
-
__publicField$
|
|
4053
|
-
__publicField$
|
|
4054
|
-
__publicField$
|
|
4055
|
-
__publicField$
|
|
4056
|
-
__publicField$
|
|
4057
|
-
__publicField$
|
|
4058
|
-
__publicField$
|
|
4059
|
-
__publicField$
|
|
4060
|
-
__publicField$
|
|
4061
|
-
__publicField$
|
|
4252
|
+
__publicField$k(this, "createFlowButton");
|
|
4253
|
+
__publicField$k(this, "firstFlowName");
|
|
4254
|
+
__publicField$k(this, "firstFlowContextButton");
|
|
4255
|
+
__publicField$k(this, "flowContextMenu");
|
|
4256
|
+
__publicField$k(this, "contextMenuDownload");
|
|
4257
|
+
__publicField$k(this, "contextMenuDuplicate");
|
|
4258
|
+
__publicField$k(this, "contextMenuEdit");
|
|
4259
|
+
__publicField$k(this, "contextMenuDelete");
|
|
4260
|
+
__publicField$k(this, "flowDownloadModal");
|
|
4261
|
+
__publicField$k(this, "downloadFlowButton");
|
|
4262
|
+
__publicField$k(this, "flowDeleteButton");
|
|
4263
|
+
__publicField$k(this, "successAlert");
|
|
4264
|
+
__publicField$k(this, "successAlertMessage");
|
|
4062
4265
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
4063
4266
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
4064
4267
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -4095,18 +4298,18 @@ class FlowBuilderListing {
|
|
|
4095
4298
|
}
|
|
4096
4299
|
}
|
|
4097
4300
|
|
|
4098
|
-
var __defProp$
|
|
4099
|
-
var __defNormalProp$
|
|
4100
|
-
var __publicField$
|
|
4101
|
-
__defNormalProp$
|
|
4301
|
+
var __defProp$j = Object.defineProperty;
|
|
4302
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4303
|
+
var __publicField$j = (obj, key, value) => {
|
|
4304
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4102
4305
|
return value;
|
|
4103
4306
|
};
|
|
4104
4307
|
class FlowBuilderDetail {
|
|
4105
4308
|
constructor(page) {
|
|
4106
4309
|
this.page = page;
|
|
4107
|
-
__publicField$
|
|
4108
|
-
__publicField$
|
|
4109
|
-
__publicField$
|
|
4310
|
+
__publicField$j(this, "saveButton");
|
|
4311
|
+
__publicField$j(this, "generalTab");
|
|
4312
|
+
__publicField$j(this, "flowTab");
|
|
4110
4313
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
4111
4314
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
4112
4315
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
@@ -4116,20 +4319,20 @@ class FlowBuilderDetail {
|
|
|
4116
4319
|
}
|
|
4117
4320
|
}
|
|
4118
4321
|
|
|
4119
|
-
var __defProp$
|
|
4120
|
-
var __defNormalProp$
|
|
4121
|
-
var __publicField$
|
|
4122
|
-
__defNormalProp$
|
|
4322
|
+
var __defProp$i = Object.defineProperty;
|
|
4323
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4324
|
+
var __publicField$i = (obj, key, value) => {
|
|
4325
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4123
4326
|
return value;
|
|
4124
4327
|
};
|
|
4125
4328
|
class DataSharing {
|
|
4126
4329
|
constructor(page) {
|
|
4127
4330
|
this.page = page;
|
|
4128
|
-
__publicField$
|
|
4129
|
-
__publicField$
|
|
4130
|
-
__publicField$
|
|
4131
|
-
__publicField$
|
|
4132
|
-
__publicField$
|
|
4331
|
+
__publicField$i(this, "dataConsentHeadline");
|
|
4332
|
+
__publicField$i(this, "dataSharingSuccessMessageLabel");
|
|
4333
|
+
__publicField$i(this, "dataSharingAgreeButton");
|
|
4334
|
+
__publicField$i(this, "dataSharingDisableButton");
|
|
4335
|
+
__publicField$i(this, "dataSharingTermsAgreementLabel");
|
|
4133
4336
|
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
4134
4337
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
4135
4338
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
@@ -4141,23 +4344,23 @@ class DataSharing {
|
|
|
4141
4344
|
}
|
|
4142
4345
|
}
|
|
4143
4346
|
|
|
4144
|
-
var __defProp$
|
|
4145
|
-
var __defNormalProp$
|
|
4146
|
-
var __publicField$
|
|
4147
|
-
__defNormalProp$
|
|
4347
|
+
var __defProp$h = Object.defineProperty;
|
|
4348
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4349
|
+
var __publicField$h = (obj, key, value) => {
|
|
4350
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4148
4351
|
return value;
|
|
4149
4352
|
};
|
|
4150
4353
|
class Dashboard {
|
|
4151
4354
|
constructor(page) {
|
|
4152
4355
|
this.page = page;
|
|
4153
|
-
__publicField$
|
|
4154
|
-
__publicField$
|
|
4155
|
-
__publicField$
|
|
4156
|
-
__publicField$
|
|
4157
|
-
__publicField$
|
|
4158
|
-
__publicField$
|
|
4159
|
-
__publicField$
|
|
4160
|
-
__publicField$
|
|
4356
|
+
__publicField$h(this, "welcomeHeadline");
|
|
4357
|
+
__publicField$h(this, "dataSharingConsentBanner");
|
|
4358
|
+
__publicField$h(this, "dataSharingAgreeButton");
|
|
4359
|
+
__publicField$h(this, "dataSharingNotAtTheMomentButton");
|
|
4360
|
+
__publicField$h(this, "dataSharingTermsAgreementLabel");
|
|
4361
|
+
__publicField$h(this, "dataSharingSettingsLink");
|
|
4362
|
+
__publicField$h(this, "dataSharingAcceptMessageText");
|
|
4363
|
+
__publicField$h(this, "dataSharingNotAtTheMomentMessageText");
|
|
4161
4364
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
4162
4365
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
4163
4366
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
@@ -4172,25 +4375,25 @@ class Dashboard {
|
|
|
4172
4375
|
}
|
|
4173
4376
|
}
|
|
4174
4377
|
|
|
4175
|
-
var __defProp$
|
|
4176
|
-
var __defNormalProp$
|
|
4177
|
-
var __publicField$
|
|
4178
|
-
__defNormalProp$
|
|
4378
|
+
var __defProp$g = Object.defineProperty;
|
|
4379
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4380
|
+
var __publicField$g = (obj, key, value) => {
|
|
4381
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4179
4382
|
return value;
|
|
4180
4383
|
};
|
|
4181
4384
|
class ShippingListing {
|
|
4182
4385
|
constructor(page) {
|
|
4183
4386
|
this.page = page;
|
|
4184
|
-
__publicField$
|
|
4185
|
-
__publicField$
|
|
4186
|
-
__publicField$
|
|
4187
|
-
__publicField$
|
|
4188
|
-
__publicField$
|
|
4387
|
+
__publicField$g(this, "header");
|
|
4388
|
+
__publicField$g(this, "addShippingMethod");
|
|
4389
|
+
__publicField$g(this, "contextMenu");
|
|
4390
|
+
__publicField$g(this, "editButton");
|
|
4391
|
+
__publicField$g(this, "deleteButton");
|
|
4189
4392
|
//warning modal
|
|
4190
|
-
__publicField$
|
|
4191
|
-
__publicField$
|
|
4192
|
-
__publicField$
|
|
4193
|
-
__publicField$
|
|
4393
|
+
__publicField$g(this, "modal");
|
|
4394
|
+
__publicField$g(this, "modalHeader");
|
|
4395
|
+
__publicField$g(this, "modalCancelButton");
|
|
4396
|
+
__publicField$g(this, "modalDeleteButton");
|
|
4194
4397
|
this.header = page.locator(".smart-bar__header");
|
|
4195
4398
|
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
4196
4399
|
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
@@ -4206,10 +4409,10 @@ class ShippingListing {
|
|
|
4206
4409
|
}
|
|
4207
4410
|
}
|
|
4208
4411
|
|
|
4209
|
-
var __defProp$
|
|
4210
|
-
var __defNormalProp$
|
|
4211
|
-
var __publicField$
|
|
4212
|
-
__defNormalProp$
|
|
4412
|
+
var __defProp$f = Object.defineProperty;
|
|
4413
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4414
|
+
var __publicField$f = (obj, key, value) => {
|
|
4415
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4213
4416
|
return value;
|
|
4214
4417
|
};
|
|
4215
4418
|
class LandingPageCreate {
|
|
@@ -4218,24 +4421,24 @@ class LandingPageCreate {
|
|
|
4218
4421
|
/**
|
|
4219
4422
|
* General
|
|
4220
4423
|
*/
|
|
4221
|
-
__publicField$
|
|
4222
|
-
__publicField$
|
|
4223
|
-
__publicField$
|
|
4224
|
-
__publicField$
|
|
4225
|
-
__publicField$
|
|
4226
|
-
__publicField$
|
|
4227
|
-
__publicField$
|
|
4424
|
+
__publicField$f(this, "nameInput");
|
|
4425
|
+
__publicField$f(this, "landingPageStatus");
|
|
4426
|
+
__publicField$f(this, "salesChannelSelectionList");
|
|
4427
|
+
__publicField$f(this, "filtersResultPopoverItemList");
|
|
4428
|
+
__publicField$f(this, "saveLandingPageButton");
|
|
4429
|
+
__publicField$f(this, "loadingSpinner");
|
|
4430
|
+
__publicField$f(this, "seoUrlInput");
|
|
4228
4431
|
/**
|
|
4229
4432
|
* Layout
|
|
4230
4433
|
*/
|
|
4231
|
-
__publicField$
|
|
4232
|
-
__publicField$
|
|
4233
|
-
__publicField$
|
|
4234
|
-
__publicField$
|
|
4235
|
-
__publicField$
|
|
4236
|
-
__publicField$
|
|
4237
|
-
__publicField$
|
|
4238
|
-
__publicField$
|
|
4434
|
+
__publicField$f(this, "layoutTab");
|
|
4435
|
+
__publicField$f(this, "assignLayoutButton");
|
|
4436
|
+
__publicField$f(this, "searchLayoutInput");
|
|
4437
|
+
__publicField$f(this, "layoutItems");
|
|
4438
|
+
__publicField$f(this, "layoutSaveButton");
|
|
4439
|
+
__publicField$f(this, "layoutEmptyState");
|
|
4440
|
+
__publicField$f(this, "createNewLayoutButton");
|
|
4441
|
+
__publicField$f(this, "layoutCheckboxes");
|
|
4239
4442
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4240
4443
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4241
4444
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4260,10 +4463,10 @@ class LandingPageCreate {
|
|
|
4260
4463
|
}
|
|
4261
4464
|
}
|
|
4262
4465
|
|
|
4263
|
-
var __defProp$
|
|
4264
|
-
var __defNormalProp$
|
|
4265
|
-
var __publicField$
|
|
4266
|
-
__defNormalProp$
|
|
4466
|
+
var __defProp$e = Object.defineProperty;
|
|
4467
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4468
|
+
var __publicField$e = (obj, key, value) => {
|
|
4469
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4267
4470
|
return value;
|
|
4268
4471
|
};
|
|
4269
4472
|
class LandingPageDetail {
|
|
@@ -4272,24 +4475,24 @@ class LandingPageDetail {
|
|
|
4272
4475
|
/**
|
|
4273
4476
|
* General
|
|
4274
4477
|
*/
|
|
4275
|
-
__publicField$
|
|
4276
|
-
__publicField$
|
|
4277
|
-
__publicField$
|
|
4278
|
-
__publicField$
|
|
4279
|
-
__publicField$
|
|
4280
|
-
__publicField$
|
|
4281
|
-
__publicField$
|
|
4478
|
+
__publicField$e(this, "nameInput");
|
|
4479
|
+
__publicField$e(this, "landingPageStatus");
|
|
4480
|
+
__publicField$e(this, "salesChannelSelectionList");
|
|
4481
|
+
__publicField$e(this, "filtersResultPopoverItemList");
|
|
4482
|
+
__publicField$e(this, "saveLandingPageButton");
|
|
4483
|
+
__publicField$e(this, "loadingSpinner");
|
|
4484
|
+
__publicField$e(this, "seoUrlInput");
|
|
4282
4485
|
/**
|
|
4283
4486
|
* Layout
|
|
4284
4487
|
*/
|
|
4285
|
-
__publicField$
|
|
4286
|
-
__publicField$
|
|
4287
|
-
__publicField$
|
|
4288
|
-
__publicField$
|
|
4289
|
-
__publicField$
|
|
4290
|
-
__publicField$
|
|
4291
|
-
__publicField$
|
|
4292
|
-
__publicField$
|
|
4488
|
+
__publicField$e(this, "layoutTab");
|
|
4489
|
+
__publicField$e(this, "layoutAssignmentCardTitle");
|
|
4490
|
+
__publicField$e(this, "layoutAssignmentCardHeadline");
|
|
4491
|
+
__publicField$e(this, "changeLayoutButton");
|
|
4492
|
+
__publicField$e(this, "editInDesignerButton");
|
|
4493
|
+
__publicField$e(this, "layoutResetButton");
|
|
4494
|
+
__publicField$e(this, "layoutAssignmentStatus");
|
|
4495
|
+
__publicField$e(this, "layoutAssignmentContentSection");
|
|
4293
4496
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4294
4497
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4295
4498
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4313,10 +4516,10 @@ class LandingPageDetail {
|
|
|
4313
4516
|
}
|
|
4314
4517
|
}
|
|
4315
4518
|
|
|
4316
|
-
var __defProp$
|
|
4317
|
-
var __defNormalProp$
|
|
4318
|
-
var __publicField$
|
|
4319
|
-
__defNormalProp$
|
|
4519
|
+
var __defProp$d = Object.defineProperty;
|
|
4520
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4521
|
+
var __publicField$d = (obj, key, value) => {
|
|
4522
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4320
4523
|
return value;
|
|
4321
4524
|
};
|
|
4322
4525
|
class Categories {
|
|
@@ -4325,42 +4528,42 @@ class Categories {
|
|
|
4325
4528
|
/**
|
|
4326
4529
|
* Landing pages
|
|
4327
4530
|
*/
|
|
4328
|
-
__publicField$
|
|
4329
|
-
__publicField$
|
|
4330
|
-
__publicField$
|
|
4331
|
-
__publicField$
|
|
4531
|
+
__publicField$d(this, "landingPageArea");
|
|
4532
|
+
__publicField$d(this, "landingPageHeadline");
|
|
4533
|
+
__publicField$d(this, "addLandingPageButton");
|
|
4534
|
+
__publicField$d(this, "landingPageItems");
|
|
4332
4535
|
/**
|
|
4333
4536
|
* Category tree
|
|
4334
4537
|
*/
|
|
4335
|
-
__publicField$
|
|
4336
|
-
__publicField$
|
|
4337
|
-
__publicField$
|
|
4338
|
-
__publicField$
|
|
4339
|
-
__publicField$
|
|
4340
|
-
__publicField$
|
|
4341
|
-
__publicField$
|
|
4342
|
-
__publicField$
|
|
4538
|
+
__publicField$d(this, "categoryTree");
|
|
4539
|
+
__publicField$d(this, "homeCategory");
|
|
4540
|
+
__publicField$d(this, "homeCategoryContextButton");
|
|
4541
|
+
__publicField$d(this, "categoryMenuItemList");
|
|
4542
|
+
__publicField$d(this, "createCategoryInput");
|
|
4543
|
+
__publicField$d(this, "confirmCategoryCreationButton");
|
|
4544
|
+
__publicField$d(this, "confirmCategoryCancelButton");
|
|
4545
|
+
__publicField$d(this, "categoryItems");
|
|
4343
4546
|
/**
|
|
4344
4547
|
* General
|
|
4345
4548
|
*/
|
|
4346
|
-
__publicField$
|
|
4347
|
-
__publicField$
|
|
4348
|
-
__publicField$
|
|
4349
|
-
__publicField$
|
|
4350
|
-
__publicField$
|
|
4351
|
-
__publicField$
|
|
4352
|
-
__publicField$
|
|
4549
|
+
__publicField$d(this, "nameInput");
|
|
4550
|
+
__publicField$d(this, "activeCheckbox");
|
|
4551
|
+
__publicField$d(this, "categoryTypeSelectionList");
|
|
4552
|
+
__publicField$d(this, "filtersResultPopoverItemList");
|
|
4553
|
+
__publicField$d(this, "saveButton");
|
|
4554
|
+
__publicField$d(this, "loadingSpinner");
|
|
4555
|
+
__publicField$d(this, "fadingBar");
|
|
4353
4556
|
/**
|
|
4354
4557
|
* Customisable link
|
|
4355
4558
|
*/
|
|
4356
|
-
__publicField$
|
|
4357
|
-
__publicField$
|
|
4358
|
-
__publicField$
|
|
4359
|
-
__publicField$
|
|
4360
|
-
__publicField$
|
|
4361
|
-
__publicField$
|
|
4362
|
-
__publicField$
|
|
4363
|
-
__publicField$
|
|
4559
|
+
__publicField$d(this, "entitySelectionList");
|
|
4560
|
+
__publicField$d(this, "linkTypeSelectionList");
|
|
4561
|
+
__publicField$d(this, "categorySelectionList");
|
|
4562
|
+
__publicField$d(this, "productSelectionList");
|
|
4563
|
+
__publicField$d(this, "landingPageSelectionList");
|
|
4564
|
+
__publicField$d(this, "filterResultPopoverTreeCheckboxItemList");
|
|
4565
|
+
__publicField$d(this, "openInNewTabCheckbox");
|
|
4566
|
+
__publicField$d(this, "popoverCategoryTree");
|
|
4364
4567
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
4365
4568
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
4366
4569
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
@@ -4400,20 +4603,20 @@ class Categories {
|
|
|
4400
4603
|
}
|
|
4401
4604
|
}
|
|
4402
4605
|
|
|
4403
|
-
var __defProp$
|
|
4404
|
-
var __defNormalProp$
|
|
4405
|
-
var __publicField$
|
|
4406
|
-
__defNormalProp$
|
|
4606
|
+
var __defProp$c = Object.defineProperty;
|
|
4607
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4608
|
+
var __publicField$c = (obj, key, value) => {
|
|
4609
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4407
4610
|
return value;
|
|
4408
4611
|
};
|
|
4409
4612
|
class RuleDetail {
|
|
4410
4613
|
constructor(page) {
|
|
4411
4614
|
this.page = page;
|
|
4412
|
-
__publicField$
|
|
4413
|
-
__publicField$
|
|
4414
|
-
__publicField$
|
|
4415
|
-
__publicField$
|
|
4416
|
-
__publicField$
|
|
4615
|
+
__publicField$c(this, "nameInput");
|
|
4616
|
+
__publicField$c(this, "priorityInput");
|
|
4617
|
+
__publicField$c(this, "conditionTypeSelectionInput");
|
|
4618
|
+
__publicField$c(this, "conditionValueSelectionInput");
|
|
4619
|
+
__publicField$c(this, "filtersResultPopoverSelectionList");
|
|
4417
4620
|
this.nameInput = page.getByLabel("Name");
|
|
4418
4621
|
this.priorityInput = page.getByLabel("Priority");
|
|
4419
4622
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -4425,17 +4628,17 @@ class RuleDetail {
|
|
|
4425
4628
|
}
|
|
4426
4629
|
}
|
|
4427
4630
|
|
|
4428
|
-
var __defProp$
|
|
4429
|
-
var __defNormalProp$
|
|
4430
|
-
var __publicField$
|
|
4431
|
-
__defNormalProp$
|
|
4631
|
+
var __defProp$b = Object.defineProperty;
|
|
4632
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4633
|
+
var __publicField$b = (obj, key, value) => {
|
|
4634
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4432
4635
|
return value;
|
|
4433
4636
|
};
|
|
4434
4637
|
class CustomFieldListing {
|
|
4435
4638
|
constructor(page) {
|
|
4436
4639
|
this.page = page;
|
|
4437
|
-
__publicField$
|
|
4438
|
-
__publicField$
|
|
4640
|
+
__publicField$b(this, "addNewSetButton");
|
|
4641
|
+
__publicField$b(this, "customFieldRows");
|
|
4439
4642
|
this.addNewSetButton = page.getByText("Add new set");
|
|
4440
4643
|
this.customFieldRows = page.getByRole("row");
|
|
4441
4644
|
}
|
|
@@ -4463,22 +4666,22 @@ class CustomFieldListing {
|
|
|
4463
4666
|
}
|
|
4464
4667
|
}
|
|
4465
4668
|
|
|
4466
|
-
var __defProp$
|
|
4467
|
-
var __defNormalProp$
|
|
4468
|
-
var __publicField$
|
|
4469
|
-
__defNormalProp$
|
|
4669
|
+
var __defProp$a = Object.defineProperty;
|
|
4670
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4671
|
+
var __publicField$a = (obj, key, value) => {
|
|
4672
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4470
4673
|
return value;
|
|
4471
4674
|
};
|
|
4472
4675
|
class CustomFieldCreate {
|
|
4473
4676
|
constructor(page) {
|
|
4474
4677
|
this.page = page;
|
|
4475
|
-
__publicField$
|
|
4476
|
-
__publicField$
|
|
4477
|
-
__publicField$
|
|
4478
|
-
__publicField$
|
|
4479
|
-
__publicField$
|
|
4480
|
-
__publicField$
|
|
4481
|
-
__publicField$
|
|
4678
|
+
__publicField$a(this, "saveButton");
|
|
4679
|
+
__publicField$a(this, "cancelButton");
|
|
4680
|
+
__publicField$a(this, "technicalNameInput");
|
|
4681
|
+
__publicField$a(this, "positionInput");
|
|
4682
|
+
__publicField$a(this, "labelEnglishGBInput");
|
|
4683
|
+
__publicField$a(this, "assignToSelectionList");
|
|
4684
|
+
__publicField$a(this, "resultAssignToPopoverItemList");
|
|
4482
4685
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4483
4686
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4484
4687
|
this.technicalNameInput = page.getByLabel("Technical name");
|
|
@@ -4492,33 +4695,33 @@ class CustomFieldCreate {
|
|
|
4492
4695
|
}
|
|
4493
4696
|
}
|
|
4494
4697
|
|
|
4495
|
-
var __defProp$
|
|
4496
|
-
var __defNormalProp$
|
|
4497
|
-
var __publicField$
|
|
4498
|
-
__defNormalProp$
|
|
4698
|
+
var __defProp$9 = Object.defineProperty;
|
|
4699
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4700
|
+
var __publicField$9 = (obj, key, value) => {
|
|
4701
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4499
4702
|
return value;
|
|
4500
4703
|
};
|
|
4501
4704
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
4502
4705
|
constructor(page) {
|
|
4503
4706
|
super(page);
|
|
4504
4707
|
this.page = page;
|
|
4505
|
-
__publicField$
|
|
4506
|
-
__publicField$
|
|
4507
|
-
__publicField$
|
|
4508
|
-
__publicField$
|
|
4509
|
-
__publicField$
|
|
4510
|
-
__publicField$
|
|
4511
|
-
__publicField$
|
|
4512
|
-
__publicField$
|
|
4513
|
-
__publicField$
|
|
4514
|
-
__publicField$
|
|
4515
|
-
__publicField$
|
|
4516
|
-
__publicField$
|
|
4517
|
-
__publicField$
|
|
4518
|
-
__publicField$
|
|
4519
|
-
__publicField$
|
|
4520
|
-
__publicField$
|
|
4521
|
-
__publicField$
|
|
4708
|
+
__publicField$9(this, "newCustomFieldButton");
|
|
4709
|
+
__publicField$9(this, "customFieldEditDialog");
|
|
4710
|
+
__publicField$9(this, "newCustomFieldDialog");
|
|
4711
|
+
__publicField$9(this, "customFieldTechnicalNameInput");
|
|
4712
|
+
__publicField$9(this, "customFieldPositionInput");
|
|
4713
|
+
__publicField$9(this, "customFieldTypeSelectionList");
|
|
4714
|
+
__publicField$9(this, "customFieldModifyByStoreApiCheckbox");
|
|
4715
|
+
__publicField$9(this, "customFieldCancelButton");
|
|
4716
|
+
__publicField$9(this, "customFieldAddButton");
|
|
4717
|
+
__publicField$9(this, "customFieldEditApplyButton");
|
|
4718
|
+
__publicField$9(this, "customFieldLabelEnglishGBInput");
|
|
4719
|
+
__publicField$9(this, "customFieldPlaceholderEnglishGBInput");
|
|
4720
|
+
__publicField$9(this, "customFieldHelpTextEnglishGBInput");
|
|
4721
|
+
__publicField$9(this, "customFieldDeleteListButton");
|
|
4722
|
+
__publicField$9(this, "customFieldDeleteDialog");
|
|
4723
|
+
__publicField$9(this, "customFieldDeleteCancelButton");
|
|
4724
|
+
__publicField$9(this, "customFieldDeleteButton");
|
|
4522
4725
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
4523
4726
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
4524
4727
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
@@ -4563,20 +4766,20 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
4563
4766
|
}
|
|
4564
4767
|
}
|
|
4565
4768
|
|
|
4566
|
-
var __defProp$
|
|
4567
|
-
var __defNormalProp$
|
|
4568
|
-
var __publicField$
|
|
4569
|
-
__defNormalProp$
|
|
4769
|
+
var __defProp$8 = Object.defineProperty;
|
|
4770
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4771
|
+
var __publicField$8 = (obj, key, value) => {
|
|
4772
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4570
4773
|
return value;
|
|
4571
4774
|
};
|
|
4572
4775
|
class CategoryDetail {
|
|
4573
4776
|
constructor(page) {
|
|
4574
4777
|
this.page = page;
|
|
4575
|
-
__publicField$
|
|
4576
|
-
__publicField$
|
|
4577
|
-
__publicField$
|
|
4578
|
-
__publicField$
|
|
4579
|
-
__publicField$
|
|
4778
|
+
__publicField$8(this, "saveButton");
|
|
4779
|
+
__publicField$8(this, "cancelButton");
|
|
4780
|
+
__publicField$8(this, "customFieldCard");
|
|
4781
|
+
__publicField$8(this, "customFieldSetTabs");
|
|
4782
|
+
__publicField$8(this, "customFieldSetTabCustomContent");
|
|
4580
4783
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4581
4784
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4582
4785
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
@@ -4597,22 +4800,22 @@ class CategoryDetail {
|
|
|
4597
4800
|
}
|
|
4598
4801
|
}
|
|
4599
4802
|
|
|
4600
|
-
var __defProp$
|
|
4601
|
-
var __defNormalProp$
|
|
4602
|
-
var __publicField$
|
|
4603
|
-
__defNormalProp$
|
|
4803
|
+
var __defProp$7 = Object.defineProperty;
|
|
4804
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4805
|
+
var __publicField$7 = (obj, key, value) => {
|
|
4806
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4604
4807
|
return value;
|
|
4605
4808
|
};
|
|
4606
4809
|
class RuleCreate {
|
|
4607
4810
|
constructor(page) {
|
|
4608
4811
|
this.page = page;
|
|
4609
|
-
__publicField$
|
|
4610
|
-
__publicField$
|
|
4611
|
-
__publicField$
|
|
4612
|
-
__publicField$
|
|
4613
|
-
__publicField$
|
|
4614
|
-
__publicField$
|
|
4615
|
-
__publicField$
|
|
4812
|
+
__publicField$7(this, "nameInput");
|
|
4813
|
+
__publicField$7(this, "priorityInput");
|
|
4814
|
+
__publicField$7(this, "conditionTypeSelectionInput");
|
|
4815
|
+
__publicField$7(this, "conditionValueSelectionInput");
|
|
4816
|
+
__publicField$7(this, "filtersResultPopoverSelectionList");
|
|
4817
|
+
__publicField$7(this, "saveButton");
|
|
4818
|
+
__publicField$7(this, "cancelButton");
|
|
4616
4819
|
this.nameInput = page.getByLabel("Name");
|
|
4617
4820
|
this.priorityInput = page.getByLabel("Priority");
|
|
4618
4821
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -4626,20 +4829,20 @@ class RuleCreate {
|
|
|
4626
4829
|
}
|
|
4627
4830
|
}
|
|
4628
4831
|
|
|
4629
|
-
var __defProp$
|
|
4630
|
-
var __defNormalProp$
|
|
4631
|
-
var __publicField$
|
|
4632
|
-
__defNormalProp$
|
|
4832
|
+
var __defProp$6 = Object.defineProperty;
|
|
4833
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4834
|
+
var __publicField$6 = (obj, key, value) => {
|
|
4835
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4633
4836
|
return value;
|
|
4634
4837
|
};
|
|
4635
4838
|
class ManufacturerCreate {
|
|
4636
4839
|
constructor(page) {
|
|
4637
4840
|
this.page = page;
|
|
4638
|
-
__publicField$
|
|
4639
|
-
__publicField$
|
|
4640
|
-
__publicField$
|
|
4641
|
-
__publicField$
|
|
4642
|
-
__publicField$
|
|
4841
|
+
__publicField$6(this, "saveButton");
|
|
4842
|
+
__publicField$6(this, "cancelButton");
|
|
4843
|
+
__publicField$6(this, "nameInput");
|
|
4844
|
+
__publicField$6(this, "websiteInput");
|
|
4845
|
+
__publicField$6(this, "descriptionInput");
|
|
4643
4846
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4644
4847
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4645
4848
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4651,17 +4854,17 @@ class ManufacturerCreate {
|
|
|
4651
4854
|
}
|
|
4652
4855
|
}
|
|
4653
4856
|
|
|
4654
|
-
var __defProp$
|
|
4655
|
-
var __defNormalProp$
|
|
4656
|
-
var __publicField$
|
|
4657
|
-
__defNormalProp$
|
|
4857
|
+
var __defProp$5 = Object.defineProperty;
|
|
4858
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4859
|
+
var __publicField$5 = (obj, key, value) => {
|
|
4860
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4658
4861
|
return value;
|
|
4659
4862
|
};
|
|
4660
4863
|
class ManufacturerListing {
|
|
4661
4864
|
constructor(page) {
|
|
4662
4865
|
this.page = page;
|
|
4663
|
-
__publicField$
|
|
4664
|
-
__publicField$
|
|
4866
|
+
__publicField$5(this, "addManufacturerButton");
|
|
4867
|
+
__publicField$5(this, "manufacturerRows");
|
|
4665
4868
|
this.addManufacturerButton = page.getByText("Add manufacturer");
|
|
4666
4869
|
this.manufacturerRows = page.getByRole("row");
|
|
4667
4870
|
}
|
|
@@ -4693,19 +4896,19 @@ class ManufacturerListing {
|
|
|
4693
4896
|
}
|
|
4694
4897
|
}
|
|
4695
4898
|
|
|
4696
|
-
var __defProp$
|
|
4697
|
-
var __defNormalProp$
|
|
4698
|
-
var __publicField$
|
|
4699
|
-
__defNormalProp$
|
|
4899
|
+
var __defProp$4 = Object.defineProperty;
|
|
4900
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4901
|
+
var __publicField$4 = (obj, key, value) => {
|
|
4902
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4700
4903
|
return value;
|
|
4701
4904
|
};
|
|
4702
4905
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
4703
4906
|
constructor(page) {
|
|
4704
4907
|
super(page);
|
|
4705
4908
|
this.page = page;
|
|
4706
|
-
__publicField$
|
|
4707
|
-
__publicField$
|
|
4708
|
-
__publicField$
|
|
4909
|
+
__publicField$4(this, "customFieldCard");
|
|
4910
|
+
__publicField$4(this, "customFieldSetTabs");
|
|
4911
|
+
__publicField$4(this, "customFieldSetTabCustomContent");
|
|
4709
4912
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
4710
4913
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
4711
4914
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
@@ -4724,10 +4927,10 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
4724
4927
|
}
|
|
4725
4928
|
}
|
|
4726
4929
|
|
|
4727
|
-
var __defProp$
|
|
4728
|
-
var __defNormalProp$
|
|
4729
|
-
var __publicField$
|
|
4730
|
-
__defNormalProp$
|
|
4930
|
+
var __defProp$3 = Object.defineProperty;
|
|
4931
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4932
|
+
var __publicField$3 = (obj, key, value) => {
|
|
4933
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4731
4934
|
return value;
|
|
4732
4935
|
};
|
|
4733
4936
|
class ProductListing {
|
|
@@ -4736,13 +4939,13 @@ class ProductListing {
|
|
|
4736
4939
|
/**
|
|
4737
4940
|
* Multi selection
|
|
4738
4941
|
*/
|
|
4739
|
-
__publicField$
|
|
4740
|
-
__publicField$
|
|
4942
|
+
__publicField$3(this, "productsTable");
|
|
4943
|
+
__publicField$3(this, "bulkEditButton");
|
|
4741
4944
|
/**
|
|
4742
4945
|
* Bulk edit modal
|
|
4743
4946
|
*/
|
|
4744
|
-
__publicField$
|
|
4745
|
-
__publicField$
|
|
4947
|
+
__publicField$3(this, "bulkEditModal");
|
|
4948
|
+
__publicField$3(this, "startBulkEditButton");
|
|
4746
4949
|
this.productsTable = page.locator(".sw-data-grid__table");
|
|
4747
4950
|
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
4748
4951
|
this.bulkEditModal = page.locator(".sw-product-bulk-edit-modal");
|
|
@@ -4792,10 +4995,10 @@ class ProductListing {
|
|
|
4792
4995
|
}
|
|
4793
4996
|
}
|
|
4794
4997
|
|
|
4795
|
-
var __defProp$
|
|
4796
|
-
var __defNormalProp$
|
|
4797
|
-
var __publicField$
|
|
4798
|
-
__defNormalProp$
|
|
4998
|
+
var __defProp$2 = Object.defineProperty;
|
|
4999
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5000
|
+
var __publicField$2 = (obj, key, value) => {
|
|
5001
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4799
5002
|
return value;
|
|
4800
5003
|
};
|
|
4801
5004
|
class ProductBulkEdit {
|
|
@@ -4804,49 +5007,49 @@ class ProductBulkEdit {
|
|
|
4804
5007
|
/**
|
|
4805
5008
|
* Bulk edit values
|
|
4806
5009
|
*/
|
|
4807
|
-
__publicField$
|
|
4808
|
-
__publicField$
|
|
4809
|
-
__publicField$
|
|
4810
|
-
__publicField$
|
|
4811
|
-
__publicField$
|
|
4812
|
-
__publicField$
|
|
4813
|
-
__publicField$
|
|
4814
|
-
__publicField$
|
|
4815
|
-
__publicField$
|
|
4816
|
-
__publicField$
|
|
4817
|
-
__publicField$
|
|
4818
|
-
__publicField$
|
|
4819
|
-
__publicField$
|
|
4820
|
-
__publicField$
|
|
4821
|
-
__publicField$
|
|
4822
|
-
__publicField$
|
|
4823
|
-
__publicField$
|
|
4824
|
-
__publicField$
|
|
4825
|
-
__publicField$
|
|
4826
|
-
__publicField$
|
|
4827
|
-
__publicField$
|
|
4828
|
-
__publicField$
|
|
4829
|
-
__publicField$
|
|
4830
|
-
__publicField$
|
|
4831
|
-
__publicField$
|
|
4832
|
-
__publicField$
|
|
4833
|
-
__publicField$
|
|
4834
|
-
__publicField$
|
|
4835
|
-
__publicField$
|
|
4836
|
-
__publicField$
|
|
4837
|
-
__publicField$
|
|
4838
|
-
__publicField$
|
|
4839
|
-
__publicField$
|
|
4840
|
-
__publicField$
|
|
4841
|
-
__publicField$
|
|
5010
|
+
__publicField$2(this, "changeManufacturerRow");
|
|
5011
|
+
__publicField$2(this, "changeManufacturerCheckbox");
|
|
5012
|
+
__publicField$2(this, "manufacturerDropdown");
|
|
5013
|
+
__publicField$2(this, "manufacturerDropdownInput");
|
|
5014
|
+
__publicField$2(this, "manufacturerListResult");
|
|
5015
|
+
__publicField$2(this, "changeActiveRow");
|
|
5016
|
+
__publicField$2(this, "changeActiveCheckbox");
|
|
5017
|
+
__publicField$2(this, "activeToggle");
|
|
5018
|
+
__publicField$2(this, "changePriceRow");
|
|
5019
|
+
__publicField$2(this, "changePriceCheckbox");
|
|
5020
|
+
__publicField$2(this, "grossPriceInput");
|
|
5021
|
+
__publicField$2(this, "changeReleaseDateRow");
|
|
5022
|
+
__publicField$2(this, "changeReleaseDateCheckbox");
|
|
5023
|
+
__publicField$2(this, "releaseDateInput");
|
|
5024
|
+
__publicField$2(this, "changeStockRow");
|
|
5025
|
+
__publicField$2(this, "changeStockCheckbox");
|
|
5026
|
+
__publicField$2(this, "stockChangeMethodDropdown");
|
|
5027
|
+
__publicField$2(this, "stockChangeMethodInput");
|
|
5028
|
+
__publicField$2(this, "stockInput");
|
|
5029
|
+
__publicField$2(this, "changeRestockTimeRow");
|
|
5030
|
+
__publicField$2(this, "changeRestockTimeCheckbox");
|
|
5031
|
+
__publicField$2(this, "restockTimeChangeMethodDropdown");
|
|
5032
|
+
__publicField$2(this, "restockTimeChangeMethodInput");
|
|
5033
|
+
__publicField$2(this, "restockTimeInput");
|
|
5034
|
+
__publicField$2(this, "changeTagsRow");
|
|
5035
|
+
__publicField$2(this, "changeTagsCheckbox");
|
|
5036
|
+
__publicField$2(this, "tagsChangeMethodDropdown");
|
|
5037
|
+
__publicField$2(this, "tagsChangeMethodInput");
|
|
5038
|
+
__publicField$2(this, "tagsInput");
|
|
5039
|
+
__publicField$2(this, "changeSalesChannelRow");
|
|
5040
|
+
__publicField$2(this, "changeSalesChannelCheckbox");
|
|
5041
|
+
__publicField$2(this, "salesChannelChangeMethodDropdown");
|
|
5042
|
+
__publicField$2(this, "salesChannelChangeMethodInput");
|
|
5043
|
+
__publicField$2(this, "salesChannelInput");
|
|
5044
|
+
__publicField$2(this, "applyChangesButton");
|
|
4842
5045
|
/**
|
|
4843
5046
|
* Confirmation modal
|
|
4844
5047
|
*/
|
|
4845
|
-
__publicField$
|
|
4846
|
-
__publicField$
|
|
4847
|
-
__publicField$
|
|
4848
|
-
__publicField$
|
|
4849
|
-
__publicField$
|
|
5048
|
+
__publicField$2(this, "confirmModal");
|
|
5049
|
+
__publicField$2(this, "confirmModalApplyChangesButton");
|
|
5050
|
+
__publicField$2(this, "confirmModalLoadingSpinner");
|
|
5051
|
+
__publicField$2(this, "confirmModalSuccessHeader");
|
|
5052
|
+
__publicField$2(this, "confirmModalSuccessCloseButton");
|
|
4850
5053
|
this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
|
|
4851
5054
|
this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
|
|
4852
5055
|
this.manufacturerDropdown = this.changeManufacturerRow.locator(".sw-select__selection");
|
|
@@ -4896,6 +5099,83 @@ class ProductBulkEdit {
|
|
|
4896
5099
|
}
|
|
4897
5100
|
}
|
|
4898
5101
|
|
|
5102
|
+
var __defProp$1 = Object.defineProperty;
|
|
5103
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5104
|
+
var __publicField$1 = (obj, key, value) => {
|
|
5105
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5106
|
+
return value;
|
|
5107
|
+
};
|
|
5108
|
+
class CustomerBulkEdit {
|
|
5109
|
+
constructor(page) {
|
|
5110
|
+
this.page = page;
|
|
5111
|
+
//General
|
|
5112
|
+
__publicField$1(this, "applyChangesButton");
|
|
5113
|
+
__publicField$1(this, "filtersResultPopoverItemList");
|
|
5114
|
+
//Account
|
|
5115
|
+
__publicField$1(this, "changeCustomerGroupCheckbox");
|
|
5116
|
+
__publicField$1(this, "customerGroupInput");
|
|
5117
|
+
__publicField$1(this, "changeAccountStatusCheckbox");
|
|
5118
|
+
__publicField$1(this, "accountStatusInput");
|
|
5119
|
+
__publicField$1(this, "changeLanguageCheckbox");
|
|
5120
|
+
__publicField$1(this, "changeLanguageInput");
|
|
5121
|
+
__publicField$1(this, "replyToCustomerGroupRequest");
|
|
5122
|
+
__publicField$1(this, "replyToCustomerGroupRequestInput");
|
|
5123
|
+
//Tags
|
|
5124
|
+
__publicField$1(this, "changeTagsCheckbox");
|
|
5125
|
+
__publicField$1(this, "changeTypeSelect");
|
|
5126
|
+
__publicField$1(this, "enterTagsSelect");
|
|
5127
|
+
//Custom fields
|
|
5128
|
+
__publicField$1(this, "customFieldCheckbox");
|
|
5129
|
+
__publicField$1(this, "customFieldInput");
|
|
5130
|
+
__publicField$1(this, "customFieldArrowRightButton");
|
|
5131
|
+
/**
|
|
5132
|
+
* Confirmation modal
|
|
5133
|
+
*/
|
|
5134
|
+
__publicField$1(this, "confirmModal");
|
|
5135
|
+
__publicField$1(this, "confirmModalApplyChangesButton");
|
|
5136
|
+
__publicField$1(this, "confirmModalSuccessHeader");
|
|
5137
|
+
__publicField$1(this, "confirmModalSuccessCloseButton");
|
|
5138
|
+
this.applyChangesButton = page.getByRole("button", { name: "Apply changes" });
|
|
5139
|
+
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
5140
|
+
this.changeCustomerGroupCheckbox = page.getByRole("checkbox", { name: "Change: Customer group" });
|
|
5141
|
+
this.customerGroupInput = page.locator(".sw-select").filter({ hasText: "Select customer group..." }).locator(".sw-select__selection");
|
|
5142
|
+
const accountStatus = page.locator(".sw-bulk-edit-change-field-active");
|
|
5143
|
+
this.changeAccountStatusCheckbox = accountStatus.getByRole("checkbox", { name: "Change: Account status" });
|
|
5144
|
+
this.accountStatusInput = accountStatus.locator(".sw-field--switch__input");
|
|
5145
|
+
this.changeLanguageCheckbox = page.getByRole("checkbox", { name: "Change: Language" });
|
|
5146
|
+
this.changeLanguageInput = page.locator(".sw-select").filter({ hasText: "Select language..." }).locator(".sw-select__selection");
|
|
5147
|
+
this.replyToCustomerGroupRequest = page.getByRole("checkbox", { name: "Reply to: Customer group request" });
|
|
5148
|
+
this.replyToCustomerGroupRequestInput = page.locator(".sw-select").filter({ hasText: "Select customer group request reply..." }).locator(".sw-select__selection");
|
|
5149
|
+
const changeTag = page.locator(".sw-bulk-edit-change-field-tags");
|
|
5150
|
+
this.changeTagsCheckbox = changeTag.getByRole("checkbox", { name: "Change: Tags" });
|
|
5151
|
+
this.changeTypeSelect = changeTag.locator(".sw-bulk-edit-change-type__selection");
|
|
5152
|
+
this.enterTagsSelect = changeTag.locator(".sw-entity-multi-select");
|
|
5153
|
+
const customFields = page.locator(".sw-bulk-edit__custom-fields");
|
|
5154
|
+
this.customFieldArrowRightButton = customFields.locator(".sw-tabs__arrow--right");
|
|
5155
|
+
this.customFieldCheckbox = customFields.getByRole("checkbox");
|
|
5156
|
+
this.customFieldInput = customFields.getByRole("textbox");
|
|
5157
|
+
this.confirmModal = page.locator(".sw-bulk-edit-save-modal");
|
|
5158
|
+
this.confirmModalApplyChangesButton = this.confirmModal.getByRole("button", { name: "Apply changes" });
|
|
5159
|
+
this.confirmModalSuccessHeader = this.confirmModal.getByRole("heading", { name: "Bulk edit - Success" });
|
|
5160
|
+
const footer = this.confirmModal.locator(".sw-modal__footer");
|
|
5161
|
+
this.confirmModalSuccessCloseButton = footer.getByRole("button", { name: "Close" });
|
|
5162
|
+
}
|
|
5163
|
+
async getPageHeadline(customerCount) {
|
|
5164
|
+
return this.page.getByRole("heading", { name: `Bulk edit: ${customerCount} customer` });
|
|
5165
|
+
}
|
|
5166
|
+
async getCustomFieldInputByName(customFieldName) {
|
|
5167
|
+
return this.page.getByRole("textbox", { name: customFieldName });
|
|
5168
|
+
}
|
|
5169
|
+
async getCustomFieldLinkByName(customFieldSetName) {
|
|
5170
|
+
return this.page.locator("a").filter({
|
|
5171
|
+
hasText: `${customFieldSetName}`
|
|
5172
|
+
});
|
|
5173
|
+
}
|
|
5174
|
+
url() {
|
|
5175
|
+
return "#/sw/bulk/edit/customer";
|
|
5176
|
+
}
|
|
5177
|
+
}
|
|
5178
|
+
|
|
4899
5179
|
const AdminPageObjects = {
|
|
4900
5180
|
ProductDetail,
|
|
4901
5181
|
OrderDetail,
|
|
@@ -4924,7 +5204,8 @@ const AdminPageObjects = {
|
|
|
4924
5204
|
ManufacturerDetail,
|
|
4925
5205
|
ManufacturerListing,
|
|
4926
5206
|
ProductListing,
|
|
4927
|
-
ProductBulkEdit
|
|
5207
|
+
ProductBulkEdit,
|
|
5208
|
+
CustomerBulkEdit
|
|
4928
5209
|
};
|
|
4929
5210
|
const test$5 = test$e.extend({
|
|
4930
5211
|
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
@@ -5010,6 +5291,9 @@ const test$5 = test$e.extend({
|
|
|
5010
5291
|
},
|
|
5011
5292
|
AdminProductBulkEdit: async ({ AdminPage }, use) => {
|
|
5012
5293
|
await use(new ProductBulkEdit(AdminPage));
|
|
5294
|
+
},
|
|
5295
|
+
AdminCustomerBulkEdit: async ({ AdminPage }, use) => {
|
|
5296
|
+
await use(new CustomerBulkEdit(AdminPage));
|
|
5013
5297
|
}
|
|
5014
5298
|
});
|
|
5015
5299
|
|
|
@@ -5765,12 +6049,82 @@ const BulkEditProducts = test$e.extend({
|
|
|
5765
6049
|
}
|
|
5766
6050
|
});
|
|
5767
6051
|
|
|
6052
|
+
const BulkEditCustomers = test$e.extend({
|
|
6053
|
+
BulkEditCustomers: async ({ ShopAdmin, AdminCustomerListing, AdminCustomerBulkEdit }, use) => {
|
|
6054
|
+
const task = (customers, accountData, tagData, customFieldData) => {
|
|
6055
|
+
return async function BulkEditCustomers2() {
|
|
6056
|
+
const customerCount = customers.length;
|
|
6057
|
+
for (const customer of customers) {
|
|
6058
|
+
const customerLineItem = await AdminCustomerListing.getCustomerByEmail(customer.email);
|
|
6059
|
+
await customerLineItem.customerCheckbox.click();
|
|
6060
|
+
}
|
|
6061
|
+
await AdminCustomerListing.bulkEditButton.click();
|
|
6062
|
+
await ShopAdmin.expects(AdminCustomerListing.bulkEditModal).toBeVisible();
|
|
6063
|
+
const modalTitle = await AdminCustomerListing.getCustomerBulkEditModalTitle(customerCount);
|
|
6064
|
+
await ShopAdmin.expects(modalTitle).toBeVisible();
|
|
6065
|
+
await ShopAdmin.expects(AdminCustomerListing.modalHeaderCheckbox).toBeChecked();
|
|
6066
|
+
await AdminCustomerListing.startBulkEditButton.click();
|
|
6067
|
+
await AdminCustomerListing.bulkEditModal.waitFor({ state: "hidden" });
|
|
6068
|
+
const bulkEditPageHeadline = await AdminCustomerBulkEdit.getPageHeadline(customerCount);
|
|
6069
|
+
await ShopAdmin.expects(bulkEditPageHeadline).toBeVisible();
|
|
6070
|
+
if (accountData) {
|
|
6071
|
+
if (accountData.customerGroup) {
|
|
6072
|
+
await AdminCustomerBulkEdit.changeCustomerGroupCheckbox.click();
|
|
6073
|
+
await AdminCustomerBulkEdit.customerGroupInput.click();
|
|
6074
|
+
await AdminCustomerBulkEdit.filtersResultPopoverItemList.getByText(accountData.customerGroup).click();
|
|
6075
|
+
}
|
|
6076
|
+
if (accountData.accountStatus !== void 0) {
|
|
6077
|
+
await AdminCustomerBulkEdit.changeAccountStatusCheckbox.click();
|
|
6078
|
+
if (accountData.accountStatus) {
|
|
6079
|
+
await AdminCustomerBulkEdit.accountStatusInput.click();
|
|
6080
|
+
}
|
|
6081
|
+
}
|
|
6082
|
+
if (accountData.language) {
|
|
6083
|
+
await AdminCustomerBulkEdit.changeLanguageCheckbox.click();
|
|
6084
|
+
await AdminCustomerBulkEdit.changeLanguageInput.click();
|
|
6085
|
+
await AdminCustomerBulkEdit.page.getByText(accountData.language).click();
|
|
6086
|
+
}
|
|
6087
|
+
if (accountData.replyToCustomerGroupRequest) {
|
|
6088
|
+
await AdminCustomerBulkEdit.replyToCustomerGroupRequest.click();
|
|
6089
|
+
await AdminCustomerBulkEdit.replyToCustomerGroupRequestInput.click();
|
|
6090
|
+
await AdminCustomerBulkEdit.filtersResultPopoverItemList.getByText(accountData.replyToCustomerGroupRequest).click();
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
6093
|
+
if (tagData) {
|
|
6094
|
+
await AdminCustomerBulkEdit.changeTagsCheckbox.click();
|
|
6095
|
+
await AdminCustomerBulkEdit.changeTypeSelect.click();
|
|
6096
|
+
await AdminCustomerBulkEdit.page.getByText(tagData.changeType).click();
|
|
6097
|
+
for (const tag of tagData.tags) {
|
|
6098
|
+
await AdminCustomerBulkEdit.enterTagsSelect.click();
|
|
6099
|
+
await AdminCustomerBulkEdit.page.getByText(tag).click();
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
if (customFieldData) {
|
|
6103
|
+
const customFieldSet = await AdminCustomerBulkEdit.getCustomFieldLinkByName(customFieldData.customFieldSetName);
|
|
6104
|
+
while (!await customFieldSet.isVisible()) {
|
|
6105
|
+
await AdminCustomerBulkEdit.customFieldArrowRightButton.click();
|
|
6106
|
+
}
|
|
6107
|
+
await customFieldSet.click();
|
|
6108
|
+
await AdminCustomerBulkEdit.customFieldCheckbox.click();
|
|
6109
|
+
await AdminCustomerBulkEdit.customFieldInput.fill(customFieldData.customFieldValue);
|
|
6110
|
+
}
|
|
6111
|
+
await AdminCustomerBulkEdit.applyChangesButton.click();
|
|
6112
|
+
await AdminCustomerBulkEdit.confirmModalApplyChangesButton.click();
|
|
6113
|
+
await ShopAdmin.expects(AdminCustomerBulkEdit.confirmModalSuccessHeader).toBeVisible();
|
|
6114
|
+
await AdminCustomerBulkEdit.confirmModalSuccessCloseButton.click();
|
|
6115
|
+
};
|
|
6116
|
+
};
|
|
6117
|
+
await use(task);
|
|
6118
|
+
}
|
|
6119
|
+
});
|
|
6120
|
+
|
|
5768
6121
|
const test$3 = mergeTests(
|
|
5769
6122
|
SaveProduct,
|
|
5770
6123
|
ExpectNotification,
|
|
5771
6124
|
CreateLinkTypeCategory,
|
|
5772
6125
|
SetSystemConfigValues,
|
|
5773
|
-
BulkEditProducts
|
|
6126
|
+
BulkEditProducts,
|
|
6127
|
+
BulkEditCustomers
|
|
5774
6128
|
);
|
|
5775
6129
|
|
|
5776
6130
|
const Login = test$e.extend({
|