@shopware-ag/acceptance-test-suite 8.0.1 → 8.2.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 +148 -2
- package/dist/index.d.ts +148 -2
- package/dist/index.mjs +1013 -622
- 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$P = Object.defineProperty;
|
|
389
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __publicField$P = (obj, key, value) => {
|
|
391
|
+
__defNormalProp$P(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$P(this, "context");
|
|
397
|
+
__publicField$P(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$P(_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$N(_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$O = Object.defineProperty;
|
|
500
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
501
|
+
var __publicField$O = (obj, key, value) => {
|
|
502
|
+
__defNormalProp$O(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$O(this, "context");
|
|
508
|
+
__publicField$O(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$O(_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$N = Object.defineProperty;
|
|
574
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
575
|
+
var __publicField$N = (obj, key, value) => {
|
|
576
|
+
__defNormalProp$N(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$N(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$M = Object.defineProperty;
|
|
879
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
880
|
+
var __publicField$M = (obj, key, value) => {
|
|
881
|
+
__defNormalProp$M(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$M(this, "page");
|
|
887
|
+
__publicField$M(this, "name");
|
|
888
|
+
__publicField$M(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$L = Object.defineProperty;
|
|
938
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
939
|
+
var __publicField$L = (obj, key, value) => {
|
|
940
|
+
__defNormalProp$L(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$L(this, "AdminApiClient");
|
|
946
|
+
__publicField$L(this, "IdProvider");
|
|
947
|
+
__publicField$L(this, "namePrefix", "Test-");
|
|
948
|
+
__publicField$L(this, "nameSuffix", "");
|
|
949
|
+
__publicField$L(this, "defaultSalesChannel");
|
|
950
|
+
__publicField$L(this, "defaultTaxId");
|
|
951
|
+
__publicField$L(this, "defaultCurrencyId");
|
|
952
|
+
__publicField$L(this, "defaultCategoryId");
|
|
953
|
+
__publicField$L(this, "defaultLanguageId");
|
|
954
|
+
__publicField$L(this, "defaultCountryId");
|
|
955
|
+
__publicField$L(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$L(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,19 +966,25 @@ class TestDataService {
|
|
|
966
966
|
*
|
|
967
967
|
* @private
|
|
968
968
|
*/
|
|
969
|
-
__publicField$
|
|
969
|
+
__publicField$L(this, "highPriorityEntities", ["order", "product", "landing_page", "sales_channel_currency", "sales_channel_country"]);
|
|
970
970
|
/**
|
|
971
971
|
* A registry of all created records.
|
|
972
972
|
*
|
|
973
973
|
* @private
|
|
974
974
|
*/
|
|
975
|
-
__publicField$
|
|
975
|
+
__publicField$L(this, "createdRecords", []);
|
|
976
|
+
/**
|
|
977
|
+
* A registry of all created sales channel records.
|
|
978
|
+
*
|
|
979
|
+
* @private
|
|
980
|
+
*/
|
|
981
|
+
__publicField$L(this, "createdSalesChannelRecords", []);
|
|
976
982
|
/**
|
|
977
983
|
* Function that generates combinations from n number of arrays
|
|
978
984
|
* with m number of elements in them.
|
|
979
985
|
* @param array
|
|
980
986
|
*/
|
|
981
|
-
__publicField$
|
|
987
|
+
__publicField$L(this, "combineAll", (array) => {
|
|
982
988
|
const result = [];
|
|
983
989
|
const max = array.length - 1;
|
|
984
990
|
const helper = (tmpArray, i) => {
|
|
@@ -1542,6 +1548,21 @@ class TestDataService {
|
|
|
1542
1548
|
await this.clearCaches();
|
|
1543
1549
|
return systemConfigEntry;
|
|
1544
1550
|
}
|
|
1551
|
+
/**
|
|
1552
|
+
* Creates a random sales channel analytics entity
|
|
1553
|
+
*
|
|
1554
|
+
* @param overrides - Specific data overrides that will be applied to the sales channel analytics data struct.
|
|
1555
|
+
*/
|
|
1556
|
+
async createSalesChannelAnalytics(overrides = {}) {
|
|
1557
|
+
const basicSalesChannelAnalyticsStruct = this.getSalesChannelAnalyticsStruct(overrides);
|
|
1558
|
+
const response = await this.AdminApiClient.post("sales-channel-analytics?_response=detail", {
|
|
1559
|
+
data: basicSalesChannelAnalyticsStruct
|
|
1560
|
+
});
|
|
1561
|
+
expect(response.ok()).toBeTruthy();
|
|
1562
|
+
const { data: salesChannelAnalytics } = await response.json();
|
|
1563
|
+
this.addCreatedRecord("sales_channel_analytics", salesChannelAnalytics.id);
|
|
1564
|
+
return salesChannelAnalytics;
|
|
1565
|
+
}
|
|
1545
1566
|
/**
|
|
1546
1567
|
* Assigns a media resource as the download of a digital product.
|
|
1547
1568
|
*
|
|
@@ -1700,13 +1721,39 @@ class TestDataService {
|
|
|
1700
1721
|
async assignSalesChannelCurrency(salesChannelId, currencyId) {
|
|
1701
1722
|
const syncSalesChannelResponse = await this.AdminApiClient.post("./_action/sync", {
|
|
1702
1723
|
data: {
|
|
1703
|
-
"write-sales-channel": {
|
|
1704
|
-
entity: "
|
|
1724
|
+
"write-sales-channel-currency": {
|
|
1725
|
+
entity: "sales_channel_currency",
|
|
1726
|
+
action: "upsert",
|
|
1727
|
+
payload: [
|
|
1728
|
+
{
|
|
1729
|
+
salesChannelId,
|
|
1730
|
+
currencyId
|
|
1731
|
+
}
|
|
1732
|
+
]
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
});
|
|
1736
|
+
expect(syncSalesChannelResponse.ok()).toBeTruthy();
|
|
1737
|
+
const { data: salesChannel } = await syncSalesChannelResponse.json();
|
|
1738
|
+
this.addCreatedRecord("sales_channel_currency", { salesChannelId, currencyId });
|
|
1739
|
+
return salesChannel;
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* Assigns a sales channel analytics entity to a sales channel.
|
|
1743
|
+
*
|
|
1744
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
1745
|
+
* @param salesChannelAnalyticsId - The uuid of the sales channel analytics entity.
|
|
1746
|
+
*/
|
|
1747
|
+
async assignSalesChannelAnalytics(salesChannelId, salesChannelAnalyticsId) {
|
|
1748
|
+
const syncSalesChannelResponse = await this.AdminApiClient.post("./_action/sync", {
|
|
1749
|
+
data: {
|
|
1750
|
+
"write-sales-channel-analytics": {
|
|
1751
|
+
entity: "sales_channel_analytics",
|
|
1705
1752
|
action: "upsert",
|
|
1706
1753
|
payload: [
|
|
1707
1754
|
{
|
|
1708
|
-
id: salesChannelId,
|
|
1709
|
-
|
|
1755
|
+
salesChannel: { id: salesChannelId },
|
|
1756
|
+
id: salesChannelAnalyticsId
|
|
1710
1757
|
}
|
|
1711
1758
|
]
|
|
1712
1759
|
}
|
|
@@ -1714,6 +1761,7 @@ class TestDataService {
|
|
|
1714
1761
|
});
|
|
1715
1762
|
expect(syncSalesChannelResponse.ok()).toBeTruthy();
|
|
1716
1763
|
const { data: salesChannel } = await syncSalesChannelResponse.json();
|
|
1764
|
+
this.addCreatedSalesChannelRecord(salesChannelId, "analyticsId");
|
|
1717
1765
|
return salesChannel;
|
|
1718
1766
|
}
|
|
1719
1767
|
/**
|
|
@@ -1725,13 +1773,13 @@ class TestDataService {
|
|
|
1725
1773
|
async assignSalesChannelCountry(salesChannelId, countryId) {
|
|
1726
1774
|
const syncSalesChannelResponse = await this.AdminApiClient.post("./_action/sync", {
|
|
1727
1775
|
data: {
|
|
1728
|
-
"write-sales-channel": {
|
|
1729
|
-
entity: "
|
|
1776
|
+
"write-sales-channel-country": {
|
|
1777
|
+
entity: "sales_channel_country",
|
|
1730
1778
|
action: "upsert",
|
|
1731
1779
|
payload: [
|
|
1732
1780
|
{
|
|
1733
|
-
|
|
1734
|
-
|
|
1781
|
+
salesChannelId,
|
|
1782
|
+
countryId
|
|
1735
1783
|
}
|
|
1736
1784
|
]
|
|
1737
1785
|
}
|
|
@@ -1739,6 +1787,7 @@ class TestDataService {
|
|
|
1739
1787
|
});
|
|
1740
1788
|
expect(syncSalesChannelResponse.ok()).toBeTruthy();
|
|
1741
1789
|
const { data: salesChannel } = await syncSalesChannelResponse.json();
|
|
1790
|
+
this.addCreatedRecord("sales_channel_country", { salesChannelId, countryId });
|
|
1742
1791
|
return salesChannel;
|
|
1743
1792
|
}
|
|
1744
1793
|
/**
|
|
@@ -1994,6 +2043,16 @@ class TestDataService {
|
|
|
1994
2043
|
this.createdRecords.push({ resource: res, payload });
|
|
1995
2044
|
}
|
|
1996
2045
|
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Adds a sales channel related property to the registry of created sales channel records.
|
|
2048
|
+
* The property added to the registry will be overridden with null value by the cleanup call.
|
|
2049
|
+
*
|
|
2050
|
+
* @param salesChannelId - The sales channel id where the property pair is located
|
|
2051
|
+
* @param field - The database field which has to be overridden
|
|
2052
|
+
*/
|
|
2053
|
+
addCreatedSalesChannelRecord(salesChannelId, field) {
|
|
2054
|
+
this.createdSalesChannelRecords.push({ salesChannelId, field });
|
|
2055
|
+
}
|
|
1997
2056
|
/**
|
|
1998
2057
|
* Set the configuration of automated data clean up.
|
|
1999
2058
|
* If set to "true" the data service will delete all entities created by it.
|
|
@@ -2010,8 +2069,18 @@ class TestDataService {
|
|
|
2010
2069
|
if (!this.shouldCleanUp) {
|
|
2011
2070
|
return null;
|
|
2012
2071
|
}
|
|
2013
|
-
const priorityDeleteOperations = {};
|
|
2014
2072
|
const deleteOperations = {};
|
|
2073
|
+
const priorityDeleteOperations = {};
|
|
2074
|
+
if (this.createdSalesChannelRecords) {
|
|
2075
|
+
for (const salesChannelRecord of this.createdSalesChannelRecords) {
|
|
2076
|
+
const salesChannelResponse = await this.AdminApiClient.patch(`sales-channel/${salesChannelRecord.salesChannelId}`, {
|
|
2077
|
+
data: {
|
|
2078
|
+
[salesChannelRecord.field]: null
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
expect(salesChannelResponse.ok()).toBeTruthy();
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2015
2084
|
this.createdRecords.forEach((record) => {
|
|
2016
2085
|
if (this.highPriorityEntities.includes(record.resource)) {
|
|
2017
2086
|
if (!priorityDeleteOperations[`delete-${record.resource}`]) {
|
|
@@ -2652,6 +2721,18 @@ class TestDataService {
|
|
|
2652
2721
|
};
|
|
2653
2722
|
return Object.assign({}, basicCustomerGroup, overrides);
|
|
2654
2723
|
}
|
|
2724
|
+
getSalesChannelAnalyticsStruct(overrides = {}) {
|
|
2725
|
+
const salesChannelAnalyticsUuid = this.IdProvider.getIdPair().uuid;
|
|
2726
|
+
const trackingId = this.IdProvider.getIdPair().id;
|
|
2727
|
+
const basicSalesChannelAnalyticsStruct = {
|
|
2728
|
+
id: salesChannelAnalyticsUuid,
|
|
2729
|
+
trackingId,
|
|
2730
|
+
active: true,
|
|
2731
|
+
trackOrders: false,
|
|
2732
|
+
anonymizeIp: true
|
|
2733
|
+
};
|
|
2734
|
+
return Object.assign({}, basicSalesChannelAnalyticsStruct, overrides);
|
|
2735
|
+
}
|
|
2655
2736
|
async clearCaches() {
|
|
2656
2737
|
await this.AdminApiClient.delete("_action/cache");
|
|
2657
2738
|
}
|
|
@@ -2673,16 +2754,16 @@ const test$8 = test$e.extend({
|
|
|
2673
2754
|
}
|
|
2674
2755
|
});
|
|
2675
2756
|
|
|
2676
|
-
var __defProp$
|
|
2677
|
-
var __defNormalProp$
|
|
2678
|
-
var __publicField$
|
|
2679
|
-
__defNormalProp$
|
|
2757
|
+
var __defProp$K = Object.defineProperty;
|
|
2758
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2759
|
+
var __publicField$K = (obj, key, value) => {
|
|
2760
|
+
__defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2680
2761
|
return value;
|
|
2681
2762
|
};
|
|
2682
2763
|
class IdProvider {
|
|
2683
2764
|
constructor(workerIndex, seed) {
|
|
2684
|
-
__publicField$
|
|
2685
|
-
__publicField$
|
|
2765
|
+
__publicField$K(this, "workerIndex");
|
|
2766
|
+
__publicField$K(this, "seed");
|
|
2686
2767
|
this.workerIndex = workerIndex;
|
|
2687
2768
|
this.seed = seed;
|
|
2688
2769
|
}
|
|
@@ -2756,32 +2837,32 @@ const test$7 = test$e.extend({
|
|
|
2756
2837
|
]
|
|
2757
2838
|
});
|
|
2758
2839
|
|
|
2759
|
-
var __defProp$
|
|
2760
|
-
var __defNormalProp$
|
|
2761
|
-
var __publicField$
|
|
2762
|
-
__defNormalProp$
|
|
2840
|
+
var __defProp$J = Object.defineProperty;
|
|
2841
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2842
|
+
var __publicField$J = (obj, key, value) => {
|
|
2843
|
+
__defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2763
2844
|
return value;
|
|
2764
2845
|
};
|
|
2765
2846
|
class Home {
|
|
2766
2847
|
constructor(page) {
|
|
2767
2848
|
this.page = page;
|
|
2768
|
-
__publicField$
|
|
2769
|
-
__publicField$
|
|
2770
|
-
__publicField$
|
|
2771
|
-
__publicField$
|
|
2772
|
-
__publicField$
|
|
2773
|
-
__publicField$
|
|
2774
|
-
__publicField$
|
|
2775
|
-
__publicField$
|
|
2776
|
-
__publicField$
|
|
2777
|
-
__publicField$
|
|
2778
|
-
__publicField$
|
|
2779
|
-
__publicField$
|
|
2780
|
-
__publicField$
|
|
2781
|
-
__publicField$
|
|
2782
|
-
__publicField$
|
|
2783
|
-
__publicField$
|
|
2784
|
-
__publicField$
|
|
2849
|
+
__publicField$J(this, "productImages");
|
|
2850
|
+
__publicField$J(this, "productListItems");
|
|
2851
|
+
__publicField$J(this, "languagesDropdown");
|
|
2852
|
+
__publicField$J(this, "currenciesDropdown");
|
|
2853
|
+
__publicField$J(this, "consentOnlyTechnicallyRequiredButton");
|
|
2854
|
+
__publicField$J(this, "consentConfigureButton");
|
|
2855
|
+
__publicField$J(this, "consentAcceptAllCookiesButton");
|
|
2856
|
+
__publicField$J(this, "consentCookiePreferences");
|
|
2857
|
+
__publicField$J(this, "consentCookiePermissionContent");
|
|
2858
|
+
__publicField$J(this, "consentDialog");
|
|
2859
|
+
__publicField$J(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
2860
|
+
__publicField$J(this, "consentDialogStatisticsCheckbox");
|
|
2861
|
+
__publicField$J(this, "consentDialogMarketingdCheckbox");
|
|
2862
|
+
__publicField$J(this, "consentDialogAcceptAllCookiesButton");
|
|
2863
|
+
__publicField$J(this, "consentDialogSaveButton");
|
|
2864
|
+
__publicField$J(this, "consentCookieBannerContainer");
|
|
2865
|
+
__publicField$J(this, "offcanvasBackdrop");
|
|
2785
2866
|
this.productImages = page.locator(".product-image-link");
|
|
2786
2867
|
this.productListItems = page.getByRole("listitem");
|
|
2787
2868
|
this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
|
|
@@ -2828,26 +2909,26 @@ class Home {
|
|
|
2828
2909
|
}
|
|
2829
2910
|
}
|
|
2830
2911
|
|
|
2831
|
-
var __defProp$
|
|
2832
|
-
var __defNormalProp$
|
|
2833
|
-
var __publicField$
|
|
2834
|
-
__defNormalProp$
|
|
2912
|
+
var __defProp$I = Object.defineProperty;
|
|
2913
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2914
|
+
var __publicField$I = (obj, key, value) => {
|
|
2915
|
+
__defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2835
2916
|
return value;
|
|
2836
2917
|
};
|
|
2837
2918
|
let ProductDetail$1 = class ProductDetail {
|
|
2838
2919
|
constructor(page) {
|
|
2839
2920
|
this.page = page;
|
|
2840
|
-
__publicField$
|
|
2841
|
-
__publicField$
|
|
2842
|
-
__publicField$
|
|
2843
|
-
__publicField$
|
|
2844
|
-
__publicField$
|
|
2845
|
-
__publicField$
|
|
2846
|
-
__publicField$
|
|
2847
|
-
__publicField$
|
|
2848
|
-
__publicField$
|
|
2849
|
-
__publicField$
|
|
2850
|
-
__publicField$
|
|
2921
|
+
__publicField$I(this, "addToCartButton");
|
|
2922
|
+
__publicField$I(this, "quantitySelect");
|
|
2923
|
+
__publicField$I(this, "productSingleImage");
|
|
2924
|
+
__publicField$I(this, "productSinglePrice");
|
|
2925
|
+
__publicField$I(this, "productPriceRangesRow");
|
|
2926
|
+
__publicField$I(this, "offCanvasCartTitle");
|
|
2927
|
+
__publicField$I(this, "offCanvasCart");
|
|
2928
|
+
__publicField$I(this, "offCanvasCartGoToCheckoutButton");
|
|
2929
|
+
__publicField$I(this, "offCanvasLineItemImages");
|
|
2930
|
+
__publicField$I(this, "offCanvasSummaryTotalPrice");
|
|
2931
|
+
__publicField$I(this, "offCanvas");
|
|
2851
2932
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2852
2933
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2853
2934
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2869,18 +2950,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2869
2950
|
}
|
|
2870
2951
|
};
|
|
2871
2952
|
|
|
2872
|
-
var __defProp$
|
|
2873
|
-
var __defNormalProp$
|
|
2874
|
-
var __publicField$
|
|
2875
|
-
__defNormalProp$
|
|
2953
|
+
var __defProp$H = Object.defineProperty;
|
|
2954
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2955
|
+
var __publicField$H = (obj, key, value) => {
|
|
2956
|
+
__defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2876
2957
|
return value;
|
|
2877
2958
|
};
|
|
2878
2959
|
class Category {
|
|
2879
2960
|
constructor(page) {
|
|
2880
2961
|
this.page = page;
|
|
2881
|
-
__publicField$
|
|
2882
|
-
__publicField$
|
|
2883
|
-
__publicField$
|
|
2962
|
+
__publicField$H(this, "sortingSelect");
|
|
2963
|
+
__publicField$H(this, "firstProductBuyButton");
|
|
2964
|
+
__publicField$H(this, "noProductsFoundAlert");
|
|
2884
2965
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2885
2966
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2886
2967
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2890,24 +2971,24 @@ class Category {
|
|
|
2890
2971
|
}
|
|
2891
2972
|
}
|
|
2892
2973
|
|
|
2893
|
-
var __defProp$
|
|
2894
|
-
var __defNormalProp$
|
|
2895
|
-
var __publicField$
|
|
2896
|
-
__defNormalProp$
|
|
2974
|
+
var __defProp$G = Object.defineProperty;
|
|
2975
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2976
|
+
var __publicField$G = (obj, key, value) => {
|
|
2977
|
+
__defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2897
2978
|
return value;
|
|
2898
2979
|
};
|
|
2899
2980
|
class CheckoutCart {
|
|
2900
2981
|
constructor(page) {
|
|
2901
2982
|
this.page = page;
|
|
2902
|
-
__publicField$
|
|
2903
|
-
__publicField$
|
|
2904
|
-
__publicField$
|
|
2905
|
-
__publicField$
|
|
2906
|
-
__publicField$
|
|
2907
|
-
__publicField$
|
|
2908
|
-
__publicField$
|
|
2909
|
-
__publicField$
|
|
2910
|
-
__publicField$
|
|
2983
|
+
__publicField$G(this, "headline");
|
|
2984
|
+
__publicField$G(this, "goToCheckoutButton");
|
|
2985
|
+
__publicField$G(this, "enterPromoInput");
|
|
2986
|
+
__publicField$G(this, "grandTotalPrice");
|
|
2987
|
+
__publicField$G(this, "emptyCartAlert");
|
|
2988
|
+
__publicField$G(this, "stockReachedAlert");
|
|
2989
|
+
__publicField$G(this, "cartLineItemImages");
|
|
2990
|
+
__publicField$G(this, "unitPriceInfo");
|
|
2991
|
+
__publicField$G(this, "cartQuantityNumber");
|
|
2911
2992
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2912
2993
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2913
2994
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -2948,25 +3029,25 @@ class CheckoutCart {
|
|
|
2948
3029
|
}
|
|
2949
3030
|
}
|
|
2950
3031
|
|
|
2951
|
-
var __defProp$
|
|
2952
|
-
var __defNormalProp$
|
|
2953
|
-
var __publicField$
|
|
2954
|
-
__defNormalProp$
|
|
3032
|
+
var __defProp$F = Object.defineProperty;
|
|
3033
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3034
|
+
var __publicField$F = (obj, key, value) => {
|
|
3035
|
+
__defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2955
3036
|
return value;
|
|
2956
3037
|
};
|
|
2957
3038
|
class OffCanvasCart {
|
|
2958
3039
|
constructor(page) {
|
|
2959
3040
|
this.page = page;
|
|
2960
|
-
__publicField$
|
|
2961
|
-
__publicField$
|
|
2962
|
-
__publicField$
|
|
2963
|
-
__publicField$
|
|
2964
|
-
__publicField$
|
|
2965
|
-
__publicField$
|
|
2966
|
-
__publicField$
|
|
2967
|
-
__publicField$
|
|
2968
|
-
__publicField$
|
|
2969
|
-
__publicField$
|
|
3041
|
+
__publicField$F(this, "headline");
|
|
3042
|
+
__publicField$F(this, "itemCount");
|
|
3043
|
+
__publicField$F(this, "goToCheckoutButton");
|
|
3044
|
+
__publicField$F(this, "goToCartButton");
|
|
3045
|
+
__publicField$F(this, "continueShoppingButton");
|
|
3046
|
+
__publicField$F(this, "enterPromoInput");
|
|
3047
|
+
__publicField$F(this, "submitDiscountButton");
|
|
3048
|
+
__publicField$F(this, "subTotalPrice");
|
|
3049
|
+
__publicField$F(this, "shippingCosts");
|
|
3050
|
+
__publicField$F(this, "cartQuantityNumber");
|
|
2970
3051
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2971
3052
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
2972
3053
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -3008,36 +3089,36 @@ class OffCanvasCart {
|
|
|
3008
3089
|
}
|
|
3009
3090
|
}
|
|
3010
3091
|
|
|
3011
|
-
var __defProp$
|
|
3012
|
-
var __defNormalProp$
|
|
3013
|
-
var __publicField$
|
|
3014
|
-
__defNormalProp$
|
|
3092
|
+
var __defProp$E = Object.defineProperty;
|
|
3093
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3094
|
+
var __publicField$E = (obj, key, value) => {
|
|
3095
|
+
__defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3015
3096
|
return value;
|
|
3016
3097
|
};
|
|
3017
3098
|
class CheckoutConfirm {
|
|
3018
3099
|
constructor(page) {
|
|
3019
3100
|
this.page = page;
|
|
3020
|
-
__publicField$
|
|
3021
|
-
__publicField$
|
|
3022
|
-
__publicField$
|
|
3023
|
-
__publicField$
|
|
3024
|
-
__publicField$
|
|
3025
|
-
__publicField$
|
|
3101
|
+
__publicField$E(this, "headline");
|
|
3102
|
+
__publicField$E(this, "termsAndConditionsCheckbox");
|
|
3103
|
+
__publicField$E(this, "immediateAccessToDigitalProductCheckbox");
|
|
3104
|
+
__publicField$E(this, "grandTotalPrice");
|
|
3105
|
+
__publicField$E(this, "taxPrice");
|
|
3106
|
+
__publicField$E(this, "submitOrderButton");
|
|
3026
3107
|
/**
|
|
3027
3108
|
* Payment options
|
|
3028
3109
|
*/
|
|
3029
|
-
__publicField$
|
|
3030
|
-
__publicField$
|
|
3031
|
-
__publicField$
|
|
3110
|
+
__publicField$E(this, "paymentCashOnDelivery");
|
|
3111
|
+
__publicField$E(this, "paymentPaidInAdvance");
|
|
3112
|
+
__publicField$E(this, "paymentInvoice");
|
|
3032
3113
|
/**
|
|
3033
3114
|
* Shipping options
|
|
3034
3115
|
*/
|
|
3035
|
-
__publicField$
|
|
3036
|
-
__publicField$
|
|
3116
|
+
__publicField$E(this, "shippingStandard");
|
|
3117
|
+
__publicField$E(this, "shippingExpress");
|
|
3037
3118
|
/**
|
|
3038
3119
|
* Product details
|
|
3039
3120
|
*/
|
|
3040
|
-
__publicField$
|
|
3121
|
+
__publicField$E(this, "cartLineItemImages");
|
|
3041
3122
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3042
3123
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3043
3124
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3056,21 +3137,21 @@ class CheckoutConfirm {
|
|
|
3056
3137
|
}
|
|
3057
3138
|
}
|
|
3058
3139
|
|
|
3059
|
-
var __defProp$
|
|
3060
|
-
var __defNormalProp$
|
|
3061
|
-
var __publicField$
|
|
3062
|
-
__defNormalProp$
|
|
3140
|
+
var __defProp$D = Object.defineProperty;
|
|
3141
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3142
|
+
var __publicField$D = (obj, key, value) => {
|
|
3143
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3063
3144
|
return value;
|
|
3064
3145
|
};
|
|
3065
3146
|
class CheckoutFinish {
|
|
3066
3147
|
constructor(page) {
|
|
3067
3148
|
this.page = page;
|
|
3068
|
-
__publicField$
|
|
3069
|
-
__publicField$
|
|
3070
|
-
__publicField$
|
|
3071
|
-
__publicField$
|
|
3072
|
-
__publicField$
|
|
3073
|
-
__publicField$
|
|
3149
|
+
__publicField$D(this, "headline");
|
|
3150
|
+
__publicField$D(this, "orderNumberText");
|
|
3151
|
+
__publicField$D(this, "grandTotalPrice");
|
|
3152
|
+
__publicField$D(this, "taxPrice");
|
|
3153
|
+
__publicField$D(this, "cartLineItemImages");
|
|
3154
|
+
__publicField$D(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3074
3155
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3075
3156
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3076
3157
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3099,16 +3180,16 @@ class CheckoutFinish {
|
|
|
3099
3180
|
}
|
|
3100
3181
|
}
|
|
3101
3182
|
|
|
3102
|
-
var __defProp$
|
|
3103
|
-
var __defNormalProp$
|
|
3104
|
-
var __publicField$
|
|
3105
|
-
__defNormalProp$
|
|
3183
|
+
var __defProp$C = Object.defineProperty;
|
|
3184
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3185
|
+
var __publicField$C = (obj, key, value) => {
|
|
3186
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3106
3187
|
return value;
|
|
3107
3188
|
};
|
|
3108
3189
|
class CheckoutRegister {
|
|
3109
3190
|
constructor(page) {
|
|
3110
3191
|
this.page = page;
|
|
3111
|
-
__publicField$
|
|
3192
|
+
__publicField$C(this, "cartLineItemImages");
|
|
3112
3193
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3113
3194
|
}
|
|
3114
3195
|
url() {
|
|
@@ -3116,23 +3197,23 @@ class CheckoutRegister {
|
|
|
3116
3197
|
}
|
|
3117
3198
|
}
|
|
3118
3199
|
|
|
3119
|
-
var __defProp$
|
|
3120
|
-
var __defNormalProp$
|
|
3121
|
-
var __publicField$
|
|
3122
|
-
__defNormalProp$
|
|
3200
|
+
var __defProp$B = Object.defineProperty;
|
|
3201
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3202
|
+
var __publicField$B = (obj, key, value) => {
|
|
3203
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3123
3204
|
return value;
|
|
3124
3205
|
};
|
|
3125
3206
|
class Account {
|
|
3126
3207
|
constructor(page) {
|
|
3127
3208
|
this.page = page;
|
|
3128
|
-
__publicField$
|
|
3129
|
-
__publicField$
|
|
3130
|
-
__publicField$
|
|
3131
|
-
__publicField$
|
|
3132
|
-
__publicField$
|
|
3133
|
-
__publicField$
|
|
3134
|
-
__publicField$
|
|
3135
|
-
__publicField$
|
|
3209
|
+
__publicField$B(this, "headline");
|
|
3210
|
+
__publicField$B(this, "personalDataCardTitle");
|
|
3211
|
+
__publicField$B(this, "paymentMethodCardTitle");
|
|
3212
|
+
__publicField$B(this, "billingAddressCardTitle");
|
|
3213
|
+
__publicField$B(this, "shippingAddressCardTitle");
|
|
3214
|
+
__publicField$B(this, "newsletterCheckbox");
|
|
3215
|
+
__publicField$B(this, "newsletterRegistrationSuccessMessage");
|
|
3216
|
+
__publicField$B(this, "customerGroupRequestMessage");
|
|
3136
3217
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3137
3218
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3138
3219
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3150,37 +3231,37 @@ class Account {
|
|
|
3150
3231
|
}
|
|
3151
3232
|
}
|
|
3152
3233
|
|
|
3153
|
-
var __defProp$
|
|
3154
|
-
var __defNormalProp$
|
|
3155
|
-
var __publicField$
|
|
3156
|
-
__defNormalProp$
|
|
3234
|
+
var __defProp$A = Object.defineProperty;
|
|
3235
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3236
|
+
var __publicField$A = (obj, key, value) => {
|
|
3237
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3157
3238
|
return value;
|
|
3158
3239
|
};
|
|
3159
3240
|
class AccountLogin {
|
|
3160
3241
|
constructor(page) {
|
|
3161
3242
|
this.page = page;
|
|
3162
|
-
__publicField$
|
|
3163
|
-
__publicField$
|
|
3164
|
-
__publicField$
|
|
3165
|
-
__publicField$
|
|
3166
|
-
__publicField$
|
|
3243
|
+
__publicField$A(this, "emailInput");
|
|
3244
|
+
__publicField$A(this, "passwordInput");
|
|
3245
|
+
__publicField$A(this, "loginButton");
|
|
3246
|
+
__publicField$A(this, "logoutLink");
|
|
3247
|
+
__publicField$A(this, "successAlert");
|
|
3167
3248
|
// Inputs for registration
|
|
3168
|
-
__publicField$
|
|
3169
|
-
__publicField$
|
|
3170
|
-
__publicField$
|
|
3171
|
-
__publicField$
|
|
3172
|
-
__publicField$
|
|
3173
|
-
__publicField$
|
|
3174
|
-
__publicField$
|
|
3175
|
-
__publicField$
|
|
3176
|
-
__publicField$
|
|
3177
|
-
__publicField$
|
|
3178
|
-
__publicField$
|
|
3179
|
-
__publicField$
|
|
3180
|
-
__publicField$
|
|
3181
|
-
__publicField$
|
|
3182
|
-
__publicField$
|
|
3183
|
-
__publicField$
|
|
3249
|
+
__publicField$A(this, "personalFormArea");
|
|
3250
|
+
__publicField$A(this, "billingAddressFormArea");
|
|
3251
|
+
__publicField$A(this, "accountTypeSelect");
|
|
3252
|
+
__publicField$A(this, "salutationSelect");
|
|
3253
|
+
__publicField$A(this, "firstNameInput");
|
|
3254
|
+
__publicField$A(this, "lastNameInput");
|
|
3255
|
+
__publicField$A(this, "companyInput");
|
|
3256
|
+
__publicField$A(this, "departmentInput");
|
|
3257
|
+
__publicField$A(this, "vatRegNoInput");
|
|
3258
|
+
__publicField$A(this, "registerEmailInput");
|
|
3259
|
+
__publicField$A(this, "registerPasswordInput");
|
|
3260
|
+
__publicField$A(this, "streetAddressInput");
|
|
3261
|
+
__publicField$A(this, "cityInput");
|
|
3262
|
+
__publicField$A(this, "countryInput");
|
|
3263
|
+
__publicField$A(this, "postalCodeInput");
|
|
3264
|
+
__publicField$A(this, "registerButton");
|
|
3184
3265
|
this.emailInput = page.getByLabel("Your email address");
|
|
3185
3266
|
this.passwordInput = page.getByLabel("Your password");
|
|
3186
3267
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -3209,29 +3290,29 @@ class AccountLogin {
|
|
|
3209
3290
|
}
|
|
3210
3291
|
}
|
|
3211
3292
|
|
|
3212
|
-
var __defProp$
|
|
3213
|
-
var __defNormalProp$
|
|
3214
|
-
var __publicField$
|
|
3215
|
-
__defNormalProp$
|
|
3293
|
+
var __defProp$z = Object.defineProperty;
|
|
3294
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3295
|
+
var __publicField$z = (obj, key, value) => {
|
|
3296
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3216
3297
|
return value;
|
|
3217
3298
|
};
|
|
3218
3299
|
class AccountProfile {
|
|
3219
3300
|
constructor(page) {
|
|
3220
3301
|
this.page = page;
|
|
3221
|
-
__publicField$
|
|
3222
|
-
__publicField$
|
|
3223
|
-
__publicField$
|
|
3224
|
-
__publicField$
|
|
3225
|
-
__publicField$
|
|
3226
|
-
__publicField$
|
|
3227
|
-
__publicField$
|
|
3228
|
-
__publicField$
|
|
3229
|
-
__publicField$
|
|
3230
|
-
__publicField$
|
|
3231
|
-
__publicField$
|
|
3232
|
-
__publicField$
|
|
3233
|
-
__publicField$
|
|
3234
|
-
__publicField$
|
|
3302
|
+
__publicField$z(this, "salutationSelect");
|
|
3303
|
+
__publicField$z(this, "firstNameInput");
|
|
3304
|
+
__publicField$z(this, "lastNameInput");
|
|
3305
|
+
__publicField$z(this, "saveProfileButton");
|
|
3306
|
+
__publicField$z(this, "changeEmailButton");
|
|
3307
|
+
__publicField$z(this, "emailAddressInput");
|
|
3308
|
+
__publicField$z(this, "emailAddressConfirmInput");
|
|
3309
|
+
__publicField$z(this, "emailConfirmPasswordInput");
|
|
3310
|
+
__publicField$z(this, "saveEmailAddressButton");
|
|
3311
|
+
__publicField$z(this, "changePasswordButton");
|
|
3312
|
+
__publicField$z(this, "newPasswordInput");
|
|
3313
|
+
__publicField$z(this, "newPasswordConfirmInput");
|
|
3314
|
+
__publicField$z(this, "currentPasswordInput");
|
|
3315
|
+
__publicField$z(this, "saveNewPasswordButton");
|
|
3235
3316
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
3236
3317
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
3237
3318
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -3252,22 +3333,22 @@ class AccountProfile {
|
|
|
3252
3333
|
}
|
|
3253
3334
|
}
|
|
3254
3335
|
|
|
3255
|
-
var __defProp$
|
|
3256
|
-
var __defNormalProp$
|
|
3257
|
-
var __publicField$
|
|
3258
|
-
__defNormalProp$
|
|
3336
|
+
var __defProp$y = Object.defineProperty;
|
|
3337
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3338
|
+
var __publicField$y = (obj, key, value) => {
|
|
3339
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3259
3340
|
return value;
|
|
3260
3341
|
};
|
|
3261
3342
|
class AccountOrder {
|
|
3262
3343
|
constructor(page) {
|
|
3263
3344
|
this.page = page;
|
|
3264
|
-
__publicField$
|
|
3265
|
-
__publicField$
|
|
3266
|
-
__publicField$
|
|
3267
|
-
__publicField$
|
|
3268
|
-
__publicField$
|
|
3269
|
-
__publicField$
|
|
3270
|
-
__publicField$
|
|
3345
|
+
__publicField$y(this, "cartLineItemImages");
|
|
3346
|
+
__publicField$y(this, "orderExpandButton");
|
|
3347
|
+
__publicField$y(this, "digitalProductDownloadButton");
|
|
3348
|
+
__publicField$y(this, "dialogOrderCancel");
|
|
3349
|
+
__publicField$y(this, "dialogOrderCancelButton");
|
|
3350
|
+
__publicField$y(this, "dialogBackButton");
|
|
3351
|
+
__publicField$y(this, "getViewSubscriptionLink", (orderNumber) => {
|
|
3271
3352
|
const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
|
|
3272
3353
|
return orderContainer.getByText("View Subscription");
|
|
3273
3354
|
});
|
|
@@ -3312,20 +3393,20 @@ class AccountOrder {
|
|
|
3312
3393
|
}
|
|
3313
3394
|
}
|
|
3314
3395
|
|
|
3315
|
-
var __defProp$
|
|
3316
|
-
var __defNormalProp$
|
|
3317
|
-
var __publicField$
|
|
3318
|
-
__defNormalProp$
|
|
3396
|
+
var __defProp$x = Object.defineProperty;
|
|
3397
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3398
|
+
var __publicField$x = (obj, key, value) => {
|
|
3399
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3319
3400
|
return value;
|
|
3320
3401
|
};
|
|
3321
3402
|
class AccountAddresses {
|
|
3322
3403
|
constructor(page) {
|
|
3323
3404
|
this.page = page;
|
|
3324
|
-
__publicField$
|
|
3325
|
-
__publicField$
|
|
3326
|
-
__publicField$
|
|
3327
|
-
__publicField$
|
|
3328
|
-
__publicField$
|
|
3405
|
+
__publicField$x(this, "addNewAddressButton");
|
|
3406
|
+
__publicField$x(this, "editBillingAddressButton");
|
|
3407
|
+
__publicField$x(this, "editShippingAddressButton");
|
|
3408
|
+
__publicField$x(this, "useDefaultBillingAddressButton");
|
|
3409
|
+
__publicField$x(this, "useDefaultShippingAddressButton");
|
|
3329
3410
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
3330
3411
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
3331
3412
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -3337,19 +3418,19 @@ class AccountAddresses {
|
|
|
3337
3418
|
}
|
|
3338
3419
|
}
|
|
3339
3420
|
|
|
3340
|
-
var __defProp$
|
|
3341
|
-
var __defNormalProp$
|
|
3342
|
-
var __publicField$
|
|
3343
|
-
__defNormalProp$
|
|
3421
|
+
var __defProp$w = Object.defineProperty;
|
|
3422
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3423
|
+
var __publicField$w = (obj, key, value) => {
|
|
3424
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3344
3425
|
return value;
|
|
3345
3426
|
};
|
|
3346
3427
|
class AccountPayment {
|
|
3347
3428
|
constructor(page) {
|
|
3348
3429
|
this.page = page;
|
|
3349
|
-
__publicField$
|
|
3350
|
-
__publicField$
|
|
3351
|
-
__publicField$
|
|
3352
|
-
__publicField$
|
|
3430
|
+
__publicField$w(this, "cashOnDeliveryOption");
|
|
3431
|
+
__publicField$w(this, "paidInAdvanceOption");
|
|
3432
|
+
__publicField$w(this, "invoiceOption");
|
|
3433
|
+
__publicField$w(this, "changeDefaultPaymentButton");
|
|
3353
3434
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3354
3435
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3355
3436
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -3360,17 +3441,17 @@ class AccountPayment {
|
|
|
3360
3441
|
}
|
|
3361
3442
|
}
|
|
3362
3443
|
|
|
3363
|
-
var __defProp$
|
|
3364
|
-
var __defNormalProp$
|
|
3365
|
-
var __publicField$
|
|
3366
|
-
__defNormalProp$
|
|
3444
|
+
var __defProp$v = Object.defineProperty;
|
|
3445
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3446
|
+
var __publicField$v = (obj, key, value) => {
|
|
3447
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3367
3448
|
return value;
|
|
3368
3449
|
};
|
|
3369
3450
|
class Search {
|
|
3370
3451
|
constructor(page) {
|
|
3371
3452
|
this.page = page;
|
|
3372
|
-
__publicField$
|
|
3373
|
-
__publicField$
|
|
3453
|
+
__publicField$v(this, "headline");
|
|
3454
|
+
__publicField$v(this, "productImages");
|
|
3374
3455
|
this.headline = page.locator("h1.search-headline");
|
|
3375
3456
|
this.productImages = page.locator(".product-image-link");
|
|
3376
3457
|
}
|
|
@@ -3379,16 +3460,16 @@ class Search {
|
|
|
3379
3460
|
}
|
|
3380
3461
|
}
|
|
3381
3462
|
|
|
3382
|
-
var __defProp$
|
|
3383
|
-
var __defNormalProp$
|
|
3384
|
-
var __publicField$
|
|
3385
|
-
__defNormalProp$
|
|
3463
|
+
var __defProp$u = Object.defineProperty;
|
|
3464
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3465
|
+
var __publicField$u = (obj, key, value) => {
|
|
3466
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3386
3467
|
return value;
|
|
3387
3468
|
};
|
|
3388
3469
|
class SearchSuggest {
|
|
3389
3470
|
constructor(page) {
|
|
3390
3471
|
this.page = page;
|
|
3391
|
-
__publicField$
|
|
3472
|
+
__publicField$u(this, "searchSuggestLineItemImages");
|
|
3392
3473
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
3393
3474
|
}
|
|
3394
3475
|
url(searchTerm) {
|
|
@@ -3406,31 +3487,31 @@ class CustomRegister extends AccountLogin {
|
|
|
3406
3487
|
}
|
|
3407
3488
|
}
|
|
3408
3489
|
|
|
3409
|
-
var __defProp$
|
|
3410
|
-
var __defNormalProp$
|
|
3411
|
-
var __publicField$
|
|
3412
|
-
__defNormalProp$
|
|
3490
|
+
var __defProp$t = Object.defineProperty;
|
|
3491
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3492
|
+
var __publicField$t = (obj, key, value) => {
|
|
3493
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3413
3494
|
return value;
|
|
3414
3495
|
};
|
|
3415
3496
|
class CheckoutOrderEdit {
|
|
3416
3497
|
constructor(page) {
|
|
3417
3498
|
this.page = page;
|
|
3418
|
-
__publicField$
|
|
3419
|
-
__publicField$
|
|
3420
|
-
__publicField$
|
|
3421
|
-
__publicField$
|
|
3422
|
-
__publicField$
|
|
3499
|
+
__publicField$t(this, "completePaymentButton");
|
|
3500
|
+
__publicField$t(this, "orderCancelButton");
|
|
3501
|
+
__publicField$t(this, "dialogOrderCancel");
|
|
3502
|
+
__publicField$t(this, "dialogOrderCancelButton");
|
|
3503
|
+
__publicField$t(this, "dialogBackButton");
|
|
3423
3504
|
/**
|
|
3424
3505
|
* Payment options
|
|
3425
3506
|
*/
|
|
3426
|
-
__publicField$
|
|
3427
|
-
__publicField$
|
|
3428
|
-
__publicField$
|
|
3507
|
+
__publicField$t(this, "paymentCashOnDelivery");
|
|
3508
|
+
__publicField$t(this, "paymentPaidInAdvance");
|
|
3509
|
+
__publicField$t(this, "paymentInvoice");
|
|
3429
3510
|
/**
|
|
3430
3511
|
* Shipping options
|
|
3431
3512
|
*/
|
|
3432
|
-
__publicField$
|
|
3433
|
-
__publicField$
|
|
3513
|
+
__publicField$t(this, "shippingStandard");
|
|
3514
|
+
__publicField$t(this, "shippingExpress");
|
|
3434
3515
|
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
3435
3516
|
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
3436
3517
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
@@ -3524,10 +3605,10 @@ const test$6 = test$e.extend({
|
|
|
3524
3605
|
}
|
|
3525
3606
|
});
|
|
3526
3607
|
|
|
3527
|
-
var __defProp$
|
|
3528
|
-
var __defNormalProp$
|
|
3529
|
-
var __publicField$
|
|
3530
|
-
__defNormalProp$
|
|
3608
|
+
var __defProp$s = Object.defineProperty;
|
|
3609
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3610
|
+
var __publicField$s = (obj, key, value) => {
|
|
3611
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3531
3612
|
return value;
|
|
3532
3613
|
};
|
|
3533
3614
|
class ProductDetail {
|
|
@@ -3536,47 +3617,78 @@ class ProductDetail {
|
|
|
3536
3617
|
/**
|
|
3537
3618
|
* Save interactions
|
|
3538
3619
|
*/
|
|
3539
|
-
__publicField$
|
|
3540
|
-
__publicField$
|
|
3541
|
-
__publicField$
|
|
3620
|
+
__publicField$s(this, "savePhysicalProductButton");
|
|
3621
|
+
__publicField$s(this, "saveButtonLoadingSpinner");
|
|
3622
|
+
__publicField$s(this, "saveButtonCheckMark");
|
|
3623
|
+
/**
|
|
3624
|
+
* General Info
|
|
3625
|
+
*/
|
|
3626
|
+
__publicField$s(this, "manufacturerDropdownText");
|
|
3627
|
+
/**
|
|
3628
|
+
* Prices
|
|
3629
|
+
*/
|
|
3630
|
+
__publicField$s(this, "priceGrossInput");
|
|
3631
|
+
/**
|
|
3632
|
+
* Deliverability
|
|
3633
|
+
*/
|
|
3634
|
+
__publicField$s(this, "stockInput");
|
|
3635
|
+
__publicField$s(this, "restockTimeInput");
|
|
3636
|
+
/**
|
|
3637
|
+
* Visibility
|
|
3638
|
+
*/
|
|
3639
|
+
__publicField$s(this, "activeForAllSalesChannelsToggle");
|
|
3640
|
+
__publicField$s(this, "tagsInput");
|
|
3641
|
+
__publicField$s(this, "saleChannelsInput");
|
|
3642
|
+
/**
|
|
3643
|
+
* Labelling
|
|
3644
|
+
*/
|
|
3645
|
+
__publicField$s(this, "releaseDateInput");
|
|
3542
3646
|
/**
|
|
3543
3647
|
* Media Upload interactions
|
|
3544
3648
|
*/
|
|
3545
|
-
__publicField$
|
|
3546
|
-
__publicField$
|
|
3547
|
-
__publicField$
|
|
3649
|
+
__publicField$s(this, "uploadMediaButton");
|
|
3650
|
+
__publicField$s(this, "coverImage");
|
|
3651
|
+
__publicField$s(this, "productImage");
|
|
3548
3652
|
/**
|
|
3549
3653
|
* Tabs
|
|
3550
3654
|
*/
|
|
3551
|
-
__publicField$
|
|
3552
|
-
__publicField$
|
|
3655
|
+
__publicField$s(this, "variantsTabLink");
|
|
3656
|
+
__publicField$s(this, "specificationsTabLink");
|
|
3553
3657
|
/**
|
|
3554
3658
|
* Variants Generation
|
|
3555
3659
|
*/
|
|
3556
|
-
__publicField$
|
|
3557
|
-
__publicField$
|
|
3558
|
-
__publicField$
|
|
3559
|
-
__publicField$
|
|
3560
|
-
__publicField$
|
|
3660
|
+
__publicField$s(this, "generateVariantsButton");
|
|
3661
|
+
__publicField$s(this, "variantsModal");
|
|
3662
|
+
__publicField$s(this, "variantsModalHeadline");
|
|
3663
|
+
__publicField$s(this, "variantsNextButton");
|
|
3664
|
+
__publicField$s(this, "variantsSaveButton");
|
|
3561
3665
|
/**
|
|
3562
3666
|
* Property Selection
|
|
3563
3667
|
*/
|
|
3564
|
-
__publicField$
|
|
3565
|
-
__publicField$
|
|
3566
|
-
__publicField$
|
|
3567
|
-
__publicField$
|
|
3568
|
-
__publicField$
|
|
3569
|
-
__publicField$
|
|
3570
|
-
__publicField$
|
|
3571
|
-
__publicField$
|
|
3572
|
-
__publicField$
|
|
3668
|
+
__publicField$s(this, "propertyGroupColor");
|
|
3669
|
+
__publicField$s(this, "propertyGroupSize");
|
|
3670
|
+
__publicField$s(this, "propertyOptionGrid");
|
|
3671
|
+
__publicField$s(this, "propertyOptionColorBlue");
|
|
3672
|
+
__publicField$s(this, "propertyOptionColorRed");
|
|
3673
|
+
__publicField$s(this, "propertyOptionColorGreen");
|
|
3674
|
+
__publicField$s(this, "propertyOptionSizeSmall");
|
|
3675
|
+
__publicField$s(this, "propertyOptionSizeMedium");
|
|
3676
|
+
__publicField$s(this, "propertyOptionSizeLarge");
|
|
3573
3677
|
/**
|
|
3574
3678
|
* Cards
|
|
3575
3679
|
*/
|
|
3576
|
-
__publicField$
|
|
3680
|
+
__publicField$s(this, "customFieldCard");
|
|
3577
3681
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
3578
3682
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
3579
3683
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
3684
|
+
this.manufacturerDropdownText = page.locator(".sw-select-product__select_manufacturer");
|
|
3685
|
+
this.priceGrossInput = page.locator("#sw-price-field-gross").first();
|
|
3686
|
+
this.stockInput = page.getByPlaceholder("Enter quantity in stock...");
|
|
3687
|
+
this.restockTimeInput = page.getByPlaceholder("Enter restock time in days...");
|
|
3688
|
+
this.activeForAllSalesChannelsToggle = page.locator(".sw-field--product-active").getByRole("checkbox");
|
|
3689
|
+
this.tagsInput = page.locator(".sw-product-category-form__tag-field");
|
|
3690
|
+
this.saleChannelsInput = page.locator(".sw-product-detail__select-visibility");
|
|
3691
|
+
this.releaseDateInput = page.locator(".sw-block-field", { hasText: "Release Date" }).getByPlaceholder("Enter release date...").last();
|
|
3580
3692
|
this.uploadMediaButton = page.getByRole("button", { name: "Upload file" });
|
|
3581
3693
|
this.coverImage = page.locator(".sw-product-media-form__cover-image");
|
|
3582
3694
|
this.productImage = page.locator(".sw-media-preview-v2__item");
|
|
@@ -3612,18 +3724,18 @@ class ProductDetail {
|
|
|
3612
3724
|
}
|
|
3613
3725
|
}
|
|
3614
3726
|
|
|
3615
|
-
var __defProp$
|
|
3616
|
-
var __defNormalProp$
|
|
3617
|
-
var __publicField$
|
|
3618
|
-
__defNormalProp$
|
|
3619
|
-
return value;
|
|
3620
|
-
};
|
|
3727
|
+
var __defProp$r = Object.defineProperty;
|
|
3728
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3729
|
+
var __publicField$r = (obj, key, value) => {
|
|
3730
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3731
|
+
return value;
|
|
3732
|
+
};
|
|
3621
3733
|
class OrderDetail {
|
|
3622
3734
|
constructor(page) {
|
|
3623
3735
|
this.page = page;
|
|
3624
|
-
__publicField$
|
|
3625
|
-
__publicField$
|
|
3626
|
-
__publicField$
|
|
3736
|
+
__publicField$r(this, "saveButton");
|
|
3737
|
+
__publicField$r(this, "dataGridContextButton");
|
|
3738
|
+
__publicField$r(this, "orderTag");
|
|
3627
3739
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
3628
3740
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
3629
3741
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -3633,17 +3745,17 @@ class OrderDetail {
|
|
|
3633
3745
|
}
|
|
3634
3746
|
}
|
|
3635
3747
|
|
|
3636
|
-
var __defProp$
|
|
3637
|
-
var __defNormalProp$
|
|
3638
|
-
var __publicField$
|
|
3639
|
-
__defNormalProp$
|
|
3748
|
+
var __defProp$q = Object.defineProperty;
|
|
3749
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3750
|
+
var __publicField$q = (obj, key, value) => {
|
|
3751
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3640
3752
|
return value;
|
|
3641
3753
|
};
|
|
3642
3754
|
class CustomerListing {
|
|
3643
3755
|
constructor(page) {
|
|
3644
3756
|
this.page = page;
|
|
3645
|
-
__publicField$
|
|
3646
|
-
__publicField$
|
|
3757
|
+
__publicField$q(this, "headline");
|
|
3758
|
+
__publicField$q(this, "addCustomerButton");
|
|
3647
3759
|
this.headline = page.getByRole("heading", { name: "Customers" });
|
|
3648
3760
|
this.addCustomerButton = page.locator(".sw-customer-list__button-create");
|
|
3649
3761
|
}
|
|
@@ -3671,24 +3783,24 @@ class CustomerListing {
|
|
|
3671
3783
|
}
|
|
3672
3784
|
}
|
|
3673
3785
|
|
|
3674
|
-
var __defProp$
|
|
3675
|
-
var __defNormalProp$
|
|
3676
|
-
var __publicField$
|
|
3677
|
-
__defNormalProp$
|
|
3786
|
+
var __defProp$p = Object.defineProperty;
|
|
3787
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3788
|
+
var __publicField$p = (obj, key, value) => {
|
|
3789
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3678
3790
|
return value;
|
|
3679
3791
|
};
|
|
3680
3792
|
class CustomerDetail {
|
|
3681
3793
|
constructor(page) {
|
|
3682
3794
|
this.page = page;
|
|
3683
|
-
__publicField$
|
|
3684
|
-
__publicField$
|
|
3685
|
-
__publicField$
|
|
3686
|
-
__publicField$
|
|
3687
|
-
__publicField$
|
|
3688
|
-
__publicField$
|
|
3689
|
-
__publicField$
|
|
3690
|
-
__publicField$
|
|
3691
|
-
__publicField$
|
|
3795
|
+
__publicField$p(this, "editButton");
|
|
3796
|
+
__publicField$p(this, "generalTab");
|
|
3797
|
+
__publicField$p(this, "accountCard");
|
|
3798
|
+
__publicField$p(this, "customFieldCard");
|
|
3799
|
+
__publicField$p(this, "customFieldSetTabs");
|
|
3800
|
+
__publicField$p(this, "customFieldSetTabCustomContent");
|
|
3801
|
+
__publicField$p(this, "customerGroupRequestMessage");
|
|
3802
|
+
__publicField$p(this, "customerGroupAcceptButton");
|
|
3803
|
+
__publicField$p(this, "customerGroupDeclineButton");
|
|
3692
3804
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
3693
3805
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
3694
3806
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -3716,17 +3828,17 @@ class CustomerDetail {
|
|
|
3716
3828
|
}
|
|
3717
3829
|
}
|
|
3718
3830
|
|
|
3719
|
-
var __defProp$
|
|
3720
|
-
var __defNormalProp$
|
|
3721
|
-
var __publicField$
|
|
3722
|
-
__defNormalProp$
|
|
3831
|
+
var __defProp$o = Object.defineProperty;
|
|
3832
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3833
|
+
var __publicField$o = (obj, key, value) => {
|
|
3834
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3723
3835
|
return value;
|
|
3724
3836
|
};
|
|
3725
3837
|
class CustomerGroupListing {
|
|
3726
3838
|
constructor(page) {
|
|
3727
3839
|
this.page = page;
|
|
3728
|
-
__publicField$
|
|
3729
|
-
__publicField$
|
|
3840
|
+
__publicField$o(this, "headline");
|
|
3841
|
+
__publicField$o(this, "addCustomerGroupButton");
|
|
3730
3842
|
this.headline = page.getByRole("heading", { name: "Customer groups" });
|
|
3731
3843
|
this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
|
|
3732
3844
|
}
|
|
@@ -3748,29 +3860,29 @@ class CustomerGroupListing {
|
|
|
3748
3860
|
}
|
|
3749
3861
|
}
|
|
3750
3862
|
|
|
3751
|
-
var __defProp$
|
|
3752
|
-
var __defNormalProp$
|
|
3753
|
-
var __publicField$
|
|
3754
|
-
__defNormalProp$
|
|
3863
|
+
var __defProp$n = Object.defineProperty;
|
|
3864
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3865
|
+
var __publicField$n = (obj, key, value) => {
|
|
3866
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3755
3867
|
return value;
|
|
3756
3868
|
};
|
|
3757
3869
|
class CustomerGroupCreate {
|
|
3758
3870
|
constructor(page) {
|
|
3759
3871
|
this.page = page;
|
|
3760
|
-
__publicField$
|
|
3761
|
-
__publicField$
|
|
3762
|
-
__publicField$
|
|
3763
|
-
__publicField$
|
|
3764
|
-
__publicField$
|
|
3765
|
-
__publicField$
|
|
3766
|
-
__publicField$
|
|
3767
|
-
__publicField$
|
|
3768
|
-
__publicField$
|
|
3769
|
-
__publicField$
|
|
3770
|
-
__publicField$
|
|
3771
|
-
__publicField$
|
|
3772
|
-
__publicField$
|
|
3773
|
-
__publicField$
|
|
3872
|
+
__publicField$n(this, "headline");
|
|
3873
|
+
__publicField$n(this, "saveButton");
|
|
3874
|
+
__publicField$n(this, "cancelButton");
|
|
3875
|
+
__publicField$n(this, "cardTitle");
|
|
3876
|
+
__publicField$n(this, "customerGroupNameField");
|
|
3877
|
+
__publicField$n(this, "customerGroupGrossTaxDisplay");
|
|
3878
|
+
__publicField$n(this, "customerGroupNetTaxDisplay");
|
|
3879
|
+
__publicField$n(this, "customSignupFormToggle");
|
|
3880
|
+
__publicField$n(this, "signupFormTitle");
|
|
3881
|
+
__publicField$n(this, "signupFormIntroduction");
|
|
3882
|
+
__publicField$n(this, "signupFormSeoDescription");
|
|
3883
|
+
__publicField$n(this, "signupFormCompanySignupToggle");
|
|
3884
|
+
__publicField$n(this, "customerGroupSaleschannelSelection");
|
|
3885
|
+
__publicField$n(this, "customerGroupSaleschannelResultList");
|
|
3774
3886
|
this.headline = page.getByRole("heading", { name: "New customer group" });
|
|
3775
3887
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
3776
3888
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
@@ -3791,20 +3903,20 @@ class CustomerGroupCreate {
|
|
|
3791
3903
|
}
|
|
3792
3904
|
}
|
|
3793
3905
|
|
|
3794
|
-
var __defProp$
|
|
3795
|
-
var __defNormalProp$
|
|
3796
|
-
var __publicField$
|
|
3797
|
-
__defNormalProp$
|
|
3906
|
+
var __defProp$m = Object.defineProperty;
|
|
3907
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3908
|
+
var __publicField$m = (obj, key, value) => {
|
|
3909
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3798
3910
|
return value;
|
|
3799
3911
|
};
|
|
3800
3912
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
3801
3913
|
constructor(page) {
|
|
3802
3914
|
super(page);
|
|
3803
3915
|
this.page = page;
|
|
3804
|
-
__publicField$
|
|
3805
|
-
__publicField$
|
|
3806
|
-
__publicField$
|
|
3807
|
-
__publicField$
|
|
3916
|
+
__publicField$m(this, "headline");
|
|
3917
|
+
__publicField$m(this, "selectedSalesChannel");
|
|
3918
|
+
__publicField$m(this, "technicalUrl");
|
|
3919
|
+
__publicField$m(this, "saleschannelUrl");
|
|
3808
3920
|
this.headline = page.locator(".smart-bar__header");
|
|
3809
3921
|
this.selectedSalesChannel = page.locator(".sw-select-selection-list");
|
|
3810
3922
|
this.technicalUrl = page.getByLabel("Technical URL");
|
|
@@ -3815,53 +3927,53 @@ class CustomerGroupDetail extends CustomerGroupCreate {
|
|
|
3815
3927
|
}
|
|
3816
3928
|
}
|
|
3817
3929
|
|
|
3818
|
-
var __defProp$
|
|
3819
|
-
var __defNormalProp$
|
|
3820
|
-
var __publicField$
|
|
3821
|
-
__defNormalProp$
|
|
3930
|
+
var __defProp$l = Object.defineProperty;
|
|
3931
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3932
|
+
var __publicField$l = (obj, key, value) => {
|
|
3933
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3822
3934
|
return value;
|
|
3823
3935
|
};
|
|
3824
3936
|
class FirstRunWizard {
|
|
3825
3937
|
constructor(page) {
|
|
3826
3938
|
this.page = page;
|
|
3827
|
-
__publicField$
|
|
3828
|
-
__publicField$
|
|
3829
|
-
__publicField$
|
|
3830
|
-
__publicField$
|
|
3831
|
-
__publicField$
|
|
3832
|
-
__publicField$
|
|
3833
|
-
__publicField$
|
|
3834
|
-
__publicField$
|
|
3835
|
-
__publicField$
|
|
3836
|
-
__publicField$
|
|
3837
|
-
__publicField$
|
|
3838
|
-
__publicField$
|
|
3839
|
-
__publicField$
|
|
3840
|
-
__publicField$
|
|
3841
|
-
__publicField$
|
|
3842
|
-
__publicField$
|
|
3843
|
-
__publicField$
|
|
3844
|
-
__publicField$
|
|
3845
|
-
__publicField$
|
|
3846
|
-
__publicField$
|
|
3847
|
-
__publicField$
|
|
3848
|
-
__publicField$
|
|
3849
|
-
__publicField$
|
|
3850
|
-
__publicField$
|
|
3851
|
-
__publicField$
|
|
3852
|
-
__publicField$
|
|
3853
|
-
__publicField$
|
|
3854
|
-
__publicField$
|
|
3855
|
-
__publicField$
|
|
3856
|
-
__publicField$
|
|
3857
|
-
__publicField$
|
|
3858
|
-
__publicField$
|
|
3859
|
-
__publicField$
|
|
3860
|
-
__publicField$
|
|
3861
|
-
__publicField$
|
|
3862
|
-
__publicField$
|
|
3863
|
-
__publicField$
|
|
3864
|
-
__publicField$
|
|
3939
|
+
__publicField$l(this, "nextButton");
|
|
3940
|
+
__publicField$l(this, "configureLaterButton");
|
|
3941
|
+
__publicField$l(this, "skipButton");
|
|
3942
|
+
__publicField$l(this, "finishButton");
|
|
3943
|
+
__publicField$l(this, "backButton");
|
|
3944
|
+
__publicField$l(this, "smtpServerButton");
|
|
3945
|
+
__publicField$l(this, "dataImportHeader");
|
|
3946
|
+
__publicField$l(this, "installLanguagePackButton");
|
|
3947
|
+
__publicField$l(this, "installDemoDataButton");
|
|
3948
|
+
__publicField$l(this, "installMigrationAssistantButton");
|
|
3949
|
+
__publicField$l(this, "defaultValuesHeader");
|
|
3950
|
+
__publicField$l(this, "mailerConfigurationHeader");
|
|
3951
|
+
__publicField$l(this, "payPalSetupHeader");
|
|
3952
|
+
__publicField$l(this, "extensionsHeader");
|
|
3953
|
+
__publicField$l(this, "shopwareAccountHeader");
|
|
3954
|
+
__publicField$l(this, "shopwareStoreHeader");
|
|
3955
|
+
__publicField$l(this, "doneHeader");
|
|
3956
|
+
__publicField$l(this, "frwSuccessText");
|
|
3957
|
+
__publicField$l(this, "welcomeText");
|
|
3958
|
+
__publicField$l(this, "pluginCardInfo");
|
|
3959
|
+
__publicField$l(this, "dataImportCard");
|
|
3960
|
+
__publicField$l(this, "salesChannelSelectionList");
|
|
3961
|
+
__publicField$l(this, "salesChannelSelectionMultiSelect");
|
|
3962
|
+
__publicField$l(this, "smtpServerTitle");
|
|
3963
|
+
__publicField$l(this, "smtpServerFields");
|
|
3964
|
+
__publicField$l(this, "payPalPaymethods");
|
|
3965
|
+
__publicField$l(this, "payPalInfoCard");
|
|
3966
|
+
__publicField$l(this, "emailAddressInputField");
|
|
3967
|
+
__publicField$l(this, "passwordInputField");
|
|
3968
|
+
__publicField$l(this, "forgotPasswordLink");
|
|
3969
|
+
__publicField$l(this, "extensionStoreHeading");
|
|
3970
|
+
__publicField$l(this, "documentationLink");
|
|
3971
|
+
__publicField$l(this, "forumLink");
|
|
3972
|
+
__publicField$l(this, "roadmapLink");
|
|
3973
|
+
__publicField$l(this, "germanRegionSelector");
|
|
3974
|
+
__publicField$l(this, "toolsSelector");
|
|
3975
|
+
__publicField$l(this, "recommendationHeader");
|
|
3976
|
+
__publicField$l(this, "toolsRecommendedPlugin");
|
|
3865
3977
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
3866
3978
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
3867
3979
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -3906,17 +4018,17 @@ class FirstRunWizard {
|
|
|
3906
4018
|
}
|
|
3907
4019
|
}
|
|
3908
4020
|
|
|
3909
|
-
var __defProp$
|
|
3910
|
-
var __defNormalProp$
|
|
3911
|
-
var __publicField$
|
|
3912
|
-
__defNormalProp$
|
|
4021
|
+
var __defProp$k = Object.defineProperty;
|
|
4022
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4023
|
+
var __publicField$k = (obj, key, value) => {
|
|
4024
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3913
4025
|
return value;
|
|
3914
4026
|
};
|
|
3915
4027
|
class FlowBuilderCreate {
|
|
3916
4028
|
constructor(page) {
|
|
3917
4029
|
this.page = page;
|
|
3918
|
-
__publicField$
|
|
3919
|
-
__publicField$
|
|
4030
|
+
__publicField$k(this, "saveButton");
|
|
4031
|
+
__publicField$k(this, "header");
|
|
3920
4032
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3921
4033
|
this.header = page.locator("h2");
|
|
3922
4034
|
}
|
|
@@ -3925,28 +4037,28 @@ class FlowBuilderCreate {
|
|
|
3925
4037
|
}
|
|
3926
4038
|
}
|
|
3927
4039
|
|
|
3928
|
-
var __defProp$
|
|
3929
|
-
var __defNormalProp$
|
|
3930
|
-
var __publicField$
|
|
3931
|
-
__defNormalProp$
|
|
4040
|
+
var __defProp$j = Object.defineProperty;
|
|
4041
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4042
|
+
var __publicField$j = (obj, key, value) => {
|
|
4043
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3932
4044
|
return value;
|
|
3933
4045
|
};
|
|
3934
4046
|
class FlowBuilderListing {
|
|
3935
4047
|
constructor(page) {
|
|
3936
4048
|
this.page = page;
|
|
3937
|
-
__publicField$
|
|
3938
|
-
__publicField$
|
|
3939
|
-
__publicField$
|
|
3940
|
-
__publicField$
|
|
3941
|
-
__publicField$
|
|
3942
|
-
__publicField$
|
|
3943
|
-
__publicField$
|
|
3944
|
-
__publicField$
|
|
3945
|
-
__publicField$
|
|
3946
|
-
__publicField$
|
|
3947
|
-
__publicField$
|
|
3948
|
-
__publicField$
|
|
3949
|
-
__publicField$
|
|
4049
|
+
__publicField$j(this, "createFlowButton");
|
|
4050
|
+
__publicField$j(this, "firstFlowName");
|
|
4051
|
+
__publicField$j(this, "firstFlowContextButton");
|
|
4052
|
+
__publicField$j(this, "flowContextMenu");
|
|
4053
|
+
__publicField$j(this, "contextMenuDownload");
|
|
4054
|
+
__publicField$j(this, "contextMenuDuplicate");
|
|
4055
|
+
__publicField$j(this, "contextMenuEdit");
|
|
4056
|
+
__publicField$j(this, "contextMenuDelete");
|
|
4057
|
+
__publicField$j(this, "flowDownloadModal");
|
|
4058
|
+
__publicField$j(this, "downloadFlowButton");
|
|
4059
|
+
__publicField$j(this, "flowDeleteButton");
|
|
4060
|
+
__publicField$j(this, "successAlert");
|
|
4061
|
+
__publicField$j(this, "successAlertMessage");
|
|
3950
4062
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
3951
4063
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
3952
4064
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -3983,18 +4095,18 @@ class FlowBuilderListing {
|
|
|
3983
4095
|
}
|
|
3984
4096
|
}
|
|
3985
4097
|
|
|
3986
|
-
var __defProp$
|
|
3987
|
-
var __defNormalProp$
|
|
3988
|
-
var __publicField$
|
|
3989
|
-
__defNormalProp$
|
|
4098
|
+
var __defProp$i = Object.defineProperty;
|
|
4099
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4100
|
+
var __publicField$i = (obj, key, value) => {
|
|
4101
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3990
4102
|
return value;
|
|
3991
4103
|
};
|
|
3992
4104
|
class FlowBuilderDetail {
|
|
3993
4105
|
constructor(page) {
|
|
3994
4106
|
this.page = page;
|
|
3995
|
-
__publicField$
|
|
3996
|
-
__publicField$
|
|
3997
|
-
__publicField$
|
|
4107
|
+
__publicField$i(this, "saveButton");
|
|
4108
|
+
__publicField$i(this, "generalTab");
|
|
4109
|
+
__publicField$i(this, "flowTab");
|
|
3998
4110
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3999
4111
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
4000
4112
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
@@ -4004,20 +4116,20 @@ class FlowBuilderDetail {
|
|
|
4004
4116
|
}
|
|
4005
4117
|
}
|
|
4006
4118
|
|
|
4007
|
-
var __defProp$
|
|
4008
|
-
var __defNormalProp$
|
|
4009
|
-
var __publicField$
|
|
4010
|
-
__defNormalProp$
|
|
4119
|
+
var __defProp$h = Object.defineProperty;
|
|
4120
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4121
|
+
var __publicField$h = (obj, key, value) => {
|
|
4122
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4011
4123
|
return value;
|
|
4012
4124
|
};
|
|
4013
4125
|
class DataSharing {
|
|
4014
4126
|
constructor(page) {
|
|
4015
4127
|
this.page = page;
|
|
4016
|
-
__publicField$
|
|
4017
|
-
__publicField$
|
|
4018
|
-
__publicField$
|
|
4019
|
-
__publicField$
|
|
4020
|
-
__publicField$
|
|
4128
|
+
__publicField$h(this, "dataConsentHeadline");
|
|
4129
|
+
__publicField$h(this, "dataSharingSuccessMessageLabel");
|
|
4130
|
+
__publicField$h(this, "dataSharingAgreeButton");
|
|
4131
|
+
__publicField$h(this, "dataSharingDisableButton");
|
|
4132
|
+
__publicField$h(this, "dataSharingTermsAgreementLabel");
|
|
4021
4133
|
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
4022
4134
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
4023
4135
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
@@ -4029,23 +4141,23 @@ class DataSharing {
|
|
|
4029
4141
|
}
|
|
4030
4142
|
}
|
|
4031
4143
|
|
|
4032
|
-
var __defProp$
|
|
4033
|
-
var __defNormalProp$
|
|
4034
|
-
var __publicField$
|
|
4035
|
-
__defNormalProp$
|
|
4144
|
+
var __defProp$g = Object.defineProperty;
|
|
4145
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4146
|
+
var __publicField$g = (obj, key, value) => {
|
|
4147
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4036
4148
|
return value;
|
|
4037
4149
|
};
|
|
4038
4150
|
class Dashboard {
|
|
4039
4151
|
constructor(page) {
|
|
4040
4152
|
this.page = page;
|
|
4041
|
-
__publicField$
|
|
4042
|
-
__publicField$
|
|
4043
|
-
__publicField$
|
|
4044
|
-
__publicField$
|
|
4045
|
-
__publicField$
|
|
4046
|
-
__publicField$
|
|
4047
|
-
__publicField$
|
|
4048
|
-
__publicField$
|
|
4153
|
+
__publicField$g(this, "welcomeHeadline");
|
|
4154
|
+
__publicField$g(this, "dataSharingConsentBanner");
|
|
4155
|
+
__publicField$g(this, "dataSharingAgreeButton");
|
|
4156
|
+
__publicField$g(this, "dataSharingNotAtTheMomentButton");
|
|
4157
|
+
__publicField$g(this, "dataSharingTermsAgreementLabel");
|
|
4158
|
+
__publicField$g(this, "dataSharingSettingsLink");
|
|
4159
|
+
__publicField$g(this, "dataSharingAcceptMessageText");
|
|
4160
|
+
__publicField$g(this, "dataSharingNotAtTheMomentMessageText");
|
|
4049
4161
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
4050
4162
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
4051
4163
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
@@ -4060,25 +4172,25 @@ class Dashboard {
|
|
|
4060
4172
|
}
|
|
4061
4173
|
}
|
|
4062
4174
|
|
|
4063
|
-
var __defProp$
|
|
4064
|
-
var __defNormalProp$
|
|
4065
|
-
var __publicField$
|
|
4066
|
-
__defNormalProp$
|
|
4175
|
+
var __defProp$f = Object.defineProperty;
|
|
4176
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4177
|
+
var __publicField$f = (obj, key, value) => {
|
|
4178
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4067
4179
|
return value;
|
|
4068
4180
|
};
|
|
4069
4181
|
class ShippingListing {
|
|
4070
4182
|
constructor(page) {
|
|
4071
4183
|
this.page = page;
|
|
4072
|
-
__publicField$
|
|
4073
|
-
__publicField$
|
|
4074
|
-
__publicField$
|
|
4075
|
-
__publicField$
|
|
4076
|
-
__publicField$
|
|
4184
|
+
__publicField$f(this, "header");
|
|
4185
|
+
__publicField$f(this, "addShippingMethod");
|
|
4186
|
+
__publicField$f(this, "contextMenu");
|
|
4187
|
+
__publicField$f(this, "editButton");
|
|
4188
|
+
__publicField$f(this, "deleteButton");
|
|
4077
4189
|
//warning modal
|
|
4078
|
-
__publicField$
|
|
4079
|
-
__publicField$
|
|
4080
|
-
__publicField$
|
|
4081
|
-
__publicField$
|
|
4190
|
+
__publicField$f(this, "modal");
|
|
4191
|
+
__publicField$f(this, "modalHeader");
|
|
4192
|
+
__publicField$f(this, "modalCancelButton");
|
|
4193
|
+
__publicField$f(this, "modalDeleteButton");
|
|
4082
4194
|
this.header = page.locator(".smart-bar__header");
|
|
4083
4195
|
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
4084
4196
|
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
@@ -4094,10 +4206,10 @@ class ShippingListing {
|
|
|
4094
4206
|
}
|
|
4095
4207
|
}
|
|
4096
4208
|
|
|
4097
|
-
var __defProp$
|
|
4098
|
-
var __defNormalProp$
|
|
4099
|
-
var __publicField$
|
|
4100
|
-
__defNormalProp$
|
|
4209
|
+
var __defProp$e = Object.defineProperty;
|
|
4210
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4211
|
+
var __publicField$e = (obj, key, value) => {
|
|
4212
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4101
4213
|
return value;
|
|
4102
4214
|
};
|
|
4103
4215
|
class LandingPageCreate {
|
|
@@ -4106,24 +4218,24 @@ class LandingPageCreate {
|
|
|
4106
4218
|
/**
|
|
4107
4219
|
* General
|
|
4108
4220
|
*/
|
|
4109
|
-
__publicField$
|
|
4110
|
-
__publicField$
|
|
4111
|
-
__publicField$
|
|
4112
|
-
__publicField$
|
|
4113
|
-
__publicField$
|
|
4114
|
-
__publicField$
|
|
4115
|
-
__publicField$
|
|
4221
|
+
__publicField$e(this, "nameInput");
|
|
4222
|
+
__publicField$e(this, "landingPageStatus");
|
|
4223
|
+
__publicField$e(this, "salesChannelSelectionList");
|
|
4224
|
+
__publicField$e(this, "filtersResultPopoverItemList");
|
|
4225
|
+
__publicField$e(this, "saveLandingPageButton");
|
|
4226
|
+
__publicField$e(this, "loadingSpinner");
|
|
4227
|
+
__publicField$e(this, "seoUrlInput");
|
|
4116
4228
|
/**
|
|
4117
4229
|
* Layout
|
|
4118
4230
|
*/
|
|
4119
|
-
__publicField$
|
|
4120
|
-
__publicField$
|
|
4121
|
-
__publicField$
|
|
4122
|
-
__publicField$
|
|
4123
|
-
__publicField$
|
|
4124
|
-
__publicField$
|
|
4125
|
-
__publicField$
|
|
4126
|
-
__publicField$
|
|
4231
|
+
__publicField$e(this, "layoutTab");
|
|
4232
|
+
__publicField$e(this, "assignLayoutButton");
|
|
4233
|
+
__publicField$e(this, "searchLayoutInput");
|
|
4234
|
+
__publicField$e(this, "layoutItems");
|
|
4235
|
+
__publicField$e(this, "layoutSaveButton");
|
|
4236
|
+
__publicField$e(this, "layoutEmptyState");
|
|
4237
|
+
__publicField$e(this, "createNewLayoutButton");
|
|
4238
|
+
__publicField$e(this, "layoutCheckboxes");
|
|
4127
4239
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4128
4240
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4129
4241
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4148,10 +4260,10 @@ class LandingPageCreate {
|
|
|
4148
4260
|
}
|
|
4149
4261
|
}
|
|
4150
4262
|
|
|
4151
|
-
var __defProp$
|
|
4152
|
-
var __defNormalProp$
|
|
4153
|
-
var __publicField$
|
|
4154
|
-
__defNormalProp$
|
|
4263
|
+
var __defProp$d = Object.defineProperty;
|
|
4264
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4265
|
+
var __publicField$d = (obj, key, value) => {
|
|
4266
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4155
4267
|
return value;
|
|
4156
4268
|
};
|
|
4157
4269
|
class LandingPageDetail {
|
|
@@ -4160,24 +4272,24 @@ class LandingPageDetail {
|
|
|
4160
4272
|
/**
|
|
4161
4273
|
* General
|
|
4162
4274
|
*/
|
|
4163
|
-
__publicField$
|
|
4164
|
-
__publicField$
|
|
4165
|
-
__publicField$
|
|
4166
|
-
__publicField$
|
|
4167
|
-
__publicField$
|
|
4168
|
-
__publicField$
|
|
4169
|
-
__publicField$
|
|
4275
|
+
__publicField$d(this, "nameInput");
|
|
4276
|
+
__publicField$d(this, "landingPageStatus");
|
|
4277
|
+
__publicField$d(this, "salesChannelSelectionList");
|
|
4278
|
+
__publicField$d(this, "filtersResultPopoverItemList");
|
|
4279
|
+
__publicField$d(this, "saveLandingPageButton");
|
|
4280
|
+
__publicField$d(this, "loadingSpinner");
|
|
4281
|
+
__publicField$d(this, "seoUrlInput");
|
|
4170
4282
|
/**
|
|
4171
4283
|
* Layout
|
|
4172
4284
|
*/
|
|
4173
|
-
__publicField$
|
|
4174
|
-
__publicField$
|
|
4175
|
-
__publicField$
|
|
4176
|
-
__publicField$
|
|
4177
|
-
__publicField$
|
|
4178
|
-
__publicField$
|
|
4179
|
-
__publicField$
|
|
4180
|
-
__publicField$
|
|
4285
|
+
__publicField$d(this, "layoutTab");
|
|
4286
|
+
__publicField$d(this, "layoutAssignmentCardTitle");
|
|
4287
|
+
__publicField$d(this, "layoutAssignmentCardHeadline");
|
|
4288
|
+
__publicField$d(this, "changeLayoutButton");
|
|
4289
|
+
__publicField$d(this, "editInDesignerButton");
|
|
4290
|
+
__publicField$d(this, "layoutResetButton");
|
|
4291
|
+
__publicField$d(this, "layoutAssignmentStatus");
|
|
4292
|
+
__publicField$d(this, "layoutAssignmentContentSection");
|
|
4181
4293
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4182
4294
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4183
4295
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4201,10 +4313,10 @@ class LandingPageDetail {
|
|
|
4201
4313
|
}
|
|
4202
4314
|
}
|
|
4203
4315
|
|
|
4204
|
-
var __defProp$
|
|
4205
|
-
var __defNormalProp$
|
|
4206
|
-
var __publicField$
|
|
4207
|
-
__defNormalProp$
|
|
4316
|
+
var __defProp$c = Object.defineProperty;
|
|
4317
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4318
|
+
var __publicField$c = (obj, key, value) => {
|
|
4319
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4208
4320
|
return value;
|
|
4209
4321
|
};
|
|
4210
4322
|
class Categories {
|
|
@@ -4213,42 +4325,42 @@ class Categories {
|
|
|
4213
4325
|
/**
|
|
4214
4326
|
* Landing pages
|
|
4215
4327
|
*/
|
|
4216
|
-
__publicField$
|
|
4217
|
-
__publicField$
|
|
4218
|
-
__publicField$
|
|
4219
|
-
__publicField$
|
|
4328
|
+
__publicField$c(this, "landingPageArea");
|
|
4329
|
+
__publicField$c(this, "landingPageHeadline");
|
|
4330
|
+
__publicField$c(this, "addLandingPageButton");
|
|
4331
|
+
__publicField$c(this, "landingPageItems");
|
|
4220
4332
|
/**
|
|
4221
4333
|
* Category tree
|
|
4222
4334
|
*/
|
|
4223
|
-
__publicField$
|
|
4224
|
-
__publicField$
|
|
4225
|
-
__publicField$
|
|
4226
|
-
__publicField$
|
|
4227
|
-
__publicField$
|
|
4228
|
-
__publicField$
|
|
4229
|
-
__publicField$
|
|
4230
|
-
__publicField$
|
|
4335
|
+
__publicField$c(this, "categoryTree");
|
|
4336
|
+
__publicField$c(this, "homeCategory");
|
|
4337
|
+
__publicField$c(this, "homeCategoryContextButton");
|
|
4338
|
+
__publicField$c(this, "categoryMenuItemList");
|
|
4339
|
+
__publicField$c(this, "createCategoryInput");
|
|
4340
|
+
__publicField$c(this, "confirmCategoryCreationButton");
|
|
4341
|
+
__publicField$c(this, "confirmCategoryCancelButton");
|
|
4342
|
+
__publicField$c(this, "categoryItems");
|
|
4231
4343
|
/**
|
|
4232
4344
|
* General
|
|
4233
4345
|
*/
|
|
4234
|
-
__publicField$
|
|
4235
|
-
__publicField$
|
|
4236
|
-
__publicField$
|
|
4237
|
-
__publicField$
|
|
4238
|
-
__publicField$
|
|
4239
|
-
__publicField$
|
|
4240
|
-
__publicField$
|
|
4346
|
+
__publicField$c(this, "nameInput");
|
|
4347
|
+
__publicField$c(this, "activeCheckbox");
|
|
4348
|
+
__publicField$c(this, "categoryTypeSelectionList");
|
|
4349
|
+
__publicField$c(this, "filtersResultPopoverItemList");
|
|
4350
|
+
__publicField$c(this, "saveButton");
|
|
4351
|
+
__publicField$c(this, "loadingSpinner");
|
|
4352
|
+
__publicField$c(this, "fadingBar");
|
|
4241
4353
|
/**
|
|
4242
4354
|
* Customisable link
|
|
4243
4355
|
*/
|
|
4244
|
-
__publicField$
|
|
4245
|
-
__publicField$
|
|
4246
|
-
__publicField$
|
|
4247
|
-
__publicField$
|
|
4248
|
-
__publicField$
|
|
4249
|
-
__publicField$
|
|
4250
|
-
__publicField$
|
|
4251
|
-
__publicField$
|
|
4356
|
+
__publicField$c(this, "entitySelectionList");
|
|
4357
|
+
__publicField$c(this, "linkTypeSelectionList");
|
|
4358
|
+
__publicField$c(this, "categorySelectionList");
|
|
4359
|
+
__publicField$c(this, "productSelectionList");
|
|
4360
|
+
__publicField$c(this, "landingPageSelectionList");
|
|
4361
|
+
__publicField$c(this, "filterResultPopoverTreeCheckboxItemList");
|
|
4362
|
+
__publicField$c(this, "openInNewTabCheckbox");
|
|
4363
|
+
__publicField$c(this, "popoverCategoryTree");
|
|
4252
4364
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
4253
4365
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
4254
4366
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
@@ -4288,20 +4400,20 @@ class Categories {
|
|
|
4288
4400
|
}
|
|
4289
4401
|
}
|
|
4290
4402
|
|
|
4291
|
-
var __defProp$
|
|
4292
|
-
var __defNormalProp$
|
|
4293
|
-
var __publicField$
|
|
4294
|
-
__defNormalProp$
|
|
4403
|
+
var __defProp$b = Object.defineProperty;
|
|
4404
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4405
|
+
var __publicField$b = (obj, key, value) => {
|
|
4406
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4295
4407
|
return value;
|
|
4296
4408
|
};
|
|
4297
4409
|
class RuleDetail {
|
|
4298
4410
|
constructor(page) {
|
|
4299
4411
|
this.page = page;
|
|
4300
|
-
__publicField$
|
|
4301
|
-
__publicField$
|
|
4302
|
-
__publicField$
|
|
4303
|
-
__publicField$
|
|
4304
|
-
__publicField$
|
|
4412
|
+
__publicField$b(this, "nameInput");
|
|
4413
|
+
__publicField$b(this, "priorityInput");
|
|
4414
|
+
__publicField$b(this, "conditionTypeSelectionInput");
|
|
4415
|
+
__publicField$b(this, "conditionValueSelectionInput");
|
|
4416
|
+
__publicField$b(this, "filtersResultPopoverSelectionList");
|
|
4305
4417
|
this.nameInput = page.getByLabel("Name");
|
|
4306
4418
|
this.priorityInput = page.getByLabel("Priority");
|
|
4307
4419
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -4313,17 +4425,17 @@ class RuleDetail {
|
|
|
4313
4425
|
}
|
|
4314
4426
|
}
|
|
4315
4427
|
|
|
4316
|
-
var __defProp$
|
|
4317
|
-
var __defNormalProp$
|
|
4318
|
-
var __publicField$
|
|
4319
|
-
__defNormalProp$
|
|
4428
|
+
var __defProp$a = Object.defineProperty;
|
|
4429
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4430
|
+
var __publicField$a = (obj, key, value) => {
|
|
4431
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4320
4432
|
return value;
|
|
4321
4433
|
};
|
|
4322
4434
|
class CustomFieldListing {
|
|
4323
4435
|
constructor(page) {
|
|
4324
4436
|
this.page = page;
|
|
4325
|
-
__publicField$
|
|
4326
|
-
__publicField$
|
|
4437
|
+
__publicField$a(this, "addNewSetButton");
|
|
4438
|
+
__publicField$a(this, "customFieldRows");
|
|
4327
4439
|
this.addNewSetButton = page.getByText("Add new set");
|
|
4328
4440
|
this.customFieldRows = page.getByRole("row");
|
|
4329
4441
|
}
|
|
@@ -4351,22 +4463,22 @@ class CustomFieldListing {
|
|
|
4351
4463
|
}
|
|
4352
4464
|
}
|
|
4353
4465
|
|
|
4354
|
-
var __defProp$
|
|
4355
|
-
var __defNormalProp$
|
|
4356
|
-
var __publicField$
|
|
4357
|
-
__defNormalProp$
|
|
4466
|
+
var __defProp$9 = Object.defineProperty;
|
|
4467
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4468
|
+
var __publicField$9 = (obj, key, value) => {
|
|
4469
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4358
4470
|
return value;
|
|
4359
4471
|
};
|
|
4360
4472
|
class CustomFieldCreate {
|
|
4361
4473
|
constructor(page) {
|
|
4362
4474
|
this.page = page;
|
|
4363
|
-
__publicField$
|
|
4364
|
-
__publicField$
|
|
4365
|
-
__publicField$
|
|
4366
|
-
__publicField$
|
|
4367
|
-
__publicField$
|
|
4368
|
-
__publicField$
|
|
4369
|
-
__publicField$
|
|
4475
|
+
__publicField$9(this, "saveButton");
|
|
4476
|
+
__publicField$9(this, "cancelButton");
|
|
4477
|
+
__publicField$9(this, "technicalNameInput");
|
|
4478
|
+
__publicField$9(this, "positionInput");
|
|
4479
|
+
__publicField$9(this, "labelEnglishGBInput");
|
|
4480
|
+
__publicField$9(this, "assignToSelectionList");
|
|
4481
|
+
__publicField$9(this, "resultAssignToPopoverItemList");
|
|
4370
4482
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4371
4483
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4372
4484
|
this.technicalNameInput = page.getByLabel("Technical name");
|
|
@@ -4380,33 +4492,33 @@ class CustomFieldCreate {
|
|
|
4380
4492
|
}
|
|
4381
4493
|
}
|
|
4382
4494
|
|
|
4383
|
-
var __defProp$
|
|
4384
|
-
var __defNormalProp$
|
|
4385
|
-
var __publicField$
|
|
4386
|
-
__defNormalProp$
|
|
4495
|
+
var __defProp$8 = Object.defineProperty;
|
|
4496
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4497
|
+
var __publicField$8 = (obj, key, value) => {
|
|
4498
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4387
4499
|
return value;
|
|
4388
4500
|
};
|
|
4389
4501
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
4390
4502
|
constructor(page) {
|
|
4391
4503
|
super(page);
|
|
4392
4504
|
this.page = page;
|
|
4393
|
-
__publicField$
|
|
4394
|
-
__publicField$
|
|
4395
|
-
__publicField$
|
|
4396
|
-
__publicField$
|
|
4397
|
-
__publicField$
|
|
4398
|
-
__publicField$
|
|
4399
|
-
__publicField$
|
|
4400
|
-
__publicField$
|
|
4401
|
-
__publicField$
|
|
4402
|
-
__publicField$
|
|
4403
|
-
__publicField$
|
|
4404
|
-
__publicField$
|
|
4405
|
-
__publicField$
|
|
4406
|
-
__publicField$
|
|
4407
|
-
__publicField$
|
|
4408
|
-
__publicField$
|
|
4409
|
-
__publicField$
|
|
4505
|
+
__publicField$8(this, "newCustomFieldButton");
|
|
4506
|
+
__publicField$8(this, "customFieldEditDialog");
|
|
4507
|
+
__publicField$8(this, "newCustomFieldDialog");
|
|
4508
|
+
__publicField$8(this, "customFieldTechnicalNameInput");
|
|
4509
|
+
__publicField$8(this, "customFieldPositionInput");
|
|
4510
|
+
__publicField$8(this, "customFieldTypeSelectionList");
|
|
4511
|
+
__publicField$8(this, "customFieldModifyByStoreApiCheckbox");
|
|
4512
|
+
__publicField$8(this, "customFieldCancelButton");
|
|
4513
|
+
__publicField$8(this, "customFieldAddButton");
|
|
4514
|
+
__publicField$8(this, "customFieldEditApplyButton");
|
|
4515
|
+
__publicField$8(this, "customFieldLabelEnglishGBInput");
|
|
4516
|
+
__publicField$8(this, "customFieldPlaceholderEnglishGBInput");
|
|
4517
|
+
__publicField$8(this, "customFieldHelpTextEnglishGBInput");
|
|
4518
|
+
__publicField$8(this, "customFieldDeleteListButton");
|
|
4519
|
+
__publicField$8(this, "customFieldDeleteDialog");
|
|
4520
|
+
__publicField$8(this, "customFieldDeleteCancelButton");
|
|
4521
|
+
__publicField$8(this, "customFieldDeleteButton");
|
|
4410
4522
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
4411
4523
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
4412
4524
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
@@ -4451,20 +4563,20 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
4451
4563
|
}
|
|
4452
4564
|
}
|
|
4453
4565
|
|
|
4454
|
-
var __defProp$
|
|
4455
|
-
var __defNormalProp$
|
|
4456
|
-
var __publicField$
|
|
4457
|
-
__defNormalProp$
|
|
4566
|
+
var __defProp$7 = Object.defineProperty;
|
|
4567
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4568
|
+
var __publicField$7 = (obj, key, value) => {
|
|
4569
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4458
4570
|
return value;
|
|
4459
4571
|
};
|
|
4460
4572
|
class CategoryDetail {
|
|
4461
4573
|
constructor(page) {
|
|
4462
4574
|
this.page = page;
|
|
4463
|
-
__publicField$
|
|
4464
|
-
__publicField$
|
|
4465
|
-
__publicField$
|
|
4466
|
-
__publicField$
|
|
4467
|
-
__publicField$
|
|
4575
|
+
__publicField$7(this, "saveButton");
|
|
4576
|
+
__publicField$7(this, "cancelButton");
|
|
4577
|
+
__publicField$7(this, "customFieldCard");
|
|
4578
|
+
__publicField$7(this, "customFieldSetTabs");
|
|
4579
|
+
__publicField$7(this, "customFieldSetTabCustomContent");
|
|
4468
4580
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4469
4581
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4470
4582
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
@@ -4485,22 +4597,22 @@ class CategoryDetail {
|
|
|
4485
4597
|
}
|
|
4486
4598
|
}
|
|
4487
4599
|
|
|
4488
|
-
var __defProp$
|
|
4489
|
-
var __defNormalProp$
|
|
4490
|
-
var __publicField$
|
|
4491
|
-
__defNormalProp$
|
|
4600
|
+
var __defProp$6 = Object.defineProperty;
|
|
4601
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4602
|
+
var __publicField$6 = (obj, key, value) => {
|
|
4603
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4492
4604
|
return value;
|
|
4493
4605
|
};
|
|
4494
4606
|
class RuleCreate {
|
|
4495
4607
|
constructor(page) {
|
|
4496
4608
|
this.page = page;
|
|
4497
|
-
__publicField$
|
|
4498
|
-
__publicField$
|
|
4499
|
-
__publicField$
|
|
4500
|
-
__publicField$
|
|
4501
|
-
__publicField$
|
|
4502
|
-
__publicField$
|
|
4503
|
-
__publicField$
|
|
4609
|
+
__publicField$6(this, "nameInput");
|
|
4610
|
+
__publicField$6(this, "priorityInput");
|
|
4611
|
+
__publicField$6(this, "conditionTypeSelectionInput");
|
|
4612
|
+
__publicField$6(this, "conditionValueSelectionInput");
|
|
4613
|
+
__publicField$6(this, "filtersResultPopoverSelectionList");
|
|
4614
|
+
__publicField$6(this, "saveButton");
|
|
4615
|
+
__publicField$6(this, "cancelButton");
|
|
4504
4616
|
this.nameInput = page.getByLabel("Name");
|
|
4505
4617
|
this.priorityInput = page.getByLabel("Priority");
|
|
4506
4618
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -4514,20 +4626,20 @@ class RuleCreate {
|
|
|
4514
4626
|
}
|
|
4515
4627
|
}
|
|
4516
4628
|
|
|
4517
|
-
var __defProp$
|
|
4518
|
-
var __defNormalProp$
|
|
4519
|
-
var __publicField$
|
|
4520
|
-
__defNormalProp$
|
|
4629
|
+
var __defProp$5 = Object.defineProperty;
|
|
4630
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4631
|
+
var __publicField$5 = (obj, key, value) => {
|
|
4632
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4521
4633
|
return value;
|
|
4522
4634
|
};
|
|
4523
4635
|
class ManufacturerCreate {
|
|
4524
4636
|
constructor(page) {
|
|
4525
4637
|
this.page = page;
|
|
4526
|
-
__publicField$
|
|
4527
|
-
__publicField$
|
|
4528
|
-
__publicField$
|
|
4529
|
-
__publicField$
|
|
4530
|
-
__publicField$
|
|
4638
|
+
__publicField$5(this, "saveButton");
|
|
4639
|
+
__publicField$5(this, "cancelButton");
|
|
4640
|
+
__publicField$5(this, "nameInput");
|
|
4641
|
+
__publicField$5(this, "websiteInput");
|
|
4642
|
+
__publicField$5(this, "descriptionInput");
|
|
4531
4643
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4532
4644
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4533
4645
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4539,17 +4651,17 @@ class ManufacturerCreate {
|
|
|
4539
4651
|
}
|
|
4540
4652
|
}
|
|
4541
4653
|
|
|
4542
|
-
var __defProp$
|
|
4543
|
-
var __defNormalProp$
|
|
4544
|
-
var __publicField$
|
|
4545
|
-
__defNormalProp$
|
|
4654
|
+
var __defProp$4 = Object.defineProperty;
|
|
4655
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4656
|
+
var __publicField$4 = (obj, key, value) => {
|
|
4657
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4546
4658
|
return value;
|
|
4547
4659
|
};
|
|
4548
4660
|
class ManufacturerListing {
|
|
4549
4661
|
constructor(page) {
|
|
4550
4662
|
this.page = page;
|
|
4551
|
-
__publicField$
|
|
4552
|
-
__publicField$
|
|
4663
|
+
__publicField$4(this, "addManufacturerButton");
|
|
4664
|
+
__publicField$4(this, "manufacturerRows");
|
|
4553
4665
|
this.addManufacturerButton = page.getByText("Add manufacturer");
|
|
4554
4666
|
this.manufacturerRows = page.getByRole("row");
|
|
4555
4667
|
}
|
|
@@ -4581,19 +4693,19 @@ class ManufacturerListing {
|
|
|
4581
4693
|
}
|
|
4582
4694
|
}
|
|
4583
4695
|
|
|
4584
|
-
var __defProp$
|
|
4585
|
-
var __defNormalProp$
|
|
4586
|
-
var __publicField$
|
|
4587
|
-
__defNormalProp$
|
|
4696
|
+
var __defProp$3 = Object.defineProperty;
|
|
4697
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4698
|
+
var __publicField$3 = (obj, key, value) => {
|
|
4699
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4588
4700
|
return value;
|
|
4589
4701
|
};
|
|
4590
4702
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
4591
4703
|
constructor(page) {
|
|
4592
4704
|
super(page);
|
|
4593
4705
|
this.page = page;
|
|
4594
|
-
__publicField$
|
|
4595
|
-
__publicField$
|
|
4596
|
-
__publicField$
|
|
4706
|
+
__publicField$3(this, "customFieldCard");
|
|
4707
|
+
__publicField$3(this, "customFieldSetTabs");
|
|
4708
|
+
__publicField$3(this, "customFieldSetTabCustomContent");
|
|
4597
4709
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
4598
4710
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
4599
4711
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
@@ -4612,6 +4724,178 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
4612
4724
|
}
|
|
4613
4725
|
}
|
|
4614
4726
|
|
|
4727
|
+
var __defProp$2 = Object.defineProperty;
|
|
4728
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4729
|
+
var __publicField$2 = (obj, key, value) => {
|
|
4730
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4731
|
+
return value;
|
|
4732
|
+
};
|
|
4733
|
+
class ProductListing {
|
|
4734
|
+
constructor(page) {
|
|
4735
|
+
this.page = page;
|
|
4736
|
+
/**
|
|
4737
|
+
* Multi selection
|
|
4738
|
+
*/
|
|
4739
|
+
__publicField$2(this, "productsTable");
|
|
4740
|
+
__publicField$2(this, "bulkEditButton");
|
|
4741
|
+
/**
|
|
4742
|
+
* Bulk edit modal
|
|
4743
|
+
*/
|
|
4744
|
+
__publicField$2(this, "bulkEditModal");
|
|
4745
|
+
__publicField$2(this, "startBulkEditButton");
|
|
4746
|
+
this.productsTable = page.locator(".sw-data-grid__table");
|
|
4747
|
+
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
4748
|
+
this.bulkEditModal = page.locator(".sw-product-bulk-edit-modal");
|
|
4749
|
+
this.startBulkEditButton = this.bulkEditModal.getByRole("button", { name: "Start bulk edit" });
|
|
4750
|
+
}
|
|
4751
|
+
/**
|
|
4752
|
+
* Returns the url to the listing page.
|
|
4753
|
+
*
|
|
4754
|
+
* @param searchTerms - Includes search terms for filtering of the product list.
|
|
4755
|
+
*/
|
|
4756
|
+
url(searchTerms = []) {
|
|
4757
|
+
let url = "#/sw/product/index";
|
|
4758
|
+
if (searchTerms.length > 0) {
|
|
4759
|
+
let tempTerm = "";
|
|
4760
|
+
for (const searchTerm of searchTerms) {
|
|
4761
|
+
if (tempTerm != "") {
|
|
4762
|
+
tempTerm += "+";
|
|
4763
|
+
}
|
|
4764
|
+
tempTerm += searchTerm;
|
|
4765
|
+
}
|
|
4766
|
+
url += `?limit=25&page=1&term=${tempTerm}`;
|
|
4767
|
+
}
|
|
4768
|
+
return url;
|
|
4769
|
+
}
|
|
4770
|
+
/**
|
|
4771
|
+
* Returns the table row containing the product with the given product number.
|
|
4772
|
+
*
|
|
4773
|
+
* @param productNumber - Product number you are looking for.
|
|
4774
|
+
*/
|
|
4775
|
+
async getProductRow(productNumber) {
|
|
4776
|
+
const productTableRow = this.productsTable.locator(".sw-data-grid__row", { hasText: productNumber });
|
|
4777
|
+
const productNameSelector = ".sw-data-grid__cell--name";
|
|
4778
|
+
const productNumberSelector = ".sw-data-grid__cell--productNumber";
|
|
4779
|
+
const productManufacturerSelector = ".sw-data-grid__cell--manufacturer-name";
|
|
4780
|
+
const productActiveSelector = "sw-icon__regular-checkmark-xs";
|
|
4781
|
+
const productInactiveSelector = "sw-icon__regular-times-s";
|
|
4782
|
+
const productPriceSelector = ".sw-data-grid__cell--price-EUR";
|
|
4783
|
+
return {
|
|
4784
|
+
selectionCheckbox: productTableRow.getByRole("checkbox"),
|
|
4785
|
+
productName: productTableRow.locator(productNameSelector),
|
|
4786
|
+
productNumber: productTableRow.locator(productNumberSelector),
|
|
4787
|
+
productManufacturer: productTableRow.locator(productManufacturerSelector),
|
|
4788
|
+
productActive: productTableRow.getByTestId(productActiveSelector),
|
|
4789
|
+
productInactive: productTableRow.getByTestId(productInactiveSelector),
|
|
4790
|
+
productPrice: productTableRow.locator(productPriceSelector)
|
|
4791
|
+
};
|
|
4792
|
+
}
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
var __defProp$1 = Object.defineProperty;
|
|
4796
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4797
|
+
var __publicField$1 = (obj, key, value) => {
|
|
4798
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4799
|
+
return value;
|
|
4800
|
+
};
|
|
4801
|
+
class ProductBulkEdit {
|
|
4802
|
+
constructor(page) {
|
|
4803
|
+
this.page = page;
|
|
4804
|
+
/**
|
|
4805
|
+
* Bulk edit values
|
|
4806
|
+
*/
|
|
4807
|
+
__publicField$1(this, "changeManufacturerRow");
|
|
4808
|
+
__publicField$1(this, "changeManufacturerCheckbox");
|
|
4809
|
+
__publicField$1(this, "manufacturerDropdown");
|
|
4810
|
+
__publicField$1(this, "manufacturerDropdownInput");
|
|
4811
|
+
__publicField$1(this, "manufacturerListResult");
|
|
4812
|
+
__publicField$1(this, "changeActiveRow");
|
|
4813
|
+
__publicField$1(this, "changeActiveCheckbox");
|
|
4814
|
+
__publicField$1(this, "activeToggle");
|
|
4815
|
+
__publicField$1(this, "changePriceRow");
|
|
4816
|
+
__publicField$1(this, "changePriceCheckbox");
|
|
4817
|
+
__publicField$1(this, "grossPriceInput");
|
|
4818
|
+
__publicField$1(this, "changeReleaseDateRow");
|
|
4819
|
+
__publicField$1(this, "changeReleaseDateCheckbox");
|
|
4820
|
+
__publicField$1(this, "releaseDateInput");
|
|
4821
|
+
__publicField$1(this, "changeStockRow");
|
|
4822
|
+
__publicField$1(this, "changeStockCheckbox");
|
|
4823
|
+
__publicField$1(this, "stockChangeMethodDropdown");
|
|
4824
|
+
__publicField$1(this, "stockChangeMethodInput");
|
|
4825
|
+
__publicField$1(this, "stockInput");
|
|
4826
|
+
__publicField$1(this, "changeRestockTimeRow");
|
|
4827
|
+
__publicField$1(this, "changeRestockTimeCheckbox");
|
|
4828
|
+
__publicField$1(this, "restockTimeChangeMethodDropdown");
|
|
4829
|
+
__publicField$1(this, "restockTimeChangeMethodInput");
|
|
4830
|
+
__publicField$1(this, "restockTimeInput");
|
|
4831
|
+
__publicField$1(this, "changeTagsRow");
|
|
4832
|
+
__publicField$1(this, "changeTagsCheckbox");
|
|
4833
|
+
__publicField$1(this, "tagsChangeMethodDropdown");
|
|
4834
|
+
__publicField$1(this, "tagsChangeMethodInput");
|
|
4835
|
+
__publicField$1(this, "tagsInput");
|
|
4836
|
+
__publicField$1(this, "changeSalesChannelRow");
|
|
4837
|
+
__publicField$1(this, "changeSalesChannelCheckbox");
|
|
4838
|
+
__publicField$1(this, "salesChannelChangeMethodDropdown");
|
|
4839
|
+
__publicField$1(this, "salesChannelChangeMethodInput");
|
|
4840
|
+
__publicField$1(this, "salesChannelInput");
|
|
4841
|
+
__publicField$1(this, "applyChangesButton");
|
|
4842
|
+
/**
|
|
4843
|
+
* Confirmation modal
|
|
4844
|
+
*/
|
|
4845
|
+
__publicField$1(this, "confirmModal");
|
|
4846
|
+
__publicField$1(this, "confirmModalApplyChangesButton");
|
|
4847
|
+
__publicField$1(this, "confirmModalLoadingSpinner");
|
|
4848
|
+
__publicField$1(this, "confirmModalSuccessHeader");
|
|
4849
|
+
__publicField$1(this, "confirmModalSuccessCloseButton");
|
|
4850
|
+
this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
|
|
4851
|
+
this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
|
|
4852
|
+
this.manufacturerDropdown = this.changeManufacturerRow.locator(".sw-select__selection");
|
|
4853
|
+
this.manufacturerDropdownInput = this.changeManufacturerRow.getByPlaceholder("Select manufacturer...");
|
|
4854
|
+
this.manufacturerListResult = this.changeManufacturerRow.getByRole("list");
|
|
4855
|
+
this.changeActiveRow = page.locator(".sw-bulk-edit-change-field-active");
|
|
4856
|
+
this.changeActiveCheckbox = this.changeActiveRow.getByRole("checkbox").first();
|
|
4857
|
+
this.activeToggle = this.changeActiveRow.getByRole("checkbox").last();
|
|
4858
|
+
this.changePriceRow = page.locator(".sw-bulk-edit-change-field-price");
|
|
4859
|
+
this.changePriceCheckbox = this.changePriceRow.getByRole("checkbox");
|
|
4860
|
+
this.grossPriceInput = this.changePriceRow.getByPlaceholder("Enter gross price...");
|
|
4861
|
+
this.changeReleaseDateRow = page.locator(".sw-bulk-edit-change-field-releaseDate");
|
|
4862
|
+
this.changeReleaseDateCheckbox = this.changeReleaseDateRow.getByRole("checkbox");
|
|
4863
|
+
this.releaseDateInput = this.changeReleaseDateRow.getByPlaceholder("Y-m-d H:i").last();
|
|
4864
|
+
this.changeStockRow = page.locator(".sw-bulk-edit-change-field-stock");
|
|
4865
|
+
this.changeStockCheckbox = this.changeStockRow.getByRole("checkbox");
|
|
4866
|
+
this.stockChangeMethodDropdown = this.changeStockRow.locator(".sw-single-select__selection-text");
|
|
4867
|
+
this.stockChangeMethodInput = this.changeStockRow.locator(".sw-single-select__selection-input");
|
|
4868
|
+
this.stockInput = this.changeStockRow.getByPlaceholder("Enter quantity in stock...");
|
|
4869
|
+
this.changeRestockTimeRow = page.locator(".sw-bulk-edit-change-field-restockTime");
|
|
4870
|
+
this.changeRestockTimeCheckbox = this.changeRestockTimeRow.getByRole("checkbox");
|
|
4871
|
+
this.restockTimeChangeMethodDropdown = this.changeRestockTimeRow.locator(".sw-single-select__selection-text");
|
|
4872
|
+
this.restockTimeChangeMethodInput = this.changeRestockTimeRow.locator(".sw-single-select__selection-input");
|
|
4873
|
+
this.restockTimeInput = this.changeRestockTimeRow.getByPlaceholder("Enter restock time in days...");
|
|
4874
|
+
this.changeTagsRow = page.locator(".sw-bulk-edit-change-field-tags");
|
|
4875
|
+
this.changeTagsCheckbox = this.changeTagsRow.getByRole("checkbox");
|
|
4876
|
+
this.tagsChangeMethodDropdown = this.changeTagsRow.locator(".sw-single-select__selection-text");
|
|
4877
|
+
this.tagsChangeMethodInput = this.changeTagsRow.locator(".sw-single-select__selection-input");
|
|
4878
|
+
this.tagsInput = this.changeTagsRow.getByPlaceholder("Enter tags...");
|
|
4879
|
+
this.changeSalesChannelRow = page.locator(".sw-bulk-edit-change-field-visibilities");
|
|
4880
|
+
this.changeSalesChannelCheckbox = this.changeSalesChannelRow.getByRole("checkbox");
|
|
4881
|
+
this.salesChannelChangeMethodDropdown = this.changeSalesChannelRow.locator(".sw-single-select__selection-text");
|
|
4882
|
+
this.salesChannelChangeMethodInput = this.changeSalesChannelRow.locator(".sw-single-select__selection-input");
|
|
4883
|
+
this.salesChannelInput = this.changeSalesChannelRow.getByRole("textbox");
|
|
4884
|
+
this.applyChangesButton = page.getByRole("button", { name: "Apply changes" });
|
|
4885
|
+
this.confirmModal = page.locator(".sw-bulk-edit-save-modal");
|
|
4886
|
+
this.confirmModalApplyChangesButton = this.confirmModal.getByRole("button", { name: "Apply changes" });
|
|
4887
|
+
this.confirmModalLoadingSpinner = this.confirmModal.locator(".sw-bulk-edit-save-modal__loading-icon");
|
|
4888
|
+
this.confirmModalSuccessHeader = this.confirmModal.getByRole("heading", { name: "Bulk edit - Success" });
|
|
4889
|
+
this.confirmModalSuccessCloseButton = this.confirmModal.getByRole("button", { name: "Close" }).first();
|
|
4890
|
+
}
|
|
4891
|
+
url() {
|
|
4892
|
+
throw new Error("Bulk edit page does not have a callable URL.");
|
|
4893
|
+
}
|
|
4894
|
+
async getDropdownEntry(entry) {
|
|
4895
|
+
return this.page.locator(`.sw-select-result`, { hasText: entry });
|
|
4896
|
+
}
|
|
4897
|
+
}
|
|
4898
|
+
|
|
4615
4899
|
const AdminPageObjects = {
|
|
4616
4900
|
ProductDetail,
|
|
4617
4901
|
OrderDetail,
|
|
@@ -4638,7 +4922,9 @@ const AdminPageObjects = {
|
|
|
4638
4922
|
CustomFieldDetail,
|
|
4639
4923
|
ManufacturerCreate,
|
|
4640
4924
|
ManufacturerDetail,
|
|
4641
|
-
ManufacturerListing
|
|
4925
|
+
ManufacturerListing,
|
|
4926
|
+
ProductListing,
|
|
4927
|
+
ProductBulkEdit
|
|
4642
4928
|
};
|
|
4643
4929
|
const test$5 = test$e.extend({
|
|
4644
4930
|
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
@@ -4718,6 +5004,12 @@ const test$5 = test$e.extend({
|
|
|
4718
5004
|
},
|
|
4719
5005
|
AdminManufacturerDetail: async ({ AdminPage }, use) => {
|
|
4720
5006
|
await use(new ManufacturerDetail(AdminPage));
|
|
5007
|
+
},
|
|
5008
|
+
AdminProductListing: async ({ AdminPage }, use) => {
|
|
5009
|
+
await use(new ProductListing(AdminPage));
|
|
5010
|
+
},
|
|
5011
|
+
AdminProductBulkEdit: async ({ AdminPage }, use) => {
|
|
5012
|
+
await use(new ProductBulkEdit(AdminPage));
|
|
4721
5013
|
}
|
|
4722
5014
|
});
|
|
4723
5015
|
|
|
@@ -5375,11 +5667,110 @@ const SetSystemConfigValues = test$e.extend({
|
|
|
5375
5667
|
}
|
|
5376
5668
|
});
|
|
5377
5669
|
|
|
5670
|
+
const BulkEditProducts = test$e.extend({
|
|
5671
|
+
BulkEditProducts: async ({ AdminProductBulkEdit, AdminProductListing }, use) => {
|
|
5672
|
+
const task = (products, changes) => {
|
|
5673
|
+
return async function BulkEditProducts2() {
|
|
5674
|
+
for (const product of products) {
|
|
5675
|
+
const productTableRow = await AdminProductListing.getProductRow(product.productNumber);
|
|
5676
|
+
await productTableRow.selectionCheckbox.click();
|
|
5677
|
+
}
|
|
5678
|
+
await AdminProductListing.bulkEditButton.click();
|
|
5679
|
+
await AdminProductListing.startBulkEditButton.click();
|
|
5680
|
+
if (changes["grossPrice"] != null) {
|
|
5681
|
+
await AdminProductBulkEdit.changePriceCheckbox.click();
|
|
5682
|
+
await AdminProductBulkEdit.grossPriceInput.fill(changes["grossPrice"].value);
|
|
5683
|
+
}
|
|
5684
|
+
if (changes["active"] != null) {
|
|
5685
|
+
if (changes["active"].value == "false") {
|
|
5686
|
+
await AdminProductBulkEdit.changeActiveCheckbox.click();
|
|
5687
|
+
} else {
|
|
5688
|
+
await AdminProductBulkEdit.changeActiveCheckbox.click();
|
|
5689
|
+
await AdminProductBulkEdit.activeToggle.click();
|
|
5690
|
+
}
|
|
5691
|
+
}
|
|
5692
|
+
if (changes["manufacturer"] != null) {
|
|
5693
|
+
await AdminProductBulkEdit.changeManufacturerCheckbox.click();
|
|
5694
|
+
await AdminProductBulkEdit.manufacturerDropdown.click();
|
|
5695
|
+
const responsePromise = AdminProductBulkEdit.page.waitForResponse(
|
|
5696
|
+
(response2) => response2.url().includes(`product-manufacturer`) && response2.status() === 200 && response2.request().method() === "POST"
|
|
5697
|
+
);
|
|
5698
|
+
await AdminProductBulkEdit.manufacturerDropdownInput.fill(changes["manufacturer"].value);
|
|
5699
|
+
const response = await responsePromise;
|
|
5700
|
+
expect(response.ok()).toBeTruthy();
|
|
5701
|
+
const searchResult = await AdminProductBulkEdit.getDropdownEntry(changes["manufacturer"].value);
|
|
5702
|
+
await searchResult.click();
|
|
5703
|
+
}
|
|
5704
|
+
if (changes["releaseDate"] != null) {
|
|
5705
|
+
await AdminProductBulkEdit.changeReleaseDateCheckbox.click();
|
|
5706
|
+
await AdminProductBulkEdit.releaseDateInput.fill(changes["releaseDate"].value);
|
|
5707
|
+
}
|
|
5708
|
+
if (changes["stock"] != null) {
|
|
5709
|
+
await AdminProductBulkEdit.changeStockCheckbox.click();
|
|
5710
|
+
await AdminProductBulkEdit.stockChangeMethodDropdown.click();
|
|
5711
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["stock"].method)).click();
|
|
5712
|
+
if (changes["stock"].method != "Clear") {
|
|
5713
|
+
await AdminProductBulkEdit.stockInput.fill(changes["stock"].value);
|
|
5714
|
+
}
|
|
5715
|
+
}
|
|
5716
|
+
if (changes["restockTime"] != null) {
|
|
5717
|
+
await AdminProductBulkEdit.changeRestockTimeCheckbox.click();
|
|
5718
|
+
await AdminProductBulkEdit.restockTimeChangeMethodDropdown.click();
|
|
5719
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["restockTime"].method)).click();
|
|
5720
|
+
if (changes["restockTime"].method != "Clear") {
|
|
5721
|
+
await AdminProductBulkEdit.restockTimeInput.fill(changes["restockTime"].value);
|
|
5722
|
+
}
|
|
5723
|
+
}
|
|
5724
|
+
if (changes["tags"] != null) {
|
|
5725
|
+
await AdminProductBulkEdit.changeTagsCheckbox.click();
|
|
5726
|
+
await AdminProductBulkEdit.tagsChangeMethodDropdown.click();
|
|
5727
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["tags"].method)).click();
|
|
5728
|
+
if (changes["tags"].method != "Clear") {
|
|
5729
|
+
await AdminProductBulkEdit.tagsInput.click();
|
|
5730
|
+
const responsePromise = AdminProductBulkEdit.page.waitForResponse(
|
|
5731
|
+
(response2) => response2.url().includes(`search/tag`) && response2.status() === 200 && response2.request().method() === "POST"
|
|
5732
|
+
);
|
|
5733
|
+
await AdminProductBulkEdit.tagsInput.fill(changes["tags"].value);
|
|
5734
|
+
const response = await responsePromise;
|
|
5735
|
+
expect(response.ok()).toBeTruthy();
|
|
5736
|
+
const searchResult = await AdminProductBulkEdit.getDropdownEntry(changes["tags"].value);
|
|
5737
|
+
await searchResult.click();
|
|
5738
|
+
}
|
|
5739
|
+
}
|
|
5740
|
+
if (changes["saleschannel"] != null) {
|
|
5741
|
+
await AdminProductBulkEdit.changeSalesChannelCheckbox.click();
|
|
5742
|
+
await AdminProductBulkEdit.salesChannelChangeMethodDropdown.click();
|
|
5743
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["saleschannel"].method)).click();
|
|
5744
|
+
if (changes["saleschannel"].method != "Clear") {
|
|
5745
|
+
await AdminProductBulkEdit.salesChannelInput.click();
|
|
5746
|
+
const responsePromise = AdminProductBulkEdit.page.waitForResponse(
|
|
5747
|
+
(response2) => response2.url().includes(`search/sales-channel`) && response2.status() === 200 && response2.request().method() === "POST"
|
|
5748
|
+
);
|
|
5749
|
+
await AdminProductBulkEdit.salesChannelInput.fill(changes["saleschannel"].value);
|
|
5750
|
+
const response = await responsePromise;
|
|
5751
|
+
expect(response.ok()).toBeTruthy();
|
|
5752
|
+
const searchResult = await AdminProductBulkEdit.getDropdownEntry(changes["saleschannel"].value);
|
|
5753
|
+
await searchResult.click();
|
|
5754
|
+
}
|
|
5755
|
+
}
|
|
5756
|
+
await AdminProductBulkEdit.applyChangesButton.click();
|
|
5757
|
+
await AdminProductBulkEdit.confirmModalApplyChangesButton.click();
|
|
5758
|
+
await AdminProductBulkEdit.confirmModalLoadingSpinner.waitFor({ state: "visible" });
|
|
5759
|
+
await AdminProductBulkEdit.confirmModalLoadingSpinner.waitFor({ state: "hidden" });
|
|
5760
|
+
await expect(AdminProductBulkEdit.confirmModalSuccessHeader).toBeVisible();
|
|
5761
|
+
await AdminProductBulkEdit.confirmModalSuccessCloseButton.click();
|
|
5762
|
+
};
|
|
5763
|
+
};
|
|
5764
|
+
await use(task);
|
|
5765
|
+
}
|
|
5766
|
+
});
|
|
5767
|
+
|
|
5378
5768
|
const test$3 = mergeTests(
|
|
5379
5769
|
SaveProduct,
|
|
5380
5770
|
ExpectNotification,
|
|
5381
5771
|
CreateLinkTypeCategory,
|
|
5382
|
-
SetSystemConfigValues
|
|
5772
|
+
SetSystemConfigValues,
|
|
5773
|
+
BulkEditProducts
|
|
5383
5774
|
);
|
|
5384
5775
|
|
|
5385
5776
|
const Login = test$e.extend({
|