@shopware-ag/acceptance-test-suite 5.1.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +114 -2
- package/dist/index.d.ts +114 -2
- package/dist/index.mjs +888 -506
- 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$I = Object.defineProperty;
|
|
389
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __publicField$I = (obj, key, value) => {
|
|
391
|
+
__defNormalProp$I(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$I(this, "context");
|
|
397
|
+
__publicField$I(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$I(_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$F(_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$H = Object.defineProperty;
|
|
500
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
501
|
+
var __publicField$H = (obj, key, value) => {
|
|
502
|
+
__defNormalProp$H(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$H(this, "context");
|
|
508
|
+
__publicField$H(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$H(_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$G = Object.defineProperty;
|
|
574
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
575
|
+
var __publicField$G = (obj, key, value) => {
|
|
576
|
+
__defNormalProp$G(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$G(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$F = Object.defineProperty;
|
|
879
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
880
|
+
var __publicField$F = (obj, key, value) => {
|
|
881
|
+
__defNormalProp$F(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$F(this, "page");
|
|
887
|
+
__publicField$F(this, "name");
|
|
888
|
+
__publicField$F(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$E = Object.defineProperty;
|
|
938
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
939
|
+
var __publicField$E = (obj, key, value) => {
|
|
940
|
+
__defNormalProp$E(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$E(this, "AdminApiClient");
|
|
946
|
+
__publicField$E(this, "IdProvider");
|
|
947
|
+
__publicField$E(this, "namePrefix", "Test-");
|
|
948
|
+
__publicField$E(this, "nameSuffix", "");
|
|
949
|
+
__publicField$E(this, "defaultSalesChannel");
|
|
950
|
+
__publicField$E(this, "defaultTaxId");
|
|
951
|
+
__publicField$E(this, "defaultCurrencyId");
|
|
952
|
+
__publicField$E(this, "defaultCategoryId");
|
|
953
|
+
__publicField$E(this, "defaultLanguageId");
|
|
954
|
+
__publicField$E(this, "defaultCountryId");
|
|
955
|
+
__publicField$E(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$E(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,19 @@ class TestDataService {
|
|
|
966
966
|
*
|
|
967
967
|
* @private
|
|
968
968
|
*/
|
|
969
|
-
__publicField$
|
|
969
|
+
__publicField$E(this, "highPriorityEntities", ["order", "product", "landing_page"]);
|
|
970
970
|
/**
|
|
971
971
|
* A registry of all created records.
|
|
972
972
|
*
|
|
973
973
|
* @private
|
|
974
974
|
*/
|
|
975
|
-
__publicField$
|
|
975
|
+
__publicField$E(this, "createdRecords", []);
|
|
976
976
|
/**
|
|
977
977
|
* Function that generates combinations from n number of arrays
|
|
978
978
|
* with m number of elements in them.
|
|
979
979
|
* @param array
|
|
980
980
|
*/
|
|
981
|
-
__publicField$
|
|
981
|
+
__publicField$E(this, "combineAll", (array) => {
|
|
982
982
|
const result = [];
|
|
983
983
|
const max = array.length - 1;
|
|
984
984
|
const helper = (tmpArray, i) => {
|
|
@@ -1473,6 +1473,37 @@ class TestDataService {
|
|
|
1473
1473
|
this.addCreatedRecord("cms_page", layout.id);
|
|
1474
1474
|
return layout;
|
|
1475
1475
|
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Creates a random country
|
|
1478
|
+
*
|
|
1479
|
+
* @param overrides - Specific data overrides that will be applied to the country data struct.
|
|
1480
|
+
*/
|
|
1481
|
+
async createCountry(overrides = {}) {
|
|
1482
|
+
const basicCountry = this.getCountryStruct(overrides);
|
|
1483
|
+
const countryResponse = await this.AdminApiClient.post("country?_response=detail", {
|
|
1484
|
+
data: basicCountry
|
|
1485
|
+
});
|
|
1486
|
+
expect(countryResponse.ok()).toBeTruthy();
|
|
1487
|
+
const { data: country } = await countryResponse.json();
|
|
1488
|
+
this.addCreatedRecord("country", country.id);
|
|
1489
|
+
return country;
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Creates a random currency with default rounding of 2 decimals
|
|
1493
|
+
*
|
|
1494
|
+
* @param roundingDecimals - Decimals of the rounding shown in Storefront, default value 2
|
|
1495
|
+
* @param overrides - Specific data overrides that will be applied to the currency data struct.
|
|
1496
|
+
*/
|
|
1497
|
+
async createCurrency(overrides = {}, roundingDecimals = 2) {
|
|
1498
|
+
const basicCurrency = this.getCurrencyStruct(overrides, roundingDecimals);
|
|
1499
|
+
const currencyResponse = await this.AdminApiClient.post("currency?_response=detail", {
|
|
1500
|
+
data: basicCurrency
|
|
1501
|
+
});
|
|
1502
|
+
expect(currencyResponse.ok()).toBeTruthy();
|
|
1503
|
+
const { data: currency } = await currencyResponse.json();
|
|
1504
|
+
this.addCreatedRecord("currency", currency.id);
|
|
1505
|
+
return currency;
|
|
1506
|
+
}
|
|
1476
1507
|
/**
|
|
1477
1508
|
* Assigns a media resource as the download of a digital product.
|
|
1478
1509
|
*
|
|
@@ -1528,6 +1559,43 @@ class TestDataService {
|
|
|
1528
1559
|
}
|
|
1529
1560
|
});
|
|
1530
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Assigns a country to a currency with default roundings of 2.
|
|
1564
|
+
*
|
|
1565
|
+
* @param currencyId - The uuid of currency.
|
|
1566
|
+
* @param countryId - The uuid of country.
|
|
1567
|
+
* @param roundingDecimals - The roundings of item and total values in storefront, default 2 decimals
|
|
1568
|
+
*/
|
|
1569
|
+
async assignCurrencyCountryRounding(currencyId, countryId, roundingDecimals = 2) {
|
|
1570
|
+
const syncCurrencyCountryRoundingResponse = await this.AdminApiClient.post("./_action/sync", {
|
|
1571
|
+
data: {
|
|
1572
|
+
"write-currency-country-rounding": {
|
|
1573
|
+
entity: "currency_country_rounding",
|
|
1574
|
+
action: "upsert",
|
|
1575
|
+
payload: [
|
|
1576
|
+
{
|
|
1577
|
+
id: this.IdProvider.getIdPair().uuid,
|
|
1578
|
+
currencyId,
|
|
1579
|
+
countryId,
|
|
1580
|
+
itemRounding: {
|
|
1581
|
+
decimals: roundingDecimals,
|
|
1582
|
+
interval: 0.01,
|
|
1583
|
+
roundForNet: true
|
|
1584
|
+
},
|
|
1585
|
+
totalRounding: {
|
|
1586
|
+
decimals: roundingDecimals,
|
|
1587
|
+
interval: 0.01,
|
|
1588
|
+
roundForNet: true
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
]
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1595
|
+
expect(syncCurrencyCountryRoundingResponse.ok()).toBeTruthy();
|
|
1596
|
+
const { data: currencyCountry } = await syncCurrencyCountryRoundingResponse.json();
|
|
1597
|
+
return currencyCountry;
|
|
1598
|
+
}
|
|
1531
1599
|
/**
|
|
1532
1600
|
* Assigns a product to a category.
|
|
1533
1601
|
*
|
|
@@ -1585,6 +1653,56 @@ class TestDataService {
|
|
|
1585
1653
|
async assignManufacturerProduct(manufacturerId, productId) {
|
|
1586
1654
|
await this.assignProductManufacturer(productId, manufacturerId);
|
|
1587
1655
|
}
|
|
1656
|
+
/**
|
|
1657
|
+
* Assigns a currency to a sales channel.
|
|
1658
|
+
*
|
|
1659
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
1660
|
+
* @param currencyId - The uuid of the currency.
|
|
1661
|
+
*/
|
|
1662
|
+
async assignSalesChannelCurrency(salesChannelId, currencyId) {
|
|
1663
|
+
const syncSalesChannelResponse = await this.AdminApiClient.post("./_action/sync", {
|
|
1664
|
+
data: {
|
|
1665
|
+
"write-sales-channel": {
|
|
1666
|
+
entity: "sales_channel",
|
|
1667
|
+
action: "upsert",
|
|
1668
|
+
payload: [
|
|
1669
|
+
{
|
|
1670
|
+
id: salesChannelId,
|
|
1671
|
+
currencies: [{ id: currencyId }]
|
|
1672
|
+
}
|
|
1673
|
+
]
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
});
|
|
1677
|
+
expect(syncSalesChannelResponse.ok()).toBeTruthy();
|
|
1678
|
+
const { data: salesChannel } = await syncSalesChannelResponse.json();
|
|
1679
|
+
return salesChannel;
|
|
1680
|
+
}
|
|
1681
|
+
/**
|
|
1682
|
+
* Assigns a country to a sales channel.
|
|
1683
|
+
*
|
|
1684
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
1685
|
+
* @param countryId - The uuid of the country.
|
|
1686
|
+
*/
|
|
1687
|
+
async assignSalesChannelCountry(salesChannelId, countryId) {
|
|
1688
|
+
const syncSalesChannelResponse = await this.AdminApiClient.post("./_action/sync", {
|
|
1689
|
+
data: {
|
|
1690
|
+
"write-sales-channel": {
|
|
1691
|
+
entity: "sales_channel",
|
|
1692
|
+
action: "upsert",
|
|
1693
|
+
payload: [
|
|
1694
|
+
{
|
|
1695
|
+
id: salesChannelId,
|
|
1696
|
+
countries: [{ id: countryId }]
|
|
1697
|
+
}
|
|
1698
|
+
]
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
});
|
|
1702
|
+
expect(syncSalesChannelResponse.ok()).toBeTruthy();
|
|
1703
|
+
const { data: salesChannel } = await syncSalesChannelResponse.json();
|
|
1704
|
+
return salesChannel;
|
|
1705
|
+
}
|
|
1588
1706
|
/**
|
|
1589
1707
|
* Assigns a media resource to a payment method as a logo.
|
|
1590
1708
|
*
|
|
@@ -1898,6 +2016,60 @@ class TestDataService {
|
|
|
1898
2016
|
convertDateTime(date) {
|
|
1899
2017
|
return date.toISOString().slice(0, 19).replace("T", " ");
|
|
1900
2018
|
}
|
|
2019
|
+
/**
|
|
2020
|
+
* Retrieves a country Id based on its iso2 code.
|
|
2021
|
+
*
|
|
2022
|
+
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
2023
|
+
*/
|
|
2024
|
+
async getCountryId(iso2) {
|
|
2025
|
+
const countryResponse = await this.AdminApiClient.post("search/country", {
|
|
2026
|
+
data: {
|
|
2027
|
+
limit: 1,
|
|
2028
|
+
filter: [{
|
|
2029
|
+
type: "equals",
|
|
2030
|
+
field: "iso",
|
|
2031
|
+
value: iso2
|
|
2032
|
+
}]
|
|
2033
|
+
}
|
|
2034
|
+
});
|
|
2035
|
+
const { data: result } = await countryResponse.json();
|
|
2036
|
+
return result[0];
|
|
2037
|
+
}
|
|
2038
|
+
getCountryStruct(overrides = {}) {
|
|
2039
|
+
const { uuid: countryUuid, id: countryId } = this.IdProvider.getIdPair();
|
|
2040
|
+
const basicCountry = {
|
|
2041
|
+
id: countryUuid,
|
|
2042
|
+
name: "Country-" + countryId,
|
|
2043
|
+
iso: "" + countryId.substring(0, 2),
|
|
2044
|
+
iso3: "" + countryId.substring(0, 3),
|
|
2045
|
+
active: true,
|
|
2046
|
+
shippingAvailable: true
|
|
2047
|
+
};
|
|
2048
|
+
return Object.assign({}, basicCountry, overrides);
|
|
2049
|
+
}
|
|
2050
|
+
getCurrencyStruct(overrides = {}, roundingDecimals) {
|
|
2051
|
+
const { uuid: currencyUuid, id: currencyId } = this.IdProvider.getIdPair();
|
|
2052
|
+
const basicCurrency = {
|
|
2053
|
+
id: currencyUuid,
|
|
2054
|
+
name: "Currency-" + currencyId,
|
|
2055
|
+
shortName: "CUR" + currencyId,
|
|
2056
|
+
isoCode: "" + currencyId.substring(0, 3),
|
|
2057
|
+
symbol: "C$",
|
|
2058
|
+
factor: 2.4,
|
|
2059
|
+
itemRounding: {
|
|
2060
|
+
decimals: roundingDecimals,
|
|
2061
|
+
interval: 0.01,
|
|
2062
|
+
roundForNet: true
|
|
2063
|
+
},
|
|
2064
|
+
totalRounding: {
|
|
2065
|
+
decimals: roundingDecimals,
|
|
2066
|
+
interval: 0.01,
|
|
2067
|
+
roundForNet: true
|
|
2068
|
+
},
|
|
2069
|
+
taxFreeFrom: 0
|
|
2070
|
+
};
|
|
2071
|
+
return Object.assign({}, basicCurrency, overrides);
|
|
2072
|
+
}
|
|
1901
2073
|
getBasicProductStruct(taxId = this.defaultTaxId, currencyId = this.defaultCurrencyId, overrides = {}) {
|
|
1902
2074
|
const { id: productId, uuid: productUuid } = this.IdProvider.getIdPair();
|
|
1903
2075
|
const productName = `${this.namePrefix}Product-${productId}${this.nameSuffix}`;
|
|
@@ -2441,16 +2613,16 @@ const test$8 = test$e.extend({
|
|
|
2441
2613
|
}
|
|
2442
2614
|
});
|
|
2443
2615
|
|
|
2444
|
-
var __defProp$
|
|
2445
|
-
var __defNormalProp$
|
|
2446
|
-
var __publicField$
|
|
2447
|
-
__defNormalProp$
|
|
2616
|
+
var __defProp$D = Object.defineProperty;
|
|
2617
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2618
|
+
var __publicField$D = (obj, key, value) => {
|
|
2619
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2448
2620
|
return value;
|
|
2449
2621
|
};
|
|
2450
2622
|
class IdProvider {
|
|
2451
2623
|
constructor(workerIndex, seed) {
|
|
2452
|
-
__publicField$
|
|
2453
|
-
__publicField$
|
|
2624
|
+
__publicField$D(this, "workerIndex");
|
|
2625
|
+
__publicField$D(this, "seed");
|
|
2454
2626
|
this.workerIndex = workerIndex;
|
|
2455
2627
|
this.seed = seed;
|
|
2456
2628
|
}
|
|
@@ -2524,45 +2696,72 @@ const test$7 = test$e.extend({
|
|
|
2524
2696
|
]
|
|
2525
2697
|
});
|
|
2526
2698
|
|
|
2527
|
-
var __defProp$
|
|
2528
|
-
var __defNormalProp$
|
|
2529
|
-
var __publicField$
|
|
2530
|
-
__defNormalProp$
|
|
2699
|
+
var __defProp$C = Object.defineProperty;
|
|
2700
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2701
|
+
var __publicField$C = (obj, key, value) => {
|
|
2702
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2531
2703
|
return value;
|
|
2532
2704
|
};
|
|
2533
2705
|
class Home {
|
|
2534
2706
|
constructor(page) {
|
|
2535
2707
|
this.page = page;
|
|
2536
|
-
__publicField$
|
|
2537
|
-
__publicField$
|
|
2708
|
+
__publicField$C(this, "productImages");
|
|
2709
|
+
__publicField$C(this, "productListItems");
|
|
2710
|
+
__publicField$C(this, "languagesDropdown");
|
|
2711
|
+
__publicField$C(this, "currenciesDropdown");
|
|
2538
2712
|
this.productImages = page.locator(".product-image-link");
|
|
2539
2713
|
this.productListItems = page.getByRole("listitem");
|
|
2714
|
+
this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
|
|
2715
|
+
this.currenciesDropdown = page.getByLabel("Shop settings").locator(".currencies-menu");
|
|
2716
|
+
}
|
|
2717
|
+
async getListingItemByProductId(productId) {
|
|
2718
|
+
const listingItem = this.page.getByRole("listitem").filter({ has: this.page.locator(`[value="${productId}"]`) });
|
|
2719
|
+
const productImage = listingItem.locator(".product-image-link");
|
|
2720
|
+
const productRating = listingItem.locator(".product-rating");
|
|
2721
|
+
const productVariantCharacteristics = listingItem.locator(".product-variant-characteristics");
|
|
2722
|
+
const productDescription = listingItem.locator(".product-description");
|
|
2723
|
+
const productPriceUnit = listingItem.locator(".product-price-unit");
|
|
2724
|
+
const productCheapestPrice = listingItem.locator(".product-cheapest-price");
|
|
2725
|
+
const productPrice = listingItem.locator(".product-price");
|
|
2726
|
+
const productName = listingItem.locator(".product-name");
|
|
2727
|
+
const productAddToShoppingCart = listingItem.getByRole("button", { name: "Add to shopping cart" });
|
|
2728
|
+
return {
|
|
2729
|
+
productImage,
|
|
2730
|
+
productRating,
|
|
2731
|
+
productVariantCharacteristics,
|
|
2732
|
+
productDescription,
|
|
2733
|
+
productPriceUnit,
|
|
2734
|
+
productCheapestPrice,
|
|
2735
|
+
productPrice,
|
|
2736
|
+
productName,
|
|
2737
|
+
productAddToShoppingCart
|
|
2738
|
+
};
|
|
2540
2739
|
}
|
|
2541
2740
|
url() {
|
|
2542
2741
|
return "./";
|
|
2543
2742
|
}
|
|
2544
2743
|
}
|
|
2545
2744
|
|
|
2546
|
-
var __defProp$
|
|
2547
|
-
var __defNormalProp$
|
|
2548
|
-
var __publicField$
|
|
2549
|
-
__defNormalProp$
|
|
2745
|
+
var __defProp$B = Object.defineProperty;
|
|
2746
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2747
|
+
var __publicField$B = (obj, key, value) => {
|
|
2748
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2550
2749
|
return value;
|
|
2551
2750
|
};
|
|
2552
2751
|
let ProductDetail$1 = class ProductDetail {
|
|
2553
2752
|
constructor(page) {
|
|
2554
2753
|
this.page = page;
|
|
2555
|
-
__publicField$
|
|
2556
|
-
__publicField$
|
|
2557
|
-
__publicField$
|
|
2558
|
-
__publicField$
|
|
2559
|
-
__publicField$
|
|
2560
|
-
__publicField$
|
|
2561
|
-
__publicField$
|
|
2562
|
-
__publicField$
|
|
2563
|
-
__publicField$
|
|
2564
|
-
__publicField$
|
|
2565
|
-
__publicField$
|
|
2754
|
+
__publicField$B(this, "addToCartButton");
|
|
2755
|
+
__publicField$B(this, "quantitySelect");
|
|
2756
|
+
__publicField$B(this, "productSingleImage");
|
|
2757
|
+
__publicField$B(this, "productSinglePrice");
|
|
2758
|
+
__publicField$B(this, "productPriceRangesRow");
|
|
2759
|
+
__publicField$B(this, "offCanvasCartTitle");
|
|
2760
|
+
__publicField$B(this, "offCanvasCart");
|
|
2761
|
+
__publicField$B(this, "offCanvasCartGoToCheckoutButton");
|
|
2762
|
+
__publicField$B(this, "offCanvasLineItemImages");
|
|
2763
|
+
__publicField$B(this, "offCanvasSummaryTotalPrice");
|
|
2764
|
+
__publicField$B(this, "offCanvas");
|
|
2566
2765
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2567
2766
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2568
2767
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2584,18 +2783,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2584
2783
|
}
|
|
2585
2784
|
};
|
|
2586
2785
|
|
|
2587
|
-
var __defProp$
|
|
2588
|
-
var __defNormalProp$
|
|
2589
|
-
var __publicField$
|
|
2590
|
-
__defNormalProp$
|
|
2786
|
+
var __defProp$A = Object.defineProperty;
|
|
2787
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2788
|
+
var __publicField$A = (obj, key, value) => {
|
|
2789
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2591
2790
|
return value;
|
|
2592
2791
|
};
|
|
2593
2792
|
class Category {
|
|
2594
2793
|
constructor(page) {
|
|
2595
2794
|
this.page = page;
|
|
2596
|
-
__publicField$
|
|
2597
|
-
__publicField$
|
|
2598
|
-
__publicField$
|
|
2795
|
+
__publicField$A(this, "sortingSelect");
|
|
2796
|
+
__publicField$A(this, "firstProductBuyButton");
|
|
2797
|
+
__publicField$A(this, "noProductsFoundAlert");
|
|
2599
2798
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2600
2799
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2601
2800
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2605,24 +2804,24 @@ class Category {
|
|
|
2605
2804
|
}
|
|
2606
2805
|
}
|
|
2607
2806
|
|
|
2608
|
-
var __defProp$
|
|
2609
|
-
var __defNormalProp$
|
|
2610
|
-
var __publicField$
|
|
2611
|
-
__defNormalProp$
|
|
2807
|
+
var __defProp$z = Object.defineProperty;
|
|
2808
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2809
|
+
var __publicField$z = (obj, key, value) => {
|
|
2810
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2612
2811
|
return value;
|
|
2613
2812
|
};
|
|
2614
2813
|
class CheckoutCart {
|
|
2615
2814
|
constructor(page) {
|
|
2616
2815
|
this.page = page;
|
|
2617
|
-
__publicField$
|
|
2618
|
-
__publicField$
|
|
2619
|
-
__publicField$
|
|
2620
|
-
__publicField$
|
|
2621
|
-
__publicField$
|
|
2622
|
-
__publicField$
|
|
2623
|
-
__publicField$
|
|
2624
|
-
__publicField$
|
|
2625
|
-
__publicField$
|
|
2816
|
+
__publicField$z(this, "headline");
|
|
2817
|
+
__publicField$z(this, "goToCheckoutButton");
|
|
2818
|
+
__publicField$z(this, "enterPromoInput");
|
|
2819
|
+
__publicField$z(this, "grandTotalPrice");
|
|
2820
|
+
__publicField$z(this, "emptyCartAlert");
|
|
2821
|
+
__publicField$z(this, "stockReachedAlert");
|
|
2822
|
+
__publicField$z(this, "cartLineItemImages");
|
|
2823
|
+
__publicField$z(this, "unitPriceInfo");
|
|
2824
|
+
__publicField$z(this, "cartQuantityNumber");
|
|
2626
2825
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2627
2826
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2628
2827
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -2663,25 +2862,25 @@ class CheckoutCart {
|
|
|
2663
2862
|
}
|
|
2664
2863
|
}
|
|
2665
2864
|
|
|
2666
|
-
var __defProp$
|
|
2667
|
-
var __defNormalProp$
|
|
2668
|
-
var __publicField$
|
|
2669
|
-
__defNormalProp$
|
|
2865
|
+
var __defProp$y = Object.defineProperty;
|
|
2866
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2867
|
+
var __publicField$y = (obj, key, value) => {
|
|
2868
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2670
2869
|
return value;
|
|
2671
2870
|
};
|
|
2672
2871
|
class OffCanvasCart {
|
|
2673
2872
|
constructor(page) {
|
|
2674
2873
|
this.page = page;
|
|
2675
|
-
__publicField$
|
|
2676
|
-
__publicField$
|
|
2677
|
-
__publicField$
|
|
2678
|
-
__publicField$
|
|
2679
|
-
__publicField$
|
|
2680
|
-
__publicField$
|
|
2681
|
-
__publicField$
|
|
2682
|
-
__publicField$
|
|
2683
|
-
__publicField$
|
|
2684
|
-
__publicField$
|
|
2874
|
+
__publicField$y(this, "headline");
|
|
2875
|
+
__publicField$y(this, "itemCount");
|
|
2876
|
+
__publicField$y(this, "goToCheckoutButton");
|
|
2877
|
+
__publicField$y(this, "goToCartButton");
|
|
2878
|
+
__publicField$y(this, "continueShoppingButton");
|
|
2879
|
+
__publicField$y(this, "enterPromoInput");
|
|
2880
|
+
__publicField$y(this, "submitDiscountButton");
|
|
2881
|
+
__publicField$y(this, "subTotalPrice");
|
|
2882
|
+
__publicField$y(this, "shippingCosts");
|
|
2883
|
+
__publicField$y(this, "cartQuantityNumber");
|
|
2685
2884
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2686
2885
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
2687
2886
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -2723,39 +2922,41 @@ class OffCanvasCart {
|
|
|
2723
2922
|
}
|
|
2724
2923
|
}
|
|
2725
2924
|
|
|
2726
|
-
var __defProp$
|
|
2727
|
-
var __defNormalProp$
|
|
2728
|
-
var __publicField$
|
|
2729
|
-
__defNormalProp$
|
|
2925
|
+
var __defProp$x = Object.defineProperty;
|
|
2926
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2927
|
+
var __publicField$x = (obj, key, value) => {
|
|
2928
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2730
2929
|
return value;
|
|
2731
2930
|
};
|
|
2732
2931
|
class CheckoutConfirm {
|
|
2733
2932
|
constructor(page) {
|
|
2734
2933
|
this.page = page;
|
|
2735
|
-
__publicField$
|
|
2736
|
-
__publicField$
|
|
2737
|
-
__publicField$
|
|
2738
|
-
__publicField$
|
|
2739
|
-
__publicField$
|
|
2934
|
+
__publicField$x(this, "headline");
|
|
2935
|
+
__publicField$x(this, "termsAndConditionsCheckbox");
|
|
2936
|
+
__publicField$x(this, "immediateAccessToDigitalProductCheckbox");
|
|
2937
|
+
__publicField$x(this, "grandTotalPrice");
|
|
2938
|
+
__publicField$x(this, "taxPrice");
|
|
2939
|
+
__publicField$x(this, "submitOrderButton");
|
|
2740
2940
|
/**
|
|
2741
2941
|
* Payment options
|
|
2742
2942
|
*/
|
|
2743
|
-
__publicField$
|
|
2744
|
-
__publicField$
|
|
2745
|
-
__publicField$
|
|
2943
|
+
__publicField$x(this, "paymentCashOnDelivery");
|
|
2944
|
+
__publicField$x(this, "paymentPaidInAdvance");
|
|
2945
|
+
__publicField$x(this, "paymentInvoice");
|
|
2746
2946
|
/**
|
|
2747
2947
|
* Shipping options
|
|
2748
2948
|
*/
|
|
2749
|
-
__publicField$
|
|
2750
|
-
__publicField$
|
|
2949
|
+
__publicField$x(this, "shippingStandard");
|
|
2950
|
+
__publicField$x(this, "shippingExpress");
|
|
2751
2951
|
/**
|
|
2752
2952
|
* Product details
|
|
2753
2953
|
*/
|
|
2754
|
-
__publicField$
|
|
2954
|
+
__publicField$x(this, "cartLineItemImages");
|
|
2755
2955
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
2756
2956
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
2757
2957
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
2758
2958
|
this.grandTotalPrice = page.locator(`dt:has-text('Grand total') + dd`);
|
|
2959
|
+
this.taxPrice = page.locator(`dt:text-matches('plus [0-9]\\+\\?% VAT') + dd`);
|
|
2759
2960
|
this.submitOrderButton = page.getByRole("button", { name: "Submit order" });
|
|
2760
2961
|
this.paymentCashOnDelivery = page.getByLabel("Cash on delivery");
|
|
2761
2962
|
this.paymentPaidInAdvance = page.getByLabel("Paid in advance");
|
|
@@ -2769,23 +2970,25 @@ class CheckoutConfirm {
|
|
|
2769
2970
|
}
|
|
2770
2971
|
}
|
|
2771
2972
|
|
|
2772
|
-
var __defProp$
|
|
2773
|
-
var __defNormalProp$
|
|
2774
|
-
var __publicField$
|
|
2775
|
-
__defNormalProp$
|
|
2973
|
+
var __defProp$w = Object.defineProperty;
|
|
2974
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2975
|
+
var __publicField$w = (obj, key, value) => {
|
|
2976
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2776
2977
|
return value;
|
|
2777
2978
|
};
|
|
2778
2979
|
class CheckoutFinish {
|
|
2779
2980
|
constructor(page) {
|
|
2780
2981
|
this.page = page;
|
|
2781
|
-
__publicField$
|
|
2782
|
-
__publicField$
|
|
2783
|
-
__publicField$
|
|
2784
|
-
__publicField$
|
|
2785
|
-
__publicField$
|
|
2982
|
+
__publicField$w(this, "headline");
|
|
2983
|
+
__publicField$w(this, "orderNumberText");
|
|
2984
|
+
__publicField$w(this, "grandTotalPrice");
|
|
2985
|
+
__publicField$w(this, "taxPrice");
|
|
2986
|
+
__publicField$w(this, "cartLineItemImages");
|
|
2987
|
+
__publicField$w(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
2786
2988
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
2787
2989
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
2788
2990
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
2991
|
+
this.taxPrice = page.locator(`dt:text-matches('plus [0-9]\\+\\?% VAT') + dd`);
|
|
2789
2992
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2790
2993
|
}
|
|
2791
2994
|
url() {
|
|
@@ -2810,16 +3013,16 @@ class CheckoutFinish {
|
|
|
2810
3013
|
}
|
|
2811
3014
|
}
|
|
2812
3015
|
|
|
2813
|
-
var __defProp$
|
|
2814
|
-
var __defNormalProp$
|
|
2815
|
-
var __publicField$
|
|
2816
|
-
__defNormalProp$
|
|
3016
|
+
var __defProp$v = Object.defineProperty;
|
|
3017
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3018
|
+
var __publicField$v = (obj, key, value) => {
|
|
3019
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2817
3020
|
return value;
|
|
2818
3021
|
};
|
|
2819
3022
|
class CheckoutRegister {
|
|
2820
3023
|
constructor(page) {
|
|
2821
3024
|
this.page = page;
|
|
2822
|
-
__publicField$
|
|
3025
|
+
__publicField$v(this, "cartLineItemImages");
|
|
2823
3026
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2824
3027
|
}
|
|
2825
3028
|
url() {
|
|
@@ -2827,22 +3030,22 @@ class CheckoutRegister {
|
|
|
2827
3030
|
}
|
|
2828
3031
|
}
|
|
2829
3032
|
|
|
2830
|
-
var __defProp$
|
|
2831
|
-
var __defNormalProp$
|
|
2832
|
-
var __publicField$
|
|
2833
|
-
__defNormalProp$
|
|
3033
|
+
var __defProp$u = Object.defineProperty;
|
|
3034
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3035
|
+
var __publicField$u = (obj, key, value) => {
|
|
3036
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2834
3037
|
return value;
|
|
2835
3038
|
};
|
|
2836
3039
|
class Account {
|
|
2837
3040
|
constructor(page) {
|
|
2838
3041
|
this.page = page;
|
|
2839
|
-
__publicField$
|
|
2840
|
-
__publicField$
|
|
2841
|
-
__publicField$
|
|
2842
|
-
__publicField$
|
|
2843
|
-
__publicField$
|
|
2844
|
-
__publicField$
|
|
2845
|
-
__publicField$
|
|
3042
|
+
__publicField$u(this, "headline");
|
|
3043
|
+
__publicField$u(this, "personalDataCardTitle");
|
|
3044
|
+
__publicField$u(this, "paymentMethodCardTitle");
|
|
3045
|
+
__publicField$u(this, "billingAddressCardTitle");
|
|
3046
|
+
__publicField$u(this, "shippingAddressCardTitle");
|
|
3047
|
+
__publicField$u(this, "newsletterCheckbox");
|
|
3048
|
+
__publicField$u(this, "newsletterRegistrationSuccessMessage");
|
|
2846
3049
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
2847
3050
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
2848
3051
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -2856,32 +3059,32 @@ class Account {
|
|
|
2856
3059
|
}
|
|
2857
3060
|
}
|
|
2858
3061
|
|
|
2859
|
-
var __defProp$
|
|
2860
|
-
var __defNormalProp$
|
|
2861
|
-
var __publicField$
|
|
2862
|
-
__defNormalProp$
|
|
3062
|
+
var __defProp$t = Object.defineProperty;
|
|
3063
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3064
|
+
var __publicField$t = (obj, key, value) => {
|
|
3065
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2863
3066
|
return value;
|
|
2864
3067
|
};
|
|
2865
3068
|
class AccountLogin {
|
|
2866
3069
|
constructor(page) {
|
|
2867
3070
|
this.page = page;
|
|
2868
|
-
__publicField$
|
|
2869
|
-
__publicField$
|
|
2870
|
-
__publicField$
|
|
2871
|
-
__publicField$
|
|
2872
|
-
__publicField$
|
|
3071
|
+
__publicField$t(this, "emailInput");
|
|
3072
|
+
__publicField$t(this, "passwordInput");
|
|
3073
|
+
__publicField$t(this, "loginButton");
|
|
3074
|
+
__publicField$t(this, "logoutLink");
|
|
3075
|
+
__publicField$t(this, "successAlert");
|
|
2873
3076
|
// Inputs for registration
|
|
2874
|
-
__publicField$
|
|
2875
|
-
__publicField$
|
|
2876
|
-
__publicField$
|
|
2877
|
-
__publicField$
|
|
2878
|
-
__publicField$
|
|
2879
|
-
__publicField$
|
|
2880
|
-
__publicField$
|
|
2881
|
-
__publicField$
|
|
2882
|
-
__publicField$
|
|
2883
|
-
__publicField$
|
|
2884
|
-
__publicField$
|
|
3077
|
+
__publicField$t(this, "personalFormArea");
|
|
3078
|
+
__publicField$t(this, "billingAddressFormArea");
|
|
3079
|
+
__publicField$t(this, "firstNameInput");
|
|
3080
|
+
__publicField$t(this, "lastNameInput");
|
|
3081
|
+
__publicField$t(this, "registerEmailInput");
|
|
3082
|
+
__publicField$t(this, "registerPasswordInput");
|
|
3083
|
+
__publicField$t(this, "streetAddressInput");
|
|
3084
|
+
__publicField$t(this, "cityInput");
|
|
3085
|
+
__publicField$t(this, "countryInput");
|
|
3086
|
+
__publicField$t(this, "postalCodeInput");
|
|
3087
|
+
__publicField$t(this, "registerButton");
|
|
2885
3088
|
this.emailInput = page.getByLabel("Your email address");
|
|
2886
3089
|
this.passwordInput = page.getByLabel("Your password");
|
|
2887
3090
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -2905,29 +3108,29 @@ class AccountLogin {
|
|
|
2905
3108
|
}
|
|
2906
3109
|
}
|
|
2907
3110
|
|
|
2908
|
-
var __defProp$
|
|
2909
|
-
var __defNormalProp$
|
|
2910
|
-
var __publicField$
|
|
2911
|
-
__defNormalProp$
|
|
3111
|
+
var __defProp$s = Object.defineProperty;
|
|
3112
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3113
|
+
var __publicField$s = (obj, key, value) => {
|
|
3114
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2912
3115
|
return value;
|
|
2913
3116
|
};
|
|
2914
3117
|
class AccountProfile {
|
|
2915
3118
|
constructor(page) {
|
|
2916
3119
|
this.page = page;
|
|
2917
|
-
__publicField$
|
|
2918
|
-
__publicField$
|
|
2919
|
-
__publicField$
|
|
2920
|
-
__publicField$
|
|
2921
|
-
__publicField$
|
|
2922
|
-
__publicField$
|
|
2923
|
-
__publicField$
|
|
2924
|
-
__publicField$
|
|
2925
|
-
__publicField$
|
|
2926
|
-
__publicField$
|
|
2927
|
-
__publicField$
|
|
2928
|
-
__publicField$
|
|
2929
|
-
__publicField$
|
|
2930
|
-
__publicField$
|
|
3120
|
+
__publicField$s(this, "salutationSelect");
|
|
3121
|
+
__publicField$s(this, "firstNameInput");
|
|
3122
|
+
__publicField$s(this, "lastNameInput");
|
|
3123
|
+
__publicField$s(this, "saveProfileButton");
|
|
3124
|
+
__publicField$s(this, "changeEmailButton");
|
|
3125
|
+
__publicField$s(this, "emailAddressInput");
|
|
3126
|
+
__publicField$s(this, "emailAddressConfirmInput");
|
|
3127
|
+
__publicField$s(this, "emailConfirmPasswordInput");
|
|
3128
|
+
__publicField$s(this, "saveEmailAddressButton");
|
|
3129
|
+
__publicField$s(this, "changePasswordButton");
|
|
3130
|
+
__publicField$s(this, "newPasswordInput");
|
|
3131
|
+
__publicField$s(this, "newPasswordConfirmInput");
|
|
3132
|
+
__publicField$s(this, "currentPasswordInput");
|
|
3133
|
+
__publicField$s(this, "saveNewPasswordButton");
|
|
2931
3134
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
2932
3135
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
2933
3136
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -2948,18 +3151,18 @@ class AccountProfile {
|
|
|
2948
3151
|
}
|
|
2949
3152
|
}
|
|
2950
3153
|
|
|
2951
|
-
var __defProp$
|
|
2952
|
-
var __defNormalProp$
|
|
2953
|
-
var __publicField$
|
|
2954
|
-
__defNormalProp$
|
|
3154
|
+
var __defProp$r = Object.defineProperty;
|
|
3155
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3156
|
+
var __publicField$r = (obj, key, value) => {
|
|
3157
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2955
3158
|
return value;
|
|
2956
3159
|
};
|
|
2957
3160
|
class AccountOrder {
|
|
2958
3161
|
constructor(page) {
|
|
2959
3162
|
this.page = page;
|
|
2960
|
-
__publicField$
|
|
2961
|
-
__publicField$
|
|
2962
|
-
__publicField$
|
|
3163
|
+
__publicField$r(this, "cartLineItemImages");
|
|
3164
|
+
__publicField$r(this, "orderExpandButton");
|
|
3165
|
+
__publicField$r(this, "digitalProductDownloadButton");
|
|
2963
3166
|
this.orderExpandButton = page.getByRole("button", { name: /Expand|Show details/ }).first();
|
|
2964
3167
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2965
3168
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
@@ -2969,20 +3172,20 @@ class AccountOrder {
|
|
|
2969
3172
|
}
|
|
2970
3173
|
}
|
|
2971
3174
|
|
|
2972
|
-
var __defProp$
|
|
2973
|
-
var __defNormalProp$
|
|
2974
|
-
var __publicField$
|
|
2975
|
-
__defNormalProp$
|
|
3175
|
+
var __defProp$q = Object.defineProperty;
|
|
3176
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3177
|
+
var __publicField$q = (obj, key, value) => {
|
|
3178
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2976
3179
|
return value;
|
|
2977
3180
|
};
|
|
2978
3181
|
class AccountAddresses {
|
|
2979
3182
|
constructor(page) {
|
|
2980
3183
|
this.page = page;
|
|
2981
|
-
__publicField$
|
|
2982
|
-
__publicField$
|
|
2983
|
-
__publicField$
|
|
2984
|
-
__publicField$
|
|
2985
|
-
__publicField$
|
|
3184
|
+
__publicField$q(this, "addNewAddressButton");
|
|
3185
|
+
__publicField$q(this, "editBillingAddressButton");
|
|
3186
|
+
__publicField$q(this, "editShippingAddressButton");
|
|
3187
|
+
__publicField$q(this, "useDefaultBillingAddressButton");
|
|
3188
|
+
__publicField$q(this, "useDefaultShippingAddressButton");
|
|
2986
3189
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
2987
3190
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
2988
3191
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -2994,19 +3197,19 @@ class AccountAddresses {
|
|
|
2994
3197
|
}
|
|
2995
3198
|
}
|
|
2996
3199
|
|
|
2997
|
-
var __defProp$
|
|
2998
|
-
var __defNormalProp$
|
|
2999
|
-
var __publicField$
|
|
3000
|
-
__defNormalProp$
|
|
3200
|
+
var __defProp$p = Object.defineProperty;
|
|
3201
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3202
|
+
var __publicField$p = (obj, key, value) => {
|
|
3203
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3001
3204
|
return value;
|
|
3002
3205
|
};
|
|
3003
3206
|
class AccountPayment {
|
|
3004
3207
|
constructor(page) {
|
|
3005
3208
|
this.page = page;
|
|
3006
|
-
__publicField$
|
|
3007
|
-
__publicField$
|
|
3008
|
-
__publicField$
|
|
3009
|
-
__publicField$
|
|
3209
|
+
__publicField$p(this, "cashOnDeliveryOption");
|
|
3210
|
+
__publicField$p(this, "paidInAdvanceOption");
|
|
3211
|
+
__publicField$p(this, "invoiceOption");
|
|
3212
|
+
__publicField$p(this, "changeDefaultPaymentButton");
|
|
3010
3213
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3011
3214
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3012
3215
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -3017,17 +3220,17 @@ class AccountPayment {
|
|
|
3017
3220
|
}
|
|
3018
3221
|
}
|
|
3019
3222
|
|
|
3020
|
-
var __defProp$
|
|
3021
|
-
var __defNormalProp$
|
|
3022
|
-
var __publicField$
|
|
3023
|
-
__defNormalProp$
|
|
3223
|
+
var __defProp$o = Object.defineProperty;
|
|
3224
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3225
|
+
var __publicField$o = (obj, key, value) => {
|
|
3226
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3024
3227
|
return value;
|
|
3025
3228
|
};
|
|
3026
3229
|
class Search {
|
|
3027
3230
|
constructor(page) {
|
|
3028
3231
|
this.page = page;
|
|
3029
|
-
__publicField$
|
|
3030
|
-
__publicField$
|
|
3232
|
+
__publicField$o(this, "headline");
|
|
3233
|
+
__publicField$o(this, "productImages");
|
|
3031
3234
|
this.headline = page.locator("h1.search-headline");
|
|
3032
3235
|
this.productImages = page.locator(".product-image-link");
|
|
3033
3236
|
}
|
|
@@ -3036,16 +3239,16 @@ class Search {
|
|
|
3036
3239
|
}
|
|
3037
3240
|
}
|
|
3038
3241
|
|
|
3039
|
-
var __defProp$
|
|
3040
|
-
var __defNormalProp$
|
|
3041
|
-
var __publicField$
|
|
3042
|
-
__defNormalProp$
|
|
3242
|
+
var __defProp$n = Object.defineProperty;
|
|
3243
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3244
|
+
var __publicField$n = (obj, key, value) => {
|
|
3245
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3043
3246
|
return value;
|
|
3044
3247
|
};
|
|
3045
3248
|
class SearchSuggest {
|
|
3046
3249
|
constructor(page) {
|
|
3047
3250
|
this.page = page;
|
|
3048
|
-
__publicField$
|
|
3251
|
+
__publicField$n(this, "searchSuggestLineItemImages");
|
|
3049
3252
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
3050
3253
|
}
|
|
3051
3254
|
url(searchTerm) {
|
|
@@ -3122,10 +3325,10 @@ const test$6 = test$e.extend({
|
|
|
3122
3325
|
}
|
|
3123
3326
|
});
|
|
3124
3327
|
|
|
3125
|
-
var __defProp$
|
|
3126
|
-
var __defNormalProp$
|
|
3127
|
-
var __publicField$
|
|
3128
|
-
__defNormalProp$
|
|
3328
|
+
var __defProp$m = Object.defineProperty;
|
|
3329
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3330
|
+
var __publicField$m = (obj, key, value) => {
|
|
3331
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3129
3332
|
return value;
|
|
3130
3333
|
};
|
|
3131
3334
|
class ProductDetail {
|
|
@@ -3134,44 +3337,44 @@ class ProductDetail {
|
|
|
3134
3337
|
/**
|
|
3135
3338
|
* Save interactions
|
|
3136
3339
|
*/
|
|
3137
|
-
__publicField$
|
|
3138
|
-
__publicField$
|
|
3139
|
-
__publicField$
|
|
3340
|
+
__publicField$m(this, "savePhysicalProductButton");
|
|
3341
|
+
__publicField$m(this, "saveButtonLoadingSpinner");
|
|
3342
|
+
__publicField$m(this, "saveButtonCheckMark");
|
|
3140
3343
|
/**
|
|
3141
3344
|
* Media Upload interactions
|
|
3142
3345
|
*/
|
|
3143
|
-
__publicField$
|
|
3144
|
-
__publicField$
|
|
3145
|
-
__publicField$
|
|
3346
|
+
__publicField$m(this, "uploadMediaButton");
|
|
3347
|
+
__publicField$m(this, "coverImage");
|
|
3348
|
+
__publicField$m(this, "productImage");
|
|
3146
3349
|
/**
|
|
3147
3350
|
* Tabs
|
|
3148
3351
|
*/
|
|
3149
|
-
__publicField$
|
|
3150
|
-
__publicField$
|
|
3352
|
+
__publicField$m(this, "variantsTabLink");
|
|
3353
|
+
__publicField$m(this, "specificationsTabLink");
|
|
3151
3354
|
/**
|
|
3152
3355
|
* Variants Generation
|
|
3153
3356
|
*/
|
|
3154
|
-
__publicField$
|
|
3155
|
-
__publicField$
|
|
3156
|
-
__publicField$
|
|
3157
|
-
__publicField$
|
|
3158
|
-
__publicField$
|
|
3357
|
+
__publicField$m(this, "generateVariantsButton");
|
|
3358
|
+
__publicField$m(this, "variantsModal");
|
|
3359
|
+
__publicField$m(this, "variantsModalHeadline");
|
|
3360
|
+
__publicField$m(this, "variantsNextButton");
|
|
3361
|
+
__publicField$m(this, "variantsSaveButton");
|
|
3159
3362
|
/**
|
|
3160
3363
|
* Property Selection
|
|
3161
3364
|
*/
|
|
3162
|
-
__publicField$
|
|
3163
|
-
__publicField$
|
|
3164
|
-
__publicField$
|
|
3165
|
-
__publicField$
|
|
3166
|
-
__publicField$
|
|
3167
|
-
__publicField$
|
|
3168
|
-
__publicField$
|
|
3169
|
-
__publicField$
|
|
3170
|
-
__publicField$
|
|
3365
|
+
__publicField$m(this, "propertyGroupColor");
|
|
3366
|
+
__publicField$m(this, "propertyGroupSize");
|
|
3367
|
+
__publicField$m(this, "propertyOptionGrid");
|
|
3368
|
+
__publicField$m(this, "propertyOptionColorBlue");
|
|
3369
|
+
__publicField$m(this, "propertyOptionColorRed");
|
|
3370
|
+
__publicField$m(this, "propertyOptionColorGreen");
|
|
3371
|
+
__publicField$m(this, "propertyOptionSizeSmall");
|
|
3372
|
+
__publicField$m(this, "propertyOptionSizeMedium");
|
|
3373
|
+
__publicField$m(this, "propertyOptionSizeLarge");
|
|
3171
3374
|
/**
|
|
3172
3375
|
* Cards
|
|
3173
3376
|
*/
|
|
3174
|
-
__publicField$
|
|
3377
|
+
__publicField$m(this, "customFieldCard");
|
|
3175
3378
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
3176
3379
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
3177
3380
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
@@ -3210,18 +3413,18 @@ class ProductDetail {
|
|
|
3210
3413
|
}
|
|
3211
3414
|
}
|
|
3212
3415
|
|
|
3213
|
-
var __defProp$
|
|
3214
|
-
var __defNormalProp$
|
|
3215
|
-
var __publicField$
|
|
3216
|
-
__defNormalProp$
|
|
3416
|
+
var __defProp$l = Object.defineProperty;
|
|
3417
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3418
|
+
var __publicField$l = (obj, key, value) => {
|
|
3419
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3217
3420
|
return value;
|
|
3218
3421
|
};
|
|
3219
3422
|
class OrderDetail {
|
|
3220
3423
|
constructor(page) {
|
|
3221
3424
|
this.page = page;
|
|
3222
|
-
__publicField$
|
|
3223
|
-
__publicField$
|
|
3224
|
-
__publicField$
|
|
3425
|
+
__publicField$l(this, "saveButton");
|
|
3426
|
+
__publicField$l(this, "dataGridContextButton");
|
|
3427
|
+
__publicField$l(this, "orderTag");
|
|
3225
3428
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
3226
3429
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
3227
3430
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -3231,21 +3434,21 @@ class OrderDetail {
|
|
|
3231
3434
|
}
|
|
3232
3435
|
}
|
|
3233
3436
|
|
|
3234
|
-
var __defProp$
|
|
3235
|
-
var __defNormalProp$
|
|
3236
|
-
var __publicField$
|
|
3237
|
-
__defNormalProp$
|
|
3437
|
+
var __defProp$k = Object.defineProperty;
|
|
3438
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3439
|
+
var __publicField$k = (obj, key, value) => {
|
|
3440
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3238
3441
|
return value;
|
|
3239
3442
|
};
|
|
3240
3443
|
class CustomerDetail {
|
|
3241
3444
|
constructor(page) {
|
|
3242
3445
|
this.page = page;
|
|
3243
|
-
__publicField$
|
|
3244
|
-
__publicField$
|
|
3245
|
-
__publicField$
|
|
3246
|
-
__publicField$
|
|
3247
|
-
__publicField$
|
|
3248
|
-
__publicField$
|
|
3446
|
+
__publicField$k(this, "editButton");
|
|
3447
|
+
__publicField$k(this, "generalTab");
|
|
3448
|
+
__publicField$k(this, "accountCard");
|
|
3449
|
+
__publicField$k(this, "customFieldCard");
|
|
3450
|
+
__publicField$k(this, "customFieldSetTabs");
|
|
3451
|
+
__publicField$k(this, "customFieldSetTabCustomContent");
|
|
3249
3452
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
3250
3453
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
3251
3454
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -3267,53 +3470,53 @@ class CustomerDetail {
|
|
|
3267
3470
|
}
|
|
3268
3471
|
}
|
|
3269
3472
|
|
|
3270
|
-
var __defProp$
|
|
3271
|
-
var __defNormalProp$
|
|
3272
|
-
var __publicField$
|
|
3273
|
-
__defNormalProp$
|
|
3473
|
+
var __defProp$j = Object.defineProperty;
|
|
3474
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3475
|
+
var __publicField$j = (obj, key, value) => {
|
|
3476
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3274
3477
|
return value;
|
|
3275
3478
|
};
|
|
3276
3479
|
class FirstRunWizard {
|
|
3277
3480
|
constructor(page) {
|
|
3278
3481
|
this.page = page;
|
|
3279
|
-
__publicField$
|
|
3280
|
-
__publicField$
|
|
3281
|
-
__publicField$
|
|
3282
|
-
__publicField$
|
|
3283
|
-
__publicField$
|
|
3284
|
-
__publicField$
|
|
3285
|
-
__publicField$
|
|
3286
|
-
__publicField$
|
|
3287
|
-
__publicField$
|
|
3288
|
-
__publicField$
|
|
3289
|
-
__publicField$
|
|
3290
|
-
__publicField$
|
|
3291
|
-
__publicField$
|
|
3292
|
-
__publicField$
|
|
3293
|
-
__publicField$
|
|
3294
|
-
__publicField$
|
|
3295
|
-
__publicField$
|
|
3296
|
-
__publicField$
|
|
3297
|
-
__publicField$
|
|
3298
|
-
__publicField$
|
|
3299
|
-
__publicField$
|
|
3300
|
-
__publicField$
|
|
3301
|
-
__publicField$
|
|
3302
|
-
__publicField$
|
|
3303
|
-
__publicField$
|
|
3304
|
-
__publicField$
|
|
3305
|
-
__publicField$
|
|
3306
|
-
__publicField$
|
|
3307
|
-
__publicField$
|
|
3308
|
-
__publicField$
|
|
3309
|
-
__publicField$
|
|
3310
|
-
__publicField$
|
|
3311
|
-
__publicField$
|
|
3312
|
-
__publicField$
|
|
3313
|
-
__publicField$
|
|
3314
|
-
__publicField$
|
|
3315
|
-
__publicField$
|
|
3316
|
-
__publicField$
|
|
3482
|
+
__publicField$j(this, "nextButton");
|
|
3483
|
+
__publicField$j(this, "configureLaterButton");
|
|
3484
|
+
__publicField$j(this, "skipButton");
|
|
3485
|
+
__publicField$j(this, "finishButton");
|
|
3486
|
+
__publicField$j(this, "backButton");
|
|
3487
|
+
__publicField$j(this, "smtpServerButton");
|
|
3488
|
+
__publicField$j(this, "dataImportHeader");
|
|
3489
|
+
__publicField$j(this, "installLanguagePackButton");
|
|
3490
|
+
__publicField$j(this, "installDemoDataButton");
|
|
3491
|
+
__publicField$j(this, "installMigrationAssistantButton");
|
|
3492
|
+
__publicField$j(this, "defaultValuesHeader");
|
|
3493
|
+
__publicField$j(this, "mailerConfigurationHeader");
|
|
3494
|
+
__publicField$j(this, "payPalSetupHeader");
|
|
3495
|
+
__publicField$j(this, "extensionsHeader");
|
|
3496
|
+
__publicField$j(this, "shopwareAccountHeader");
|
|
3497
|
+
__publicField$j(this, "shopwareStoreHeader");
|
|
3498
|
+
__publicField$j(this, "doneHeader");
|
|
3499
|
+
__publicField$j(this, "frwSuccessText");
|
|
3500
|
+
__publicField$j(this, "welcomeText");
|
|
3501
|
+
__publicField$j(this, "pluginCardInfo");
|
|
3502
|
+
__publicField$j(this, "dataImportCard");
|
|
3503
|
+
__publicField$j(this, "salesChannelSelectionList");
|
|
3504
|
+
__publicField$j(this, "salesChannelSelectionMultiSelect");
|
|
3505
|
+
__publicField$j(this, "smtpServerTitle");
|
|
3506
|
+
__publicField$j(this, "smtpServerFields");
|
|
3507
|
+
__publicField$j(this, "payPalPaymethods");
|
|
3508
|
+
__publicField$j(this, "payPalInfoCard");
|
|
3509
|
+
__publicField$j(this, "emailAddressInputField");
|
|
3510
|
+
__publicField$j(this, "passwordInputField");
|
|
3511
|
+
__publicField$j(this, "forgotPasswordLink");
|
|
3512
|
+
__publicField$j(this, "extensionStoreHeading");
|
|
3513
|
+
__publicField$j(this, "documentationLink");
|
|
3514
|
+
__publicField$j(this, "forumLink");
|
|
3515
|
+
__publicField$j(this, "roadmapLink");
|
|
3516
|
+
__publicField$j(this, "germanRegionSelector");
|
|
3517
|
+
__publicField$j(this, "toolsSelector");
|
|
3518
|
+
__publicField$j(this, "recommendationHeader");
|
|
3519
|
+
__publicField$j(this, "toolsRecommendedPlugin");
|
|
3317
3520
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
3318
3521
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
3319
3522
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -3358,17 +3561,17 @@ class FirstRunWizard {
|
|
|
3358
3561
|
}
|
|
3359
3562
|
}
|
|
3360
3563
|
|
|
3361
|
-
var __defProp$
|
|
3362
|
-
var __defNormalProp$
|
|
3363
|
-
var __publicField$
|
|
3364
|
-
__defNormalProp$
|
|
3564
|
+
var __defProp$i = Object.defineProperty;
|
|
3565
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3566
|
+
var __publicField$i = (obj, key, value) => {
|
|
3567
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3365
3568
|
return value;
|
|
3366
3569
|
};
|
|
3367
3570
|
class FlowBuilderCreate {
|
|
3368
3571
|
constructor(page) {
|
|
3369
3572
|
this.page = page;
|
|
3370
|
-
__publicField$
|
|
3371
|
-
__publicField$
|
|
3573
|
+
__publicField$i(this, "saveButton");
|
|
3574
|
+
__publicField$i(this, "header");
|
|
3372
3575
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3373
3576
|
this.header = page.locator("h2");
|
|
3374
3577
|
}
|
|
@@ -3377,28 +3580,28 @@ class FlowBuilderCreate {
|
|
|
3377
3580
|
}
|
|
3378
3581
|
}
|
|
3379
3582
|
|
|
3380
|
-
var __defProp$
|
|
3381
|
-
var __defNormalProp$
|
|
3382
|
-
var __publicField$
|
|
3383
|
-
__defNormalProp$
|
|
3583
|
+
var __defProp$h = Object.defineProperty;
|
|
3584
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3585
|
+
var __publicField$h = (obj, key, value) => {
|
|
3586
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3384
3587
|
return value;
|
|
3385
3588
|
};
|
|
3386
3589
|
class FlowBuilderListing {
|
|
3387
3590
|
constructor(page) {
|
|
3388
3591
|
this.page = page;
|
|
3389
|
-
__publicField$
|
|
3390
|
-
__publicField$
|
|
3391
|
-
__publicField$
|
|
3392
|
-
__publicField$
|
|
3393
|
-
__publicField$
|
|
3394
|
-
__publicField$
|
|
3395
|
-
__publicField$
|
|
3396
|
-
__publicField$
|
|
3397
|
-
__publicField$
|
|
3398
|
-
__publicField$
|
|
3399
|
-
__publicField$
|
|
3400
|
-
__publicField$
|
|
3401
|
-
__publicField$
|
|
3592
|
+
__publicField$h(this, "createFlowButton");
|
|
3593
|
+
__publicField$h(this, "firstFlowName");
|
|
3594
|
+
__publicField$h(this, "firstFlowContextButton");
|
|
3595
|
+
__publicField$h(this, "flowContextMenu");
|
|
3596
|
+
__publicField$h(this, "contextMenuDownload");
|
|
3597
|
+
__publicField$h(this, "contextMenuDuplicate");
|
|
3598
|
+
__publicField$h(this, "contextMenuEdit");
|
|
3599
|
+
__publicField$h(this, "contextMenuDelete");
|
|
3600
|
+
__publicField$h(this, "flowDownloadModal");
|
|
3601
|
+
__publicField$h(this, "downloadFlowButton");
|
|
3602
|
+
__publicField$h(this, "flowDeleteButton");
|
|
3603
|
+
__publicField$h(this, "successAlert");
|
|
3604
|
+
__publicField$h(this, "successAlertMessage");
|
|
3402
3605
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
3403
3606
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
3404
3607
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -3435,18 +3638,18 @@ class FlowBuilderListing {
|
|
|
3435
3638
|
}
|
|
3436
3639
|
}
|
|
3437
3640
|
|
|
3438
|
-
var __defProp$
|
|
3439
|
-
var __defNormalProp$
|
|
3440
|
-
var __publicField$
|
|
3441
|
-
__defNormalProp$
|
|
3641
|
+
var __defProp$g = Object.defineProperty;
|
|
3642
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3643
|
+
var __publicField$g = (obj, key, value) => {
|
|
3644
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3442
3645
|
return value;
|
|
3443
3646
|
};
|
|
3444
3647
|
class FlowBuilderDetail {
|
|
3445
3648
|
constructor(page) {
|
|
3446
3649
|
this.page = page;
|
|
3447
|
-
__publicField$
|
|
3448
|
-
__publicField$
|
|
3449
|
-
__publicField$
|
|
3650
|
+
__publicField$g(this, "saveButton");
|
|
3651
|
+
__publicField$g(this, "generalTab");
|
|
3652
|
+
__publicField$g(this, "flowTab");
|
|
3450
3653
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3451
3654
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
3452
3655
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
@@ -3456,20 +3659,20 @@ class FlowBuilderDetail {
|
|
|
3456
3659
|
}
|
|
3457
3660
|
}
|
|
3458
3661
|
|
|
3459
|
-
var __defProp$
|
|
3460
|
-
var __defNormalProp$
|
|
3461
|
-
var __publicField$
|
|
3462
|
-
__defNormalProp$
|
|
3662
|
+
var __defProp$f = Object.defineProperty;
|
|
3663
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3664
|
+
var __publicField$f = (obj, key, value) => {
|
|
3665
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3463
3666
|
return value;
|
|
3464
3667
|
};
|
|
3465
3668
|
class DataSharing {
|
|
3466
3669
|
constructor(page) {
|
|
3467
3670
|
this.page = page;
|
|
3468
|
-
__publicField$
|
|
3469
|
-
__publicField$
|
|
3470
|
-
__publicField$
|
|
3471
|
-
__publicField$
|
|
3472
|
-
__publicField$
|
|
3671
|
+
__publicField$f(this, "dataConsentHeadline");
|
|
3672
|
+
__publicField$f(this, "dataSharingSuccessMessageLabel");
|
|
3673
|
+
__publicField$f(this, "dataSharingAgreeButton");
|
|
3674
|
+
__publicField$f(this, "dataSharingDisableButton");
|
|
3675
|
+
__publicField$f(this, "dataSharingTermsAgreementLabel");
|
|
3473
3676
|
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
3474
3677
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
3475
3678
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
@@ -3481,23 +3684,23 @@ class DataSharing {
|
|
|
3481
3684
|
}
|
|
3482
3685
|
}
|
|
3483
3686
|
|
|
3484
|
-
var __defProp$
|
|
3485
|
-
var __defNormalProp$
|
|
3486
|
-
var __publicField$
|
|
3487
|
-
__defNormalProp$
|
|
3687
|
+
var __defProp$e = Object.defineProperty;
|
|
3688
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3689
|
+
var __publicField$e = (obj, key, value) => {
|
|
3690
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3488
3691
|
return value;
|
|
3489
3692
|
};
|
|
3490
3693
|
class Dashboard {
|
|
3491
3694
|
constructor(page) {
|
|
3492
3695
|
this.page = page;
|
|
3493
|
-
__publicField$
|
|
3494
|
-
__publicField$
|
|
3495
|
-
__publicField$
|
|
3496
|
-
__publicField$
|
|
3497
|
-
__publicField$
|
|
3498
|
-
__publicField$
|
|
3499
|
-
__publicField$
|
|
3500
|
-
__publicField$
|
|
3696
|
+
__publicField$e(this, "welcomeHeadline");
|
|
3697
|
+
__publicField$e(this, "dataSharingConsentBanner");
|
|
3698
|
+
__publicField$e(this, "dataSharingAgreeButton");
|
|
3699
|
+
__publicField$e(this, "dataSharingNotAtTheMomentButton");
|
|
3700
|
+
__publicField$e(this, "dataSharingTermsAgreementLabel");
|
|
3701
|
+
__publicField$e(this, "dataSharingSettingsLink");
|
|
3702
|
+
__publicField$e(this, "dataSharingAcceptMessageText");
|
|
3703
|
+
__publicField$e(this, "dataSharingNotAtTheMomentMessageText");
|
|
3501
3704
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
3502
3705
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
3503
3706
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
@@ -3512,25 +3715,25 @@ class Dashboard {
|
|
|
3512
3715
|
}
|
|
3513
3716
|
}
|
|
3514
3717
|
|
|
3515
|
-
var __defProp$
|
|
3516
|
-
var __defNormalProp$
|
|
3517
|
-
var __publicField$
|
|
3518
|
-
__defNormalProp$
|
|
3718
|
+
var __defProp$d = Object.defineProperty;
|
|
3719
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3720
|
+
var __publicField$d = (obj, key, value) => {
|
|
3721
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3519
3722
|
return value;
|
|
3520
3723
|
};
|
|
3521
3724
|
class ShippingListing {
|
|
3522
3725
|
constructor(page) {
|
|
3523
3726
|
this.page = page;
|
|
3524
|
-
__publicField$
|
|
3525
|
-
__publicField$
|
|
3526
|
-
__publicField$
|
|
3527
|
-
__publicField$
|
|
3528
|
-
__publicField$
|
|
3727
|
+
__publicField$d(this, "header");
|
|
3728
|
+
__publicField$d(this, "addShippingMethod");
|
|
3729
|
+
__publicField$d(this, "contextMenu");
|
|
3730
|
+
__publicField$d(this, "editButton");
|
|
3731
|
+
__publicField$d(this, "deleteButton");
|
|
3529
3732
|
//warning modal
|
|
3530
|
-
__publicField$
|
|
3531
|
-
__publicField$
|
|
3532
|
-
__publicField$
|
|
3533
|
-
__publicField$
|
|
3733
|
+
__publicField$d(this, "modal");
|
|
3734
|
+
__publicField$d(this, "modalHeader");
|
|
3735
|
+
__publicField$d(this, "modalCancelButton");
|
|
3736
|
+
__publicField$d(this, "modalDeleteButton");
|
|
3534
3737
|
this.header = page.locator(".smart-bar__header");
|
|
3535
3738
|
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
3536
3739
|
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
@@ -3546,10 +3749,10 @@ class ShippingListing {
|
|
|
3546
3749
|
}
|
|
3547
3750
|
}
|
|
3548
3751
|
|
|
3549
|
-
var __defProp$
|
|
3550
|
-
var __defNormalProp$
|
|
3551
|
-
var __publicField$
|
|
3552
|
-
__defNormalProp$
|
|
3752
|
+
var __defProp$c = Object.defineProperty;
|
|
3753
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3754
|
+
var __publicField$c = (obj, key, value) => {
|
|
3755
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3553
3756
|
return value;
|
|
3554
3757
|
};
|
|
3555
3758
|
class LandingPageCreate {
|
|
@@ -3558,24 +3761,24 @@ class LandingPageCreate {
|
|
|
3558
3761
|
/**
|
|
3559
3762
|
* General
|
|
3560
3763
|
*/
|
|
3561
|
-
__publicField$
|
|
3562
|
-
__publicField$
|
|
3563
|
-
__publicField$
|
|
3564
|
-
__publicField$
|
|
3565
|
-
__publicField$
|
|
3566
|
-
__publicField$
|
|
3567
|
-
__publicField$
|
|
3764
|
+
__publicField$c(this, "nameInput");
|
|
3765
|
+
__publicField$c(this, "landingPageStatus");
|
|
3766
|
+
__publicField$c(this, "salesChannelSelectionList");
|
|
3767
|
+
__publicField$c(this, "filtersResultPopoverItemList");
|
|
3768
|
+
__publicField$c(this, "saveLandingPageButton");
|
|
3769
|
+
__publicField$c(this, "loadingSpinner");
|
|
3770
|
+
__publicField$c(this, "seoUrlInput");
|
|
3568
3771
|
/**
|
|
3569
3772
|
* Layout
|
|
3570
3773
|
*/
|
|
3571
|
-
__publicField$
|
|
3572
|
-
__publicField$
|
|
3573
|
-
__publicField$
|
|
3574
|
-
__publicField$
|
|
3575
|
-
__publicField$
|
|
3576
|
-
__publicField$
|
|
3577
|
-
__publicField$
|
|
3578
|
-
__publicField$
|
|
3774
|
+
__publicField$c(this, "layoutTab");
|
|
3775
|
+
__publicField$c(this, "assignLayoutButton");
|
|
3776
|
+
__publicField$c(this, "searchLayoutInput");
|
|
3777
|
+
__publicField$c(this, "layoutItems");
|
|
3778
|
+
__publicField$c(this, "layoutSaveButton");
|
|
3779
|
+
__publicField$c(this, "layoutEmptyState");
|
|
3780
|
+
__publicField$c(this, "createNewLayoutButton");
|
|
3781
|
+
__publicField$c(this, "layoutCheckboxes");
|
|
3579
3782
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
3580
3783
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
3581
3784
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -3600,10 +3803,10 @@ class LandingPageCreate {
|
|
|
3600
3803
|
}
|
|
3601
3804
|
}
|
|
3602
3805
|
|
|
3603
|
-
var __defProp$
|
|
3604
|
-
var __defNormalProp$
|
|
3605
|
-
var __publicField$
|
|
3606
|
-
__defNormalProp$
|
|
3806
|
+
var __defProp$b = Object.defineProperty;
|
|
3807
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3808
|
+
var __publicField$b = (obj, key, value) => {
|
|
3809
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3607
3810
|
return value;
|
|
3608
3811
|
};
|
|
3609
3812
|
class LandingPageDetail {
|
|
@@ -3612,24 +3815,24 @@ class LandingPageDetail {
|
|
|
3612
3815
|
/**
|
|
3613
3816
|
* General
|
|
3614
3817
|
*/
|
|
3615
|
-
__publicField$
|
|
3616
|
-
__publicField$
|
|
3617
|
-
__publicField$
|
|
3618
|
-
__publicField$
|
|
3619
|
-
__publicField$
|
|
3620
|
-
__publicField$
|
|
3621
|
-
__publicField$
|
|
3818
|
+
__publicField$b(this, "nameInput");
|
|
3819
|
+
__publicField$b(this, "landingPageStatus");
|
|
3820
|
+
__publicField$b(this, "salesChannelSelectionList");
|
|
3821
|
+
__publicField$b(this, "filtersResultPopoverItemList");
|
|
3822
|
+
__publicField$b(this, "saveLandingPageButton");
|
|
3823
|
+
__publicField$b(this, "loadingSpinner");
|
|
3824
|
+
__publicField$b(this, "seoUrlInput");
|
|
3622
3825
|
/**
|
|
3623
3826
|
* Layout
|
|
3624
3827
|
*/
|
|
3625
|
-
__publicField$
|
|
3626
|
-
__publicField$
|
|
3627
|
-
__publicField$
|
|
3628
|
-
__publicField$
|
|
3629
|
-
__publicField$
|
|
3630
|
-
__publicField$
|
|
3631
|
-
__publicField$
|
|
3632
|
-
__publicField$
|
|
3828
|
+
__publicField$b(this, "layoutTab");
|
|
3829
|
+
__publicField$b(this, "layoutAssignmentCardTitle");
|
|
3830
|
+
__publicField$b(this, "layoutAssignmentCardHeadline");
|
|
3831
|
+
__publicField$b(this, "changeLayoutButton");
|
|
3832
|
+
__publicField$b(this, "editInDesignerButton");
|
|
3833
|
+
__publicField$b(this, "layoutResetButton");
|
|
3834
|
+
__publicField$b(this, "layoutAssignmentStatus");
|
|
3835
|
+
__publicField$b(this, "layoutAssignmentContentSection");
|
|
3633
3836
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
3634
3837
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
3635
3838
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -3653,10 +3856,10 @@ class LandingPageDetail {
|
|
|
3653
3856
|
}
|
|
3654
3857
|
}
|
|
3655
3858
|
|
|
3656
|
-
var __defProp$
|
|
3657
|
-
var __defNormalProp$
|
|
3658
|
-
var __publicField$
|
|
3659
|
-
__defNormalProp$
|
|
3859
|
+
var __defProp$a = Object.defineProperty;
|
|
3860
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3861
|
+
var __publicField$a = (obj, key, value) => {
|
|
3862
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3660
3863
|
return value;
|
|
3661
3864
|
};
|
|
3662
3865
|
class Categories {
|
|
@@ -3665,38 +3868,40 @@ class Categories {
|
|
|
3665
3868
|
/**
|
|
3666
3869
|
* Landing pages
|
|
3667
3870
|
*/
|
|
3668
|
-
__publicField$
|
|
3669
|
-
__publicField$
|
|
3670
|
-
__publicField$
|
|
3671
|
-
__publicField$
|
|
3871
|
+
__publicField$a(this, "landingPageArea");
|
|
3872
|
+
__publicField$a(this, "landingPageHeadline");
|
|
3873
|
+
__publicField$a(this, "addLandingPageButton");
|
|
3874
|
+
__publicField$a(this, "landingPageItems");
|
|
3672
3875
|
/**
|
|
3673
3876
|
* Category tree
|
|
3674
3877
|
*/
|
|
3675
|
-
__publicField$
|
|
3676
|
-
__publicField$
|
|
3677
|
-
__publicField$
|
|
3678
|
-
__publicField$
|
|
3679
|
-
__publicField$
|
|
3680
|
-
__publicField$
|
|
3681
|
-
__publicField$
|
|
3878
|
+
__publicField$a(this, "categoryTree");
|
|
3879
|
+
__publicField$a(this, "homeCategory");
|
|
3880
|
+
__publicField$a(this, "homeCategoryContextButton");
|
|
3881
|
+
__publicField$a(this, "categoryMenuItemList");
|
|
3882
|
+
__publicField$a(this, "createCategoryInput");
|
|
3883
|
+
__publicField$a(this, "confirmCategoryCreationButton");
|
|
3884
|
+
__publicField$a(this, "categoryItems");
|
|
3682
3885
|
/**
|
|
3683
3886
|
* General
|
|
3684
3887
|
*/
|
|
3685
|
-
__publicField$
|
|
3686
|
-
__publicField$
|
|
3687
|
-
__publicField$
|
|
3688
|
-
__publicField$
|
|
3689
|
-
__publicField$
|
|
3888
|
+
__publicField$a(this, "nameInput");
|
|
3889
|
+
__publicField$a(this, "activeCheckbox");
|
|
3890
|
+
__publicField$a(this, "categoryTypeSelectionList");
|
|
3891
|
+
__publicField$a(this, "filtersResultPopoverItemList");
|
|
3892
|
+
__publicField$a(this, "saveButton");
|
|
3893
|
+
__publicField$a(this, "loadingSpinner");
|
|
3690
3894
|
/**
|
|
3691
3895
|
* Customisable link
|
|
3692
3896
|
*/
|
|
3693
|
-
__publicField$
|
|
3694
|
-
__publicField$
|
|
3695
|
-
__publicField$
|
|
3696
|
-
__publicField$
|
|
3697
|
-
__publicField$
|
|
3698
|
-
__publicField$
|
|
3699
|
-
__publicField$
|
|
3897
|
+
__publicField$a(this, "entitySelectionList");
|
|
3898
|
+
__publicField$a(this, "linkTypeSelectionList");
|
|
3899
|
+
__publicField$a(this, "categorySelectionList");
|
|
3900
|
+
__publicField$a(this, "productSelectionList");
|
|
3901
|
+
__publicField$a(this, "landingPageSelectionList");
|
|
3902
|
+
__publicField$a(this, "filterResultPopoverTreeCheckboxItemList");
|
|
3903
|
+
__publicField$a(this, "openInNewTabCheckbox");
|
|
3904
|
+
__publicField$a(this, "popoverCategoryTree");
|
|
3700
3905
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
3701
3906
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
3702
3907
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
@@ -3714,35 +3919,40 @@ class Categories {
|
|
|
3714
3919
|
this.categoryTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Category type" }).locator(".sw-select__selection");
|
|
3715
3920
|
this.linkTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Link type" }).locator(".sw-select__selection");
|
|
3716
3921
|
this.entitySelectionList = page.locator(".sw-select").filter({ hasText: "Entity" }).locator(".sw-select__selection");
|
|
3717
|
-
this.categorySelectionList = page.locator(".sw-
|
|
3718
|
-
this.productSelectionList = page.locator(".sw-
|
|
3719
|
-
this.landingPageSelectionList = page.locator(".sw-
|
|
3922
|
+
this.categorySelectionList = page.locator(".sw-category-link-settings__selection-category");
|
|
3923
|
+
this.productSelectionList = page.locator(".sw-category-link-settings__selection-product");
|
|
3924
|
+
this.landingPageSelectionList = page.locator(".sw-category-link-settings__selection-landing-page");
|
|
3720
3925
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
3721
|
-
this.
|
|
3926
|
+
this.popoverCategoryTree = page.locator(".sw-category-tree-field__results_popover");
|
|
3927
|
+
this.filterResultPopoverTreeCheckboxItemList = this.popoverCategoryTree.locator(".sw-tree__content").locator(".sw-tree-item");
|
|
3722
3928
|
this.openInNewTabCheckbox = page.getByRole("checkbox", { name: "Open in new tab" });
|
|
3929
|
+
this.loadingSpinner = page.locator(".sw-loader");
|
|
3723
3930
|
}
|
|
3724
3931
|
async getLandingPageByName(landingPageName) {
|
|
3725
3932
|
return this.landingPageItems.locator(`text="${landingPageName}"`);
|
|
3726
3933
|
}
|
|
3934
|
+
async getPopOverCategoryByName(categoryName) {
|
|
3935
|
+
return this.popoverCategoryTree.locator(".sw-tree-item__element").filter({ hasText: `${categoryName}` });
|
|
3936
|
+
}
|
|
3727
3937
|
url() {
|
|
3728
3938
|
return `#/sw/category/index`;
|
|
3729
3939
|
}
|
|
3730
3940
|
}
|
|
3731
3941
|
|
|
3732
|
-
var __defProp$
|
|
3733
|
-
var __defNormalProp$
|
|
3734
|
-
var __publicField$
|
|
3735
|
-
__defNormalProp$
|
|
3942
|
+
var __defProp$9 = Object.defineProperty;
|
|
3943
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3944
|
+
var __publicField$9 = (obj, key, value) => {
|
|
3945
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3736
3946
|
return value;
|
|
3737
3947
|
};
|
|
3738
3948
|
class RuleDetail {
|
|
3739
3949
|
constructor(page) {
|
|
3740
3950
|
this.page = page;
|
|
3741
|
-
__publicField$
|
|
3742
|
-
__publicField$
|
|
3743
|
-
__publicField$
|
|
3744
|
-
__publicField$
|
|
3745
|
-
__publicField$
|
|
3951
|
+
__publicField$9(this, "nameInput");
|
|
3952
|
+
__publicField$9(this, "priorityInput");
|
|
3953
|
+
__publicField$9(this, "conditionTypeSelectionInput");
|
|
3954
|
+
__publicField$9(this, "conditionValueSelectionInput");
|
|
3955
|
+
__publicField$9(this, "filtersResultPopoverSelectionList");
|
|
3746
3956
|
this.nameInput = page.getByLabel("Name");
|
|
3747
3957
|
this.priorityInput = page.getByLabel("Priority");
|
|
3748
3958
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -3754,17 +3964,17 @@ class RuleDetail {
|
|
|
3754
3964
|
}
|
|
3755
3965
|
}
|
|
3756
3966
|
|
|
3757
|
-
var __defProp$
|
|
3758
|
-
var __defNormalProp$
|
|
3759
|
-
var __publicField$
|
|
3760
|
-
__defNormalProp$
|
|
3967
|
+
var __defProp$8 = Object.defineProperty;
|
|
3968
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3969
|
+
var __publicField$8 = (obj, key, value) => {
|
|
3970
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3761
3971
|
return value;
|
|
3762
3972
|
};
|
|
3763
3973
|
class CustomFieldListing {
|
|
3764
3974
|
constructor(page) {
|
|
3765
3975
|
this.page = page;
|
|
3766
|
-
__publicField$
|
|
3767
|
-
__publicField$
|
|
3976
|
+
__publicField$8(this, "addNewSetButton");
|
|
3977
|
+
__publicField$8(this, "customFieldRows");
|
|
3768
3978
|
this.addNewSetButton = page.getByText("Add new set");
|
|
3769
3979
|
this.customFieldRows = page.getByRole("row");
|
|
3770
3980
|
}
|
|
@@ -3792,22 +4002,22 @@ class CustomFieldListing {
|
|
|
3792
4002
|
}
|
|
3793
4003
|
}
|
|
3794
4004
|
|
|
3795
|
-
var __defProp$
|
|
3796
|
-
var __defNormalProp$
|
|
3797
|
-
var __publicField$
|
|
3798
|
-
__defNormalProp$
|
|
4005
|
+
var __defProp$7 = Object.defineProperty;
|
|
4006
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4007
|
+
var __publicField$7 = (obj, key, value) => {
|
|
4008
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3799
4009
|
return value;
|
|
3800
4010
|
};
|
|
3801
4011
|
class CustomFieldCreate {
|
|
3802
4012
|
constructor(page) {
|
|
3803
4013
|
this.page = page;
|
|
3804
|
-
__publicField$
|
|
3805
|
-
__publicField$
|
|
3806
|
-
__publicField$
|
|
3807
|
-
__publicField$
|
|
3808
|
-
__publicField$
|
|
3809
|
-
__publicField$
|
|
3810
|
-
__publicField$
|
|
4014
|
+
__publicField$7(this, "saveButton");
|
|
4015
|
+
__publicField$7(this, "cancelButton");
|
|
4016
|
+
__publicField$7(this, "technicalNameInput");
|
|
4017
|
+
__publicField$7(this, "positionInput");
|
|
4018
|
+
__publicField$7(this, "labelEnglishGBInput");
|
|
4019
|
+
__publicField$7(this, "assignToSelectionList");
|
|
4020
|
+
__publicField$7(this, "resultAssignToPopoverItemList");
|
|
3811
4021
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
3812
4022
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
3813
4023
|
this.technicalNameInput = page.getByLabel("Technical name");
|
|
@@ -3821,33 +4031,33 @@ class CustomFieldCreate {
|
|
|
3821
4031
|
}
|
|
3822
4032
|
}
|
|
3823
4033
|
|
|
3824
|
-
var __defProp$
|
|
3825
|
-
var __defNormalProp$
|
|
3826
|
-
var __publicField$
|
|
3827
|
-
__defNormalProp$
|
|
4034
|
+
var __defProp$6 = Object.defineProperty;
|
|
4035
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4036
|
+
var __publicField$6 = (obj, key, value) => {
|
|
4037
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3828
4038
|
return value;
|
|
3829
4039
|
};
|
|
3830
4040
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
3831
4041
|
constructor(page) {
|
|
3832
4042
|
super(page);
|
|
3833
4043
|
this.page = page;
|
|
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$
|
|
4044
|
+
__publicField$6(this, "newCustomFieldButton");
|
|
4045
|
+
__publicField$6(this, "customFieldEditDialog");
|
|
4046
|
+
__publicField$6(this, "newCustomFieldDialog");
|
|
4047
|
+
__publicField$6(this, "customFieldTechnicalNameInput");
|
|
4048
|
+
__publicField$6(this, "customFieldPositionInput");
|
|
4049
|
+
__publicField$6(this, "customFieldTypeSelectionList");
|
|
4050
|
+
__publicField$6(this, "customFieldModifyByStoreApiCheckbox");
|
|
4051
|
+
__publicField$6(this, "customFieldCancelButton");
|
|
4052
|
+
__publicField$6(this, "customFieldAddButton");
|
|
4053
|
+
__publicField$6(this, "customFieldEditApplyButton");
|
|
4054
|
+
__publicField$6(this, "customFieldLabelEnglishGBInput");
|
|
4055
|
+
__publicField$6(this, "customFieldPlaceholderEnglishGBInput");
|
|
4056
|
+
__publicField$6(this, "customFieldHelpTextEnglishGBInput");
|
|
4057
|
+
__publicField$6(this, "customFieldDeleteListButton");
|
|
4058
|
+
__publicField$6(this, "customFieldDeleteDialog");
|
|
4059
|
+
__publicField$6(this, "customFieldDeleteCancelButton");
|
|
4060
|
+
__publicField$6(this, "customFieldDeleteButton");
|
|
3851
4061
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
3852
4062
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
3853
4063
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
@@ -3892,20 +4102,20 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
3892
4102
|
}
|
|
3893
4103
|
}
|
|
3894
4104
|
|
|
3895
|
-
var __defProp$
|
|
3896
|
-
var __defNormalProp$
|
|
3897
|
-
var __publicField$
|
|
3898
|
-
__defNormalProp$
|
|
4105
|
+
var __defProp$5 = Object.defineProperty;
|
|
4106
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4107
|
+
var __publicField$5 = (obj, key, value) => {
|
|
4108
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3899
4109
|
return value;
|
|
3900
4110
|
};
|
|
3901
4111
|
class CategoryDetail {
|
|
3902
4112
|
constructor(page) {
|
|
3903
4113
|
this.page = page;
|
|
3904
|
-
__publicField$
|
|
3905
|
-
__publicField$
|
|
3906
|
-
__publicField$
|
|
3907
|
-
__publicField$
|
|
3908
|
-
__publicField$
|
|
4114
|
+
__publicField$5(this, "saveButton");
|
|
4115
|
+
__publicField$5(this, "cancelButton");
|
|
4116
|
+
__publicField$5(this, "customFieldCard");
|
|
4117
|
+
__publicField$5(this, "customFieldSetTabs");
|
|
4118
|
+
__publicField$5(this, "customFieldSetTabCustomContent");
|
|
3909
4119
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
3910
4120
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
3911
4121
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
@@ -3926,22 +4136,22 @@ class CategoryDetail {
|
|
|
3926
4136
|
}
|
|
3927
4137
|
}
|
|
3928
4138
|
|
|
3929
|
-
var __defProp$
|
|
3930
|
-
var __defNormalProp$
|
|
3931
|
-
var __publicField$
|
|
3932
|
-
__defNormalProp$
|
|
4139
|
+
var __defProp$4 = Object.defineProperty;
|
|
4140
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4141
|
+
var __publicField$4 = (obj, key, value) => {
|
|
4142
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3933
4143
|
return value;
|
|
3934
4144
|
};
|
|
3935
4145
|
class RuleCreate {
|
|
3936
4146
|
constructor(page) {
|
|
3937
4147
|
this.page = page;
|
|
3938
|
-
__publicField$
|
|
3939
|
-
__publicField$
|
|
3940
|
-
__publicField$
|
|
3941
|
-
__publicField$
|
|
3942
|
-
__publicField$
|
|
3943
|
-
__publicField$
|
|
3944
|
-
__publicField$
|
|
4148
|
+
__publicField$4(this, "nameInput");
|
|
4149
|
+
__publicField$4(this, "priorityInput");
|
|
4150
|
+
__publicField$4(this, "conditionTypeSelectionInput");
|
|
4151
|
+
__publicField$4(this, "conditionValueSelectionInput");
|
|
4152
|
+
__publicField$4(this, "filtersResultPopoverSelectionList");
|
|
4153
|
+
__publicField$4(this, "saveButton");
|
|
4154
|
+
__publicField$4(this, "cancelButton");
|
|
3945
4155
|
this.nameInput = page.getByLabel("Name");
|
|
3946
4156
|
this.priorityInput = page.getByLabel("Priority");
|
|
3947
4157
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -3955,6 +4165,104 @@ class RuleCreate {
|
|
|
3955
4165
|
}
|
|
3956
4166
|
}
|
|
3957
4167
|
|
|
4168
|
+
var __defProp$3 = Object.defineProperty;
|
|
4169
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4170
|
+
var __publicField$3 = (obj, key, value) => {
|
|
4171
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4172
|
+
return value;
|
|
4173
|
+
};
|
|
4174
|
+
class ManufacturerCreate {
|
|
4175
|
+
constructor(page) {
|
|
4176
|
+
this.page = page;
|
|
4177
|
+
__publicField$3(this, "saveButton");
|
|
4178
|
+
__publicField$3(this, "cancelButton");
|
|
4179
|
+
__publicField$3(this, "nameInput");
|
|
4180
|
+
__publicField$3(this, "websiteInput");
|
|
4181
|
+
__publicField$3(this, "descriptionInput");
|
|
4182
|
+
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4183
|
+
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4184
|
+
this.nameInput = page.getByLabel("Name");
|
|
4185
|
+
this.websiteInput = page.getByLabel("Website");
|
|
4186
|
+
this.descriptionInput = page.locator(".sw-text-editor__content-editor");
|
|
4187
|
+
}
|
|
4188
|
+
url() {
|
|
4189
|
+
return `#/sw/manufacturer/create`;
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
var __defProp$2 = Object.defineProperty;
|
|
4194
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4195
|
+
var __publicField$2 = (obj, key, value) => {
|
|
4196
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4197
|
+
return value;
|
|
4198
|
+
};
|
|
4199
|
+
class ManufacturerListing {
|
|
4200
|
+
constructor(page) {
|
|
4201
|
+
this.page = page;
|
|
4202
|
+
__publicField$2(this, "addManufacturerButton");
|
|
4203
|
+
__publicField$2(this, "manufacturerRows");
|
|
4204
|
+
this.addManufacturerButton = page.getByText("Add manufacturer");
|
|
4205
|
+
this.manufacturerRows = page.getByRole("row");
|
|
4206
|
+
}
|
|
4207
|
+
async getLineItemByManufacturerName(manufacturerName) {
|
|
4208
|
+
const lineItem = this.page.getByRole("row").filter({ hasText: manufacturerName });
|
|
4209
|
+
const manufacturerNameText = lineItem.getByText(manufacturerName);
|
|
4210
|
+
const manufacturerWebsiteText = lineItem.locator(".sw-data-grid__cell--link");
|
|
4211
|
+
const manufacturerCheckbox = lineItem.locator(".sw-data-grid__cell--selection");
|
|
4212
|
+
const manufacturerContextButton = lineItem.locator(".sw-context-button__button");
|
|
4213
|
+
const manufacturerEditButton = this.page.locator(".sw-context-menu__content").getByRole("link", { name: "Edit" });
|
|
4214
|
+
const manufacturerDeleteButton = this.page.locator(".sw-context-menu__content").getByRole("link", { name: "Delete" });
|
|
4215
|
+
const warningDialog = this.page.getByRole("dialog", { name: "Warning" });
|
|
4216
|
+
const warningDialogCancelButton = warningDialog.getByRole("button", { name: "Cancel" });
|
|
4217
|
+
const warningDialogDeleteButton = warningDialog.getByRole("button", { name: "Delete" });
|
|
4218
|
+
return {
|
|
4219
|
+
manufacturerNameText,
|
|
4220
|
+
manufacturerWebsiteText,
|
|
4221
|
+
manufacturerCheckbox,
|
|
4222
|
+
manufacturerContextButton,
|
|
4223
|
+
manufacturerEditButton,
|
|
4224
|
+
manufacturerDeleteButton,
|
|
4225
|
+
warningDialog,
|
|
4226
|
+
warningDialogCancelButton,
|
|
4227
|
+
warningDialogDeleteButton
|
|
4228
|
+
};
|
|
4229
|
+
}
|
|
4230
|
+
url() {
|
|
4231
|
+
return `#/sw/manufacturer/index`;
|
|
4232
|
+
}
|
|
4233
|
+
}
|
|
4234
|
+
|
|
4235
|
+
var __defProp$1 = Object.defineProperty;
|
|
4236
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4237
|
+
var __publicField$1 = (obj, key, value) => {
|
|
4238
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4239
|
+
return value;
|
|
4240
|
+
};
|
|
4241
|
+
class ManufacturerDetail extends ManufacturerCreate {
|
|
4242
|
+
constructor(page) {
|
|
4243
|
+
super(page);
|
|
4244
|
+
this.page = page;
|
|
4245
|
+
__publicField$1(this, "customFieldCard");
|
|
4246
|
+
__publicField$1(this, "customFieldSetTabs");
|
|
4247
|
+
__publicField$1(this, "customFieldSetTabCustomContent");
|
|
4248
|
+
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
4249
|
+
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
4250
|
+
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
4251
|
+
}
|
|
4252
|
+
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
4253
|
+
const customFieldCard = this.page.locator(".sw-card").filter({ hasText: "Custom fields" });
|
|
4254
|
+
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
4255
|
+
const customFieldSetTabCustomContent = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
4256
|
+
return {
|
|
4257
|
+
customFieldSetTab,
|
|
4258
|
+
customFieldSetTabCustomContent
|
|
4259
|
+
};
|
|
4260
|
+
}
|
|
4261
|
+
url(manufacturerUuid) {
|
|
4262
|
+
return `#/sw/manufacturer/detail/${manufacturerUuid}`;
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
|
|
3958
4266
|
const AdminPageObjects = {
|
|
3959
4267
|
ProductDetail,
|
|
3960
4268
|
OrderDetail,
|
|
@@ -3974,7 +4282,10 @@ const AdminPageObjects = {
|
|
|
3974
4282
|
RuleCreate,
|
|
3975
4283
|
CustomFieldListing,
|
|
3976
4284
|
CustomFieldCreate,
|
|
3977
|
-
CustomFieldDetail
|
|
4285
|
+
CustomFieldDetail,
|
|
4286
|
+
ManufacturerCreate,
|
|
4287
|
+
ManufacturerDetail,
|
|
4288
|
+
ManufacturerListing
|
|
3978
4289
|
};
|
|
3979
4290
|
const test$5 = test$e.extend({
|
|
3980
4291
|
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
@@ -4033,6 +4344,15 @@ const test$5 = test$e.extend({
|
|
|
4033
4344
|
},
|
|
4034
4345
|
AdminCustomFieldDetail: async ({ AdminPage }, use) => {
|
|
4035
4346
|
await use(new CustomFieldDetail(AdminPage));
|
|
4347
|
+
},
|
|
4348
|
+
AdminManufacturerListing: async ({ AdminPage }, use) => {
|
|
4349
|
+
await use(new ManufacturerListing(AdminPage));
|
|
4350
|
+
},
|
|
4351
|
+
AdminManufacturerCreate: async ({ AdminPage }, use) => {
|
|
4352
|
+
await use(new ManufacturerCreate(AdminPage));
|
|
4353
|
+
},
|
|
4354
|
+
AdminManufacturerDetail: async ({ AdminPage }, use) => {
|
|
4355
|
+
await use(new ManufacturerDetail(AdminPage));
|
|
4036
4356
|
}
|
|
4037
4357
|
});
|
|
4038
4358
|
|
|
@@ -4694,6 +5014,66 @@ const Register = test$e.extend({
|
|
|
4694
5014
|
}
|
|
4695
5015
|
});
|
|
4696
5016
|
|
|
5017
|
+
const RegisterGuest = test$e.extend({
|
|
5018
|
+
RegisterGuest: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
|
|
5019
|
+
const registrationData = {
|
|
5020
|
+
firstName: "Jeff",
|
|
5021
|
+
lastName: "Goldblum",
|
|
5022
|
+
email: "invalid",
|
|
5023
|
+
password: "shopware",
|
|
5024
|
+
street: "Ebbinghof 10",
|
|
5025
|
+
city: "Sch\xF6ppingen",
|
|
5026
|
+
country: "Germany",
|
|
5027
|
+
postalCode: "48624"
|
|
5028
|
+
};
|
|
5029
|
+
const task = (email, country = "Germany") => {
|
|
5030
|
+
return async function RegisterGuest2() {
|
|
5031
|
+
registrationData.email = email;
|
|
5032
|
+
await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName);
|
|
5033
|
+
await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName);
|
|
5034
|
+
await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
|
|
5035
|
+
await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
|
|
5036
|
+
await StorefrontAccountLogin.cityInput.fill(registrationData.city);
|
|
5037
|
+
if (country != "Germany") {
|
|
5038
|
+
await StorefrontAccountLogin.countryInput.selectOption(country);
|
|
5039
|
+
} else {
|
|
5040
|
+
await StorefrontAccountLogin.countryInput.selectOption(registrationData.country);
|
|
5041
|
+
}
|
|
5042
|
+
await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
|
|
5043
|
+
await StorefrontAccountLogin.registerButton.click();
|
|
5044
|
+
};
|
|
5045
|
+
};
|
|
5046
|
+
await use(task);
|
|
5047
|
+
const customerResponse = await AdminApiContext.post("search/customer", {
|
|
5048
|
+
data: {
|
|
5049
|
+
limit: 1,
|
|
5050
|
+
filter: [{
|
|
5051
|
+
type: "equals",
|
|
5052
|
+
field: "email",
|
|
5053
|
+
value: registrationData.email
|
|
5054
|
+
}]
|
|
5055
|
+
}
|
|
5056
|
+
});
|
|
5057
|
+
expect(customerResponse.ok()).toBeTruthy();
|
|
5058
|
+
const customerResponseData = await customerResponse.json();
|
|
5059
|
+
for (const customer of customerResponseData.data) {
|
|
5060
|
+
await AdminApiContext.delete(`customer/${customer.id}`);
|
|
5061
|
+
}
|
|
5062
|
+
}
|
|
5063
|
+
});
|
|
5064
|
+
|
|
5065
|
+
const ChangeStorefrontCurrency = test$e.extend({
|
|
5066
|
+
ChangeStorefrontCurrency: async ({ StorefrontHome }, use) => {
|
|
5067
|
+
const task = (isoCode) => {
|
|
5068
|
+
return async function ChangeStorefrontCurrency2() {
|
|
5069
|
+
await StorefrontHome.currenciesDropdown.click();
|
|
5070
|
+
await StorefrontHome.currenciesDropdown.getByText(" " + isoCode).click();
|
|
5071
|
+
};
|
|
5072
|
+
};
|
|
5073
|
+
await use(task);
|
|
5074
|
+
}
|
|
5075
|
+
});
|
|
5076
|
+
|
|
4697
5077
|
const AddProductToCart = test$e.extend({
|
|
4698
5078
|
AddProductToCart: async ({ ShopCustomer, StorefrontProductDetail }, use) => {
|
|
4699
5079
|
const task = (ProductData, quantity = "1") => {
|
|
@@ -4893,6 +5273,8 @@ const test$2 = mergeTests(
|
|
|
4893
5273
|
Login,
|
|
4894
5274
|
Logout,
|
|
4895
5275
|
Register,
|
|
5276
|
+
RegisterGuest,
|
|
5277
|
+
ChangeStorefrontCurrency,
|
|
4896
5278
|
AddProductToCart,
|
|
4897
5279
|
ChangeProductQuantity,
|
|
4898
5280
|
ProceedFromProductToCheckout,
|