@shopware-ag/acceptance-test-suite 12.1.0 → 12.1.2
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 +92 -41
- package/dist/index.d.ts +92 -41
- package/dist/index.mjs +281 -176
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -650,7 +650,7 @@ const administrationCategory = {
|
|
|
650
650
|
entities: entities$1
|
|
651
651
|
};
|
|
652
652
|
|
|
653
|
-
const listing$
|
|
653
|
+
const listing$o = {
|
|
654
654
|
customers: "Customers",
|
|
655
655
|
bulkEdit: "Bulk edit",
|
|
656
656
|
"delete": "Delete",
|
|
@@ -689,7 +689,7 @@ const bulkEdit$3 = {
|
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
691
|
const administrationCustomer = {
|
|
692
|
-
listing: listing$
|
|
692
|
+
listing: listing$o,
|
|
693
693
|
detail: detail$o,
|
|
694
694
|
bulkEdit: bulkEdit$3
|
|
695
695
|
};
|
|
@@ -699,7 +699,7 @@ const common$b = {
|
|
|
699
699
|
position: "Position",
|
|
700
700
|
labelEnglishGB: "Label (English (GB))"
|
|
701
701
|
};
|
|
702
|
-
const listing$
|
|
702
|
+
const listing$n = {
|
|
703
703
|
addNewSet: "Add new set"
|
|
704
704
|
};
|
|
705
705
|
const create$d = {
|
|
@@ -733,7 +733,7 @@ const dialogs$7 = {
|
|
|
733
733
|
};
|
|
734
734
|
const administrationCustomField = {
|
|
735
735
|
common: common$b,
|
|
736
|
-
listing: listing$
|
|
736
|
+
listing: listing$n,
|
|
737
737
|
create: create$d,
|
|
738
738
|
detail: detail$n,
|
|
739
739
|
general: general$9,
|
|
@@ -758,7 +758,7 @@ const administrationDataSharing = {
|
|
|
758
758
|
headlines: headlines$1
|
|
759
759
|
};
|
|
760
760
|
|
|
761
|
-
const listing$
|
|
761
|
+
const listing$m = {
|
|
762
762
|
addDocument: "Add document"
|
|
763
763
|
};
|
|
764
764
|
const types$1 = {
|
|
@@ -769,7 +769,7 @@ const detail$m = {
|
|
|
769
769
|
save: "Save"
|
|
770
770
|
};
|
|
771
771
|
const administrationDocument = {
|
|
772
|
-
listing: listing$
|
|
772
|
+
listing: listing$m,
|
|
773
773
|
types: types$1,
|
|
774
774
|
detail: detail$m
|
|
775
775
|
};
|
|
@@ -798,7 +798,7 @@ const administrationLandingPage = {
|
|
|
798
798
|
layout: layout$1
|
|
799
799
|
};
|
|
800
800
|
|
|
801
|
-
const listing$
|
|
801
|
+
const listing$l = {
|
|
802
802
|
createNewLayout: "Create new layout"
|
|
803
803
|
};
|
|
804
804
|
const create$b = {
|
|
@@ -822,7 +822,7 @@ const detail$l = {
|
|
|
822
822
|
layoutAssignment: "Layout assignment"
|
|
823
823
|
};
|
|
824
824
|
const administrationLayout = {
|
|
825
|
-
listing: listing$
|
|
825
|
+
listing: listing$l,
|
|
826
826
|
create: create$b,
|
|
827
827
|
detail: detail$l
|
|
828
828
|
};
|
|
@@ -838,7 +838,7 @@ const administrationLogin = {
|
|
|
838
838
|
loginButton: loginButton$3
|
|
839
839
|
};
|
|
840
840
|
|
|
841
|
-
const listing$
|
|
841
|
+
const listing$k = {
|
|
842
842
|
"delete": "Delete",
|
|
843
843
|
downloadFlow: "Download flow",
|
|
844
844
|
testFlow: "Test flow",
|
|
@@ -866,7 +866,7 @@ const messages$6 = {
|
|
|
866
866
|
deleteConfirmation: "If you delete this flow, no more actions will be performed for the trigger. Are you sure you want to delete this flow?"
|
|
867
867
|
};
|
|
868
868
|
const administrationFlowBuilder = {
|
|
869
|
-
listing: listing$
|
|
869
|
+
listing: listing$k,
|
|
870
870
|
create: create$a,
|
|
871
871
|
detail: detail$k,
|
|
872
872
|
templates: templates$1,
|
|
@@ -898,7 +898,7 @@ const administrationDashboard = {
|
|
|
898
898
|
order: order$1
|
|
899
899
|
};
|
|
900
900
|
|
|
901
|
-
const listing$
|
|
901
|
+
const listing$j = {
|
|
902
902
|
addManufacturer: "Add manufacturer"
|
|
903
903
|
};
|
|
904
904
|
const create$9 = {
|
|
@@ -919,7 +919,7 @@ const dialogs$6 = {
|
|
|
919
919
|
warning: "Warning"
|
|
920
920
|
};
|
|
921
921
|
const administrationManufacturer = {
|
|
922
|
-
listing: listing$
|
|
922
|
+
listing: listing$j,
|
|
923
923
|
create: create$9,
|
|
924
924
|
detail: detail$j,
|
|
925
925
|
actions: actions$f,
|
|
@@ -956,7 +956,7 @@ const tabs$8 = {
|
|
|
956
956
|
details: "Details",
|
|
957
957
|
documents: "Documents"
|
|
958
958
|
};
|
|
959
|
-
const listing$
|
|
959
|
+
const listing$i = {
|
|
960
960
|
addOrder: "Add order"
|
|
961
961
|
};
|
|
962
962
|
const actions$d = {
|
|
@@ -971,7 +971,7 @@ const administrationOrder = {
|
|
|
971
971
|
detail: detail$i,
|
|
972
972
|
contextMenu: contextMenu$1,
|
|
973
973
|
tabs: tabs$8,
|
|
974
|
-
listing: listing$
|
|
974
|
+
listing: listing$i,
|
|
975
975
|
actions: actions$d,
|
|
976
976
|
dialogs: dialogs$5
|
|
977
977
|
};
|
|
@@ -1060,7 +1060,7 @@ const common$9 = {
|
|
|
1060
1060
|
name: "Name",
|
|
1061
1061
|
availabilityRule: "Availability rule"
|
|
1062
1062
|
};
|
|
1063
|
-
const listing$
|
|
1063
|
+
const listing$h = {
|
|
1064
1064
|
addShippingMethod: "Add shipping method"
|
|
1065
1065
|
};
|
|
1066
1066
|
const detail$g = {
|
|
@@ -1077,7 +1077,7 @@ const dialogs$4 = {
|
|
|
1077
1077
|
};
|
|
1078
1078
|
const administrationShipping = {
|
|
1079
1079
|
common: common$9,
|
|
1080
|
-
listing: listing$
|
|
1080
|
+
listing: listing$h,
|
|
1081
1081
|
detail: detail$g,
|
|
1082
1082
|
methods: methods$4,
|
|
1083
1083
|
dialogs: dialogs$4
|
|
@@ -1101,7 +1101,7 @@ const administrationYourProfile = {
|
|
|
1101
1101
|
buttons: buttons$c
|
|
1102
1102
|
};
|
|
1103
1103
|
|
|
1104
|
-
const listing$
|
|
1104
|
+
const listing$g = {
|
|
1105
1105
|
customerGroups: "Customer groups"
|
|
1106
1106
|
};
|
|
1107
1107
|
const detail$f = {
|
|
@@ -1117,7 +1117,7 @@ const create$8 = {
|
|
|
1117
1117
|
seoMetaDescription: "SEO meta description"
|
|
1118
1118
|
};
|
|
1119
1119
|
const administrationCustomerGroup = {
|
|
1120
|
-
listing: listing$
|
|
1120
|
+
listing: listing$g,
|
|
1121
1121
|
detail: detail$f,
|
|
1122
1122
|
create: create$8
|
|
1123
1123
|
};
|
|
@@ -1215,7 +1215,7 @@ const bulkEdit$2 = {
|
|
|
1215
1215
|
success: "Bulk edit - Success",
|
|
1216
1216
|
close: "Close"
|
|
1217
1217
|
};
|
|
1218
|
-
const listing$
|
|
1218
|
+
const listing$f = {
|
|
1219
1219
|
bulkEdit: "Bulk edit",
|
|
1220
1220
|
startBulkEdit: "Start bulk edit"
|
|
1221
1221
|
};
|
|
@@ -1252,7 +1252,7 @@ const administrationProduct = {
|
|
|
1252
1252
|
flows: flows$1,
|
|
1253
1253
|
errors: errors$3,
|
|
1254
1254
|
bulkEdit: bulkEdit$2,
|
|
1255
|
-
listing: listing$
|
|
1255
|
+
listing: listing$f,
|
|
1256
1256
|
tabs: tabs$5,
|
|
1257
1257
|
buttons: buttons$9,
|
|
1258
1258
|
modals: modals$2,
|
|
@@ -1393,11 +1393,16 @@ const storefrontAddress = {
|
|
|
1393
1393
|
|
|
1394
1394
|
const common$6 = {
|
|
1395
1395
|
back: "Back",
|
|
1396
|
+
paymentMethod: "Payment method",
|
|
1396
1397
|
cashOnDelivery: "Cash on delivery",
|
|
1397
1398
|
paidInAdvance: "Paid in advance",
|
|
1398
1399
|
invoice: "Invoice",
|
|
1400
|
+
shippingMethod: "Shipping method",
|
|
1399
1401
|
standard: "Standard",
|
|
1400
|
-
express: "Express"
|
|
1402
|
+
express: "Express",
|
|
1403
|
+
grandTotal: "Grand total",
|
|
1404
|
+
plusVat: "plus",
|
|
1405
|
+
vatSuffix: "% VAT"
|
|
1401
1406
|
};
|
|
1402
1407
|
const cart$1 = {
|
|
1403
1408
|
shoppingCart: "Shopping cart",
|
|
@@ -1416,10 +1421,7 @@ const confirm$1 = {
|
|
|
1416
1421
|
immediateAccessToDigitalProduct: "I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel."
|
|
1417
1422
|
};
|
|
1418
1423
|
const finish$1 = {
|
|
1419
|
-
thankYouForOrder: "Thank you for your order"
|
|
1420
|
-
grandTotal: "Grand total",
|
|
1421
|
-
plusVat: "plus",
|
|
1422
|
-
vatSuffix: "% VAT"
|
|
1424
|
+
thankYouForOrder: "Thank you for your order"
|
|
1423
1425
|
};
|
|
1424
1426
|
const orderEdit$1 = {
|
|
1425
1427
|
cancelOrder: "Cancel order"
|
|
@@ -1444,7 +1446,7 @@ const review$1 = {
|
|
|
1444
1446
|
emptyText: "No reviews found. Share your insights with others.",
|
|
1445
1447
|
submitMessage: "Thank you for submitting your review. We will examine the review and eventually unlock it, please be patient."
|
|
1446
1448
|
};
|
|
1447
|
-
const listing$
|
|
1449
|
+
const listing$e = {
|
|
1448
1450
|
sorting: "Sorting",
|
|
1449
1451
|
noProductsFound: "No products found."
|
|
1450
1452
|
};
|
|
@@ -1455,7 +1457,7 @@ const storefrontProduct = {
|
|
|
1455
1457
|
removeFromWishlist: removeFromWishlist$1,
|
|
1456
1458
|
deliveryTime: deliveryTime$1,
|
|
1457
1459
|
review: review$1,
|
|
1458
|
-
listing: listing$
|
|
1460
|
+
listing: listing$e
|
|
1459
1461
|
};
|
|
1460
1462
|
|
|
1461
1463
|
const pageNotFound$1 = {
|
|
@@ -1518,17 +1520,26 @@ const storefrontConsent = {
|
|
|
1518
1520
|
cookie: cookie$1
|
|
1519
1521
|
};
|
|
1520
1522
|
|
|
1523
|
+
const topBarNav$1 = "Shop settings";
|
|
1524
|
+
const currencyDropdown$1 = "Change currency";
|
|
1525
|
+
const languageDropdown$1 = "Change language";
|
|
1521
1526
|
const skipToContentLink$1 = "Skip to main content";
|
|
1522
1527
|
const searchInputAriaLabel$1 = "Enter search term...";
|
|
1528
|
+
const wishlistIcon$1 = "Wishlist";
|
|
1523
1529
|
const storefrontHeader = {
|
|
1530
|
+
topBarNav: topBarNav$1,
|
|
1531
|
+
currencyDropdown: currencyDropdown$1,
|
|
1532
|
+
languageDropdown: languageDropdown$1,
|
|
1524
1533
|
skipToContentLink: skipToContentLink$1,
|
|
1525
|
-
searchInputAriaLabel: searchInputAriaLabel$1
|
|
1534
|
+
searchInputAriaLabel: searchInputAriaLabel$1,
|
|
1535
|
+
wishlistIcon: wishlistIcon$1
|
|
1526
1536
|
};
|
|
1527
1537
|
|
|
1528
1538
|
const account$1 = {
|
|
1529
1539
|
yourAccount: "Your account"
|
|
1530
1540
|
};
|
|
1531
1541
|
const consent$1 = {
|
|
1542
|
+
close: "Close cookie preferences",
|
|
1532
1543
|
onlyTechnicallyRequired: "Only technically required",
|
|
1533
1544
|
configure: "Configure",
|
|
1534
1545
|
acceptAllCookies: "Accept all cookies",
|
|
@@ -1536,15 +1547,22 @@ const consent$1 = {
|
|
|
1536
1547
|
marketing: "Marketing"
|
|
1537
1548
|
};
|
|
1538
1549
|
const filters$1 = {
|
|
1550
|
+
filterPanel: "Filter products",
|
|
1551
|
+
labelPrefix: "Filter by ",
|
|
1539
1552
|
manufacturer: "Manufacturer",
|
|
1540
1553
|
price: "Price",
|
|
1541
1554
|
resetAll: "Reset all",
|
|
1542
|
-
freeShipping: "Free shipping"
|
|
1555
|
+
freeShipping: "Add filter: Free shipping",
|
|
1556
|
+
rating: "minimum rating"
|
|
1557
|
+
};
|
|
1558
|
+
const listing$d = {
|
|
1559
|
+
addToShoppingCart: "Add to shopping cart"
|
|
1543
1560
|
};
|
|
1544
1561
|
const storefrontHome = {
|
|
1545
1562
|
account: account$1,
|
|
1546
1563
|
consent: consent$1,
|
|
1547
|
-
filters: filters$1
|
|
1564
|
+
filters: filters$1,
|
|
1565
|
+
listing: listing$d
|
|
1548
1566
|
};
|
|
1549
1567
|
|
|
1550
1568
|
const emailAddress$2 = "Your email address";
|
|
@@ -1555,7 +1573,7 @@ const logout$1 = "Log out";
|
|
|
1555
1573
|
const invalidCredentials$1 = "Could not find an account that matches the given credentials.";
|
|
1556
1574
|
const successfulLogout$1 = "Successfully logged out.";
|
|
1557
1575
|
const passwordUpdated$1 = "Your password has been updated.";
|
|
1558
|
-
const register$
|
|
1576
|
+
const register$1 = {
|
|
1559
1577
|
salutation: "Salutation",
|
|
1560
1578
|
firstName: "First name",
|
|
1561
1579
|
lastName: "Last name",
|
|
@@ -1580,7 +1598,7 @@ const storefrontLogin = {
|
|
|
1580
1598
|
invalidCredentials: invalidCredentials$1,
|
|
1581
1599
|
successfulLogout: successfulLogout$1,
|
|
1582
1600
|
passwordUpdated: passwordUpdated$1,
|
|
1583
|
-
register: register$
|
|
1601
|
+
register: register$1
|
|
1584
1602
|
};
|
|
1585
1603
|
|
|
1586
1604
|
const actions$a = {
|
|
@@ -1653,6 +1671,11 @@ const storefrontOffCanvasCart = {
|
|
|
1653
1671
|
buttons: buttons$8
|
|
1654
1672
|
};
|
|
1655
1673
|
|
|
1674
|
+
const removeProduct$1 = "Remove from wishlist";
|
|
1675
|
+
const storefrontWishlist = {
|
|
1676
|
+
removeProduct: removeProduct$1
|
|
1677
|
+
};
|
|
1678
|
+
|
|
1656
1679
|
const general$5 = {
|
|
1657
1680
|
name: "Name",
|
|
1658
1681
|
active: "Aktiv",
|
|
@@ -1700,7 +1723,7 @@ const deAdministrationCategory = {
|
|
|
1700
1723
|
entities: entities
|
|
1701
1724
|
};
|
|
1702
1725
|
|
|
1703
|
-
const listing$
|
|
1726
|
+
const listing$c = {
|
|
1704
1727
|
customers: "Kunden",
|
|
1705
1728
|
bulkEdit: "Massenbearbeitung",
|
|
1706
1729
|
startBulkEdit: "Massenbearbeitung starten",
|
|
@@ -1739,12 +1762,12 @@ const bulkEdit$1 = {
|
|
|
1739
1762
|
}
|
|
1740
1763
|
};
|
|
1741
1764
|
const deAdministrationCustomer = {
|
|
1742
|
-
listing: listing$
|
|
1765
|
+
listing: listing$c,
|
|
1743
1766
|
detail: detail$d,
|
|
1744
1767
|
bulkEdit: bulkEdit$1
|
|
1745
1768
|
};
|
|
1746
1769
|
|
|
1747
|
-
const listing$
|
|
1770
|
+
const listing$b = {
|
|
1748
1771
|
addCustomerGroup: "Kundengruppe hinzufügen",
|
|
1749
1772
|
customerGroups: "Kundengruppen"
|
|
1750
1773
|
};
|
|
@@ -1766,7 +1789,7 @@ const detail$c = {
|
|
|
1766
1789
|
technicalUrl: "Technische URL"
|
|
1767
1790
|
};
|
|
1768
1791
|
const deAdministrationCustomerGroup = {
|
|
1769
|
-
listing: listing$
|
|
1792
|
+
listing: listing$b,
|
|
1770
1793
|
create: create$7,
|
|
1771
1794
|
detail: detail$c
|
|
1772
1795
|
};
|
|
@@ -1779,7 +1802,7 @@ const common$5 = {
|
|
|
1779
1802
|
customFieldSet: "Eigene Felder Set",
|
|
1780
1803
|
labelEnglishGB: "Label (English (GB))"
|
|
1781
1804
|
};
|
|
1782
|
-
const listing$
|
|
1805
|
+
const listing$a = {
|
|
1783
1806
|
addCustomField: "Eigenes Feld hinzufügen",
|
|
1784
1807
|
addNewSet: "Set anlegen"
|
|
1785
1808
|
};
|
|
@@ -1819,7 +1842,7 @@ const dialogs$3 = {
|
|
|
1819
1842
|
};
|
|
1820
1843
|
const deAdministrationCustomField = {
|
|
1821
1844
|
common: common$5,
|
|
1822
|
-
listing: listing$
|
|
1845
|
+
listing: listing$a,
|
|
1823
1846
|
create: create$6,
|
|
1824
1847
|
detail: detail$b,
|
|
1825
1848
|
general: general$4,
|
|
@@ -1869,7 +1892,7 @@ const deAdministrationDataSharing = {
|
|
|
1869
1892
|
headlines: headlines
|
|
1870
1893
|
};
|
|
1871
1894
|
|
|
1872
|
-
const listing$
|
|
1895
|
+
const listing$9 = {
|
|
1873
1896
|
addDocument: "Dokument hinzufügen"
|
|
1874
1897
|
};
|
|
1875
1898
|
const types = {
|
|
@@ -1880,7 +1903,7 @@ const detail$a = {
|
|
|
1880
1903
|
save: "Speichern"
|
|
1881
1904
|
};
|
|
1882
1905
|
const deAdministrationDocument = {
|
|
1883
|
-
listing: listing$
|
|
1906
|
+
listing: listing$9,
|
|
1884
1907
|
types: types,
|
|
1885
1908
|
detail: detail$a
|
|
1886
1909
|
};
|
|
@@ -1927,7 +1950,7 @@ const deAdministrationFirstRunWizard = {
|
|
|
1927
1950
|
regions: regions
|
|
1928
1951
|
};
|
|
1929
1952
|
|
|
1930
|
-
const listing$
|
|
1953
|
+
const listing$8 = {
|
|
1931
1954
|
addFlow: "Flow hinzufügen",
|
|
1932
1955
|
"delete": "Löschen",
|
|
1933
1956
|
downloadFlow: "Herunterladen",
|
|
@@ -1963,7 +1986,7 @@ const messages$2 = {
|
|
|
1963
1986
|
deleteConfirmation: "Löschen"
|
|
1964
1987
|
};
|
|
1965
1988
|
const deAdministrationFlowBuilder = {
|
|
1966
|
-
listing: listing$
|
|
1989
|
+
listing: listing$8,
|
|
1967
1990
|
create: create$5,
|
|
1968
1991
|
detail: detail$9,
|
|
1969
1992
|
templates: templates,
|
|
@@ -2003,7 +2026,7 @@ const deAdministrationLandingPage = {
|
|
|
2003
2026
|
layout: layout
|
|
2004
2027
|
};
|
|
2005
2028
|
|
|
2006
|
-
const listing$
|
|
2029
|
+
const listing$7 = {
|
|
2007
2030
|
createNewLayout: "Neues Layout erstellen"
|
|
2008
2031
|
};
|
|
2009
2032
|
const create$3 = {
|
|
@@ -2027,7 +2050,7 @@ const detail$7 = {
|
|
|
2027
2050
|
layoutAssignment: "Layout-Zuordnung"
|
|
2028
2051
|
};
|
|
2029
2052
|
const deAdministrationLayout = {
|
|
2030
|
-
listing: listing$
|
|
2053
|
+
listing: listing$7,
|
|
2031
2054
|
create: create$3,
|
|
2032
2055
|
detail: detail$7
|
|
2033
2056
|
};
|
|
@@ -2043,7 +2066,7 @@ const deAdministrationLogin = {
|
|
|
2043
2066
|
loginButton: loginButton$1
|
|
2044
2067
|
};
|
|
2045
2068
|
|
|
2046
|
-
const listing$
|
|
2069
|
+
const listing$6 = {
|
|
2047
2070
|
addManufacturer: "Hersteller anlegen"
|
|
2048
2071
|
};
|
|
2049
2072
|
const create$2 = {
|
|
@@ -2064,7 +2087,7 @@ const dialogs$2 = {
|
|
|
2064
2087
|
warning: "Warnung"
|
|
2065
2088
|
};
|
|
2066
2089
|
const deAdministrationManufacturer = {
|
|
2067
|
-
listing: listing$
|
|
2090
|
+
listing: listing$6,
|
|
2068
2091
|
create: create$2,
|
|
2069
2092
|
detail: detail$6,
|
|
2070
2093
|
actions: actions$6,
|
|
@@ -2101,7 +2124,7 @@ const tabs$3 = {
|
|
|
2101
2124
|
details: "Details",
|
|
2102
2125
|
documents: "Dokumente"
|
|
2103
2126
|
};
|
|
2104
|
-
const listing$
|
|
2127
|
+
const listing$5 = {
|
|
2105
2128
|
addOrder: "Bestellung anlegen"
|
|
2106
2129
|
};
|
|
2107
2130
|
const actions$4 = {
|
|
@@ -2116,7 +2139,7 @@ const deAdministrationOrder = {
|
|
|
2116
2139
|
detail: detail$5,
|
|
2117
2140
|
contextMenu: contextMenu,
|
|
2118
2141
|
tabs: tabs$3,
|
|
2119
|
-
listing: listing$
|
|
2142
|
+
listing: listing$5,
|
|
2120
2143
|
actions: actions$4,
|
|
2121
2144
|
dialogs: dialogs$1
|
|
2122
2145
|
};
|
|
@@ -2139,7 +2162,7 @@ const deAdministrationPayment = {
|
|
|
2139
2162
|
methods: methods$2
|
|
2140
2163
|
};
|
|
2141
2164
|
|
|
2142
|
-
const listing$
|
|
2165
|
+
const listing$4 = {
|
|
2143
2166
|
addProduct: "Produkt hinzufügen",
|
|
2144
2167
|
bulkEdit: "Massenbearbeitung",
|
|
2145
2168
|
startBulkEdit: "Bearbeiten"
|
|
@@ -2208,7 +2231,7 @@ const propertyValues = {
|
|
|
2208
2231
|
large: "Groß"
|
|
2209
2232
|
};
|
|
2210
2233
|
const deAdministrationProduct = {
|
|
2211
|
-
listing: listing$
|
|
2234
|
+
listing: listing$4,
|
|
2212
2235
|
create: create$1,
|
|
2213
2236
|
detail: detail$3,
|
|
2214
2237
|
errors: errors$1,
|
|
@@ -2221,7 +2244,7 @@ const deAdministrationProduct = {
|
|
|
2221
2244
|
propertyValues: propertyValues
|
|
2222
2245
|
};
|
|
2223
2246
|
|
|
2224
|
-
const listing$
|
|
2247
|
+
const listing$3 = {
|
|
2225
2248
|
addPromotion: "Promotion hinzufügen"
|
|
2226
2249
|
};
|
|
2227
2250
|
const create = {
|
|
@@ -2261,7 +2284,7 @@ const cards = {
|
|
|
2261
2284
|
preConditions: "Voraussetzungen"
|
|
2262
2285
|
};
|
|
2263
2286
|
const deAdministrationPromotion = {
|
|
2264
|
-
listing: listing$
|
|
2287
|
+
listing: listing$3,
|
|
2265
2288
|
create: create,
|
|
2266
2289
|
detail: detail$2,
|
|
2267
2290
|
actions: actions$3,
|
|
@@ -2306,7 +2329,7 @@ const common$3 = {
|
|
|
2306
2329
|
name: "Name",
|
|
2307
2330
|
availabilityRule: "Verfügbarkeitsregel"
|
|
2308
2331
|
};
|
|
2309
|
-
const listing$
|
|
2332
|
+
const listing$2 = {
|
|
2310
2333
|
addShippingMethod: "Versandart hinzufügen"
|
|
2311
2334
|
};
|
|
2312
2335
|
const detail$1 = {
|
|
@@ -2323,7 +2346,7 @@ const dialogs = {
|
|
|
2323
2346
|
};
|
|
2324
2347
|
const deAdministrationShipping = {
|
|
2325
2348
|
common: common$3,
|
|
2326
|
-
listing: listing$
|
|
2349
|
+
listing: listing$2,
|
|
2327
2350
|
detail: detail$1,
|
|
2328
2351
|
methods: methods$1,
|
|
2329
2352
|
dialogs: dialogs
|
|
@@ -2540,26 +2563,25 @@ const deStorefrontAddress = {
|
|
|
2540
2563
|
|
|
2541
2564
|
const common = {
|
|
2542
2565
|
back: "Zurück",
|
|
2566
|
+
paymentMethod: "Zahlungsart",
|
|
2543
2567
|
cashOnDelivery: "Nachnahme",
|
|
2544
2568
|
paidInAdvance: "Vorkasse",
|
|
2545
2569
|
invoice: "Rechnung",
|
|
2570
|
+
shippingMethod: "Versandart",
|
|
2546
2571
|
standard: "Standard",
|
|
2547
|
-
express: "Express"
|
|
2572
|
+
express: "Express",
|
|
2573
|
+
grandTotal: "Gesamtsumme",
|
|
2574
|
+
plusVat: "zzgl.",
|
|
2575
|
+
vatSuffix: " % MwSt."
|
|
2548
2576
|
};
|
|
2549
2577
|
const cart = {
|
|
2550
|
-
addToCart: "In den Warenkorb",
|
|
2551
|
-
removeFromCart: "Aus dem Warenkorb entfernen",
|
|
2552
|
-
quantity: "Anzahl",
|
|
2553
|
-
price: "Preis",
|
|
2554
|
-
subtotal: "Zwischensumme",
|
|
2555
|
-
total: "Gesamt",
|
|
2556
|
-
emptyCart: "Ihr Warenkorb ist leer",
|
|
2557
|
-
continueShopping: "Weiter einkaufen",
|
|
2558
|
-
proceedToCheckout: "Zur Kasse",
|
|
2559
2578
|
shoppingCart: "Warenkorb",
|
|
2560
2579
|
goToCheckout: "Zur Kasse gehen",
|
|
2561
2580
|
displayShoppingCart: "Warenkorb anzeigen",
|
|
2581
|
+
continueShopping: "Weiter einkaufen",
|
|
2562
2582
|
promoCode: "Aktionscode",
|
|
2583
|
+
emptyCart: "Ihr Warenkorb ist leer.",
|
|
2584
|
+
quantity: "Anzahl",
|
|
2563
2585
|
stockReached: "nur noch 1x verfügbar"
|
|
2564
2586
|
};
|
|
2565
2587
|
const confirm = {
|
|
@@ -2567,8 +2589,6 @@ const confirm = {
|
|
|
2567
2589
|
orderSummary: "Bestellübersicht",
|
|
2568
2590
|
shippingAddress: "Lieferadresse",
|
|
2569
2591
|
billingAddress: "Rechnungsadresse",
|
|
2570
|
-
shippingMethod: "Versandart",
|
|
2571
|
-
paymentMethod: "Zahlungsart",
|
|
2572
2592
|
agreeToTerms: "Ich stimme den AGBs zu",
|
|
2573
2593
|
revocationNotice: "Widerrufsbelehrung",
|
|
2574
2594
|
completeOrder: "Bestellung abschließen",
|
|
@@ -2577,29 +2597,17 @@ const confirm = {
|
|
|
2577
2597
|
immediateAccessToDigitalProduct: "Ja, ich möchte sofort Zugang zu dem digitalen Inhalt und weiß, dass mein Widerrufsrecht mit dem Zugang erlischt."
|
|
2578
2598
|
};
|
|
2579
2599
|
const finish = {
|
|
2580
|
-
|
|
2581
|
-
thankYouForOrder: "Vielen Dank für Ihre Bestellung",
|
|
2582
|
-
orderNumber: "Bestellnummer",
|
|
2583
|
-
orderConfirmation: "Bestellbestätigung",
|
|
2584
|
-
continueShopping: "Weiter einkaufen",
|
|
2585
|
-
grandTotal: "Gesamtsumme",
|
|
2586
|
-
plusVat: "zzgl.",
|
|
2587
|
-
vatSuffix: "% MwSt."
|
|
2600
|
+
thankYouForOrder: "Vielen Dank für Ihre Bestellung"
|
|
2588
2601
|
};
|
|
2589
2602
|
const orderEdit = {
|
|
2590
2603
|
cancelOrder: "Bestellung stornieren"
|
|
2591
2604
|
};
|
|
2592
|
-
const register$1 = {
|
|
2593
|
-
createAccount: "Konto erstellen",
|
|
2594
|
-
guestCheckout: "Als Gast bestellen"
|
|
2595
|
-
};
|
|
2596
2605
|
const deStorefrontCheckout = {
|
|
2597
2606
|
common: common,
|
|
2598
2607
|
cart: cart,
|
|
2599
2608
|
confirm: confirm,
|
|
2600
2609
|
finish: finish,
|
|
2601
|
-
orderEdit: orderEdit
|
|
2602
|
-
register: register$1
|
|
2610
|
+
orderEdit: orderEdit
|
|
2603
2611
|
};
|
|
2604
2612
|
|
|
2605
2613
|
const cookie = {
|
|
@@ -2650,17 +2658,26 @@ const deStorefrontContact = {
|
|
|
2650
2658
|
title: title$2
|
|
2651
2659
|
};
|
|
2652
2660
|
|
|
2661
|
+
const topBarNav = "Shop-Einstellungen";
|
|
2662
|
+
const currencyDropdown = "Währung ändern";
|
|
2663
|
+
const languageDropdown = "Sprache ändern";
|
|
2653
2664
|
const skipToContentLink = "Zum Hauptinhalt springen";
|
|
2654
2665
|
const searchInputAriaLabel = "Suchbegriff eingeben ...";
|
|
2666
|
+
const wishlistIcon = "Merkzettel";
|
|
2655
2667
|
const deStorefrontHeader = {
|
|
2668
|
+
topBarNav: topBarNav,
|
|
2669
|
+
currencyDropdown: currencyDropdown,
|
|
2670
|
+
languageDropdown: languageDropdown,
|
|
2656
2671
|
skipToContentLink: skipToContentLink,
|
|
2657
|
-
searchInputAriaLabel: searchInputAriaLabel
|
|
2672
|
+
searchInputAriaLabel: searchInputAriaLabel,
|
|
2673
|
+
wishlistIcon: wishlistIcon
|
|
2658
2674
|
};
|
|
2659
2675
|
|
|
2660
2676
|
const account = {
|
|
2661
2677
|
yourAccount: "Ihr Konto"
|
|
2662
2678
|
};
|
|
2663
2679
|
const consent = {
|
|
2680
|
+
close: "Cookie-Voreinstellungen schließen",
|
|
2664
2681
|
onlyTechnicallyRequired: "Nur technisch erforderlich",
|
|
2665
2682
|
configure: "Konfigurieren",
|
|
2666
2683
|
acceptAllCookies: "Alle Cookies akzeptieren",
|
|
@@ -2668,15 +2685,22 @@ const consent = {
|
|
|
2668
2685
|
marketing: "Marketing"
|
|
2669
2686
|
};
|
|
2670
2687
|
const filters = {
|
|
2688
|
+
filterPanel: "Produkte filtern",
|
|
2689
|
+
labelPrefix: "Filtern nach ",
|
|
2671
2690
|
manufacturer: "Hersteller",
|
|
2672
2691
|
price: "Preis",
|
|
2673
2692
|
resetAll: "Alle zurücksetzen",
|
|
2674
|
-
freeShipping: "
|
|
2693
|
+
freeShipping: "Filter hinzufügen: Versandkostenfrei",
|
|
2694
|
+
rating: "Mindestbewertung"
|
|
2695
|
+
};
|
|
2696
|
+
const listing$1 = {
|
|
2697
|
+
addToShoppingCart: "In den Warenkorb"
|
|
2675
2698
|
};
|
|
2676
2699
|
const deStorefrontHome = {
|
|
2677
2700
|
account: account,
|
|
2678
2701
|
consent: consent,
|
|
2679
|
-
filters: filters
|
|
2702
|
+
filters: filters,
|
|
2703
|
+
listing: listing$1
|
|
2680
2704
|
};
|
|
2681
2705
|
|
|
2682
2706
|
const emailAddress = "Ihre E-Mail-Adresse";
|
|
@@ -2883,6 +2907,11 @@ const deStorefrontRecover = {
|
|
|
2883
2907
|
invalidLink: invalidLink
|
|
2884
2908
|
};
|
|
2885
2909
|
|
|
2910
|
+
const removeProduct = "Vom Merkzettel entfernen";
|
|
2911
|
+
const deStorefrontWishlist = {
|
|
2912
|
+
removeProduct: removeProduct
|
|
2913
|
+
};
|
|
2914
|
+
|
|
2886
2915
|
const BUNDLED_RESOURCES = {
|
|
2887
2916
|
en: {
|
|
2888
2917
|
// Administration
|
|
@@ -2924,7 +2953,8 @@ const BUNDLED_RESOURCES = {
|
|
|
2924
2953
|
"storefront/pageNotFound": storefrontPageNotFound,
|
|
2925
2954
|
"storefront/payment": storefrontPayment,
|
|
2926
2955
|
"storefront/recover": storefrontRecover,
|
|
2927
|
-
"storefront/offCanvasCart": storefrontOffCanvasCart
|
|
2956
|
+
"storefront/offCanvasCart": storefrontOffCanvasCart,
|
|
2957
|
+
"storefront/wishlist": storefrontWishlist
|
|
2928
2958
|
},
|
|
2929
2959
|
de: {
|
|
2930
2960
|
// Administration
|
|
@@ -2966,7 +2996,8 @@ const BUNDLED_RESOURCES = {
|
|
|
2966
2996
|
"storefront/pageNotFound": deStorefrontPageNotFound,
|
|
2967
2997
|
"storefront/payment": deStorefrontPayment,
|
|
2968
2998
|
"storefront/product": deStorefrontProduct,
|
|
2969
|
-
"storefront/recover": deStorefrontRecover
|
|
2999
|
+
"storefront/recover": deStorefrontRecover,
|
|
3000
|
+
"storefront/wishlist": deStorefrontWishlist
|
|
2970
3001
|
}
|
|
2971
3002
|
};
|
|
2972
3003
|
const baseNamespaces = {
|
|
@@ -3010,7 +3041,8 @@ const baseNamespaces = {
|
|
|
3010
3041
|
pageNotFound: storefrontPageNotFound,
|
|
3011
3042
|
payment: storefrontPayment,
|
|
3012
3043
|
recover: storefrontRecover,
|
|
3013
|
-
offCanvasCart: storefrontOffCanvasCart
|
|
3044
|
+
offCanvasCart: storefrontOffCanvasCart,
|
|
3045
|
+
wishlist: storefrontWishlist
|
|
3014
3046
|
}
|
|
3015
3047
|
};
|
|
3016
3048
|
|
|
@@ -3031,7 +3063,7 @@ const COUNTRY_ADDRESS_DATA = {
|
|
|
3031
3063
|
US: {
|
|
3032
3064
|
street: "1600 Pennsylvania Avenue NW",
|
|
3033
3065
|
city: "Washington",
|
|
3034
|
-
country: "United States",
|
|
3066
|
+
country: "United States of America",
|
|
3035
3067
|
postalCode: "20500",
|
|
3036
3068
|
vatRegNo: "US123456789"
|
|
3037
3069
|
},
|
|
@@ -3056,21 +3088,33 @@ const getLocale = () => {
|
|
|
3056
3088
|
return LOCALE_MAPPINGS[locale] ? locale : "en-GB";
|
|
3057
3089
|
};
|
|
3058
3090
|
const getLanguageCode = (locale) => {
|
|
3059
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3091
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3060
3092
|
return mapping ? mapping.languageCode : "en-GB";
|
|
3061
3093
|
};
|
|
3062
3094
|
const getCountryCodeFromLocale = (locale) => {
|
|
3063
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3095
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3064
3096
|
return mapping ? mapping.countryCode : "GB";
|
|
3065
3097
|
};
|
|
3066
3098
|
const getCurrencyCodeFromLocale = (locale) => {
|
|
3067
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3099
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3068
3100
|
return mapping ? mapping.currencyCode : "GBP";
|
|
3069
3101
|
};
|
|
3070
3102
|
const getCurrencySymbolFromLocale = (locale) => {
|
|
3071
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3103
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3072
3104
|
return mapping ? mapping.currencySymbol : "\xA3";
|
|
3073
3105
|
};
|
|
3106
|
+
const formatPrice = (price, locale, currencyCode) => {
|
|
3107
|
+
const currentLocale = locale || getLocale();
|
|
3108
|
+
const currency = currencyCode || getCurrencyCodeFromLocale(currentLocale);
|
|
3109
|
+
const formatter = new Intl.NumberFormat(currentLocale, {
|
|
3110
|
+
style: "currency",
|
|
3111
|
+
currency,
|
|
3112
|
+
currencyDisplay: "symbol",
|
|
3113
|
+
minimumFractionDigits: 2,
|
|
3114
|
+
maximumFractionDigits: 2
|
|
3115
|
+
});
|
|
3116
|
+
return formatter.format(price).replace(/\u00A0/g, " ");
|
|
3117
|
+
};
|
|
3074
3118
|
const getLanguageData = async (adminApiContext, languageCode) => {
|
|
3075
3119
|
const code = languageCode || getLanguageCode(getLocale());
|
|
3076
3120
|
const resp = await adminApiContext.post("search/language", {
|
|
@@ -6336,6 +6380,7 @@ class Home {
|
|
|
6336
6380
|
consentCookiePreferences;
|
|
6337
6381
|
consentCookiePermissionContent;
|
|
6338
6382
|
consentDialog;
|
|
6383
|
+
consentDialogCloseButton;
|
|
6339
6384
|
consentDialogTechnicallyRequiredCheckbox;
|
|
6340
6385
|
consentDialogStatisticsCheckbox;
|
|
6341
6386
|
/**
|
|
@@ -6394,6 +6439,7 @@ class Home {
|
|
|
6394
6439
|
this.consentCookiePreferences = page.getByLabel(translate("storefront:home:consent.cookiePreferences"));
|
|
6395
6440
|
this.consentCookiePermissionContent = page.locator(".cookie-permission-content");
|
|
6396
6441
|
this.consentDialog = page.getByRole("dialog").filter({ hasText: translate("storefront:home:consent.cookiePreferences") });
|
|
6442
|
+
this.consentDialogCloseButton = this.consentDialog.getByRole("button", { name: translate("storefront:home:consent.close") });
|
|
6397
6443
|
this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", {
|
|
6398
6444
|
name: "Technically required",
|
|
6399
6445
|
exact: true
|
|
@@ -6417,30 +6463,30 @@ class Home {
|
|
|
6417
6463
|
this.contactFormLink = this.page.getByRole("listitem").getByTitle("Contact form", { exact: true });
|
|
6418
6464
|
this.wishlistIcon = page.locator(".header-wishlist-icon");
|
|
6419
6465
|
this.wishlistBasket = page.locator(".header-wishlist-badge");
|
|
6420
|
-
this.filterMultiSelect = page.
|
|
6466
|
+
this.filterMultiSelect = page.getByLabel(translate("storefront:home:filters.filterPanel")).getByRole("list");
|
|
6467
|
+
this.freeShippingFilter = this.filterMultiSelect.getByLabel(translate("storefront:home:filters.freeShipping"));
|
|
6421
6468
|
this.manufacturerFilter = this.filterMultiSelect.getByRole("button", { name: translate("storefront:home:filters.manufacturer") });
|
|
6469
|
+
this.priceFilterButton = this.filterMultiSelect.getByRole("button", { name: translate("storefront:home:filters.price") }).first();
|
|
6470
|
+
this.productRatingButton = this.filterMultiSelect.getByRole("button", { name: translate("storefront:home:filters.rating") });
|
|
6471
|
+
this.productRatingList = this.filterMultiSelect.locator(".filter-multi-select-rating").getByRole("list");
|
|
6422
6472
|
this.propertyFilters = page.locator(".filter-multi-select-properties");
|
|
6423
|
-
this.priceFilterButton = page.getByRole("button", { name: translate("storefront:home:filters.price") }).first();
|
|
6424
6473
|
this.resetAllButton = page.getByRole("button", { name: translate("storefront:home:filters.resetAll") });
|
|
6425
|
-
this.
|
|
6474
|
+
this.loader = page.locator(".has-element-loader");
|
|
6426
6475
|
this.productList = page.locator(".cms-listing-row");
|
|
6427
6476
|
this.productItemNames = this.productList.locator(".product-name");
|
|
6428
|
-
this.productRatingButton = this.filterMultiSelect.locator('.btn:has-text("Rating min.")');
|
|
6429
|
-
this.productRatingList = page.locator(".filter-rating-select-list-item");
|
|
6430
|
-
this.loader = page.locator(".has-element-loader");
|
|
6431
6477
|
this.productVariantCharacteristicsOptions = page.locator(".product-variant-characteristics-option");
|
|
6432
6478
|
}
|
|
6433
6479
|
async getRatingItemLocatorByRating(rating) {
|
|
6434
|
-
return this.productRatingList.
|
|
6480
|
+
return this.productRatingList.getByLabel(`min. ${rating}/5`);
|
|
6435
6481
|
}
|
|
6436
6482
|
async getFilterItemByFilterName(filterName) {
|
|
6437
6483
|
return this.filterMultiSelect.getByRole("checkbox", { name: filterName });
|
|
6438
6484
|
}
|
|
6439
6485
|
async getFilterButtonByFilterName(filterName) {
|
|
6440
|
-
return this.filterMultiSelect.getByRole("button", { name: filterName });
|
|
6486
|
+
return this.filterMultiSelect.getByRole("button", { name: `${translate("storefront:home:filters.labelPrefix").concat(filterName)}` });
|
|
6441
6487
|
}
|
|
6442
6488
|
async getMenuItemByCategoryName(categoryName) {
|
|
6443
|
-
const menuNavigationItem = this.page.locator(".nav-main").
|
|
6489
|
+
const menuNavigationItem = this.page.locator(".nav-main").getByRole("link", { name: categoryName, exact: true });
|
|
6444
6490
|
const offcanvasNavigationItem = this.page.locator(".js-navigation-offcanvas-initial-content").getByText(categoryName, { exact: true });
|
|
6445
6491
|
const breadcrumbNavigationItem = this.page.locator(".cms-breadcrumb").getByText(categoryName, { exact: true });
|
|
6446
6492
|
const breadcrumbNavigationLinkItem = this.page.locator(".breadcrumb-item").filter({ has: this.page.getByText(categoryName, { exact: true }) }).getByRole("link");
|
|
@@ -6493,7 +6539,7 @@ class Home {
|
|
|
6493
6539
|
};
|
|
6494
6540
|
}
|
|
6495
6541
|
async getListingItemByProductName(productListingName) {
|
|
6496
|
-
const listingItem = this.page.getByRole("listitem").filter({
|
|
6542
|
+
const listingItem = this.page.getByRole("listitem").filter({ hasText: productListingName });
|
|
6497
6543
|
const productImage = listingItem.locator(".product-image-link");
|
|
6498
6544
|
const productRating = listingItem.locator(".product-rating");
|
|
6499
6545
|
const productVariantCharacteristics = listingItem.locator(".product-variant-characteristics");
|
|
@@ -6502,9 +6548,7 @@ class Home {
|
|
|
6502
6548
|
const productCheapestPrice = listingItem.locator(".product-cheapest-price");
|
|
6503
6549
|
const productPrice = listingItem.locator(".product-price");
|
|
6504
6550
|
const productName = listingItem.locator(".product-name");
|
|
6505
|
-
const productAddToShoppingCart = listingItem.getByRole("button", {
|
|
6506
|
-
name: "Add to shopping cart"
|
|
6507
|
-
});
|
|
6551
|
+
const productAddToShoppingCart = listingItem.getByRole("button", { name: translate("storefront:home:listing.addToShoppingCart") });
|
|
6508
6552
|
const productListingPrice = listingItem.locator(".list-price-price");
|
|
6509
6553
|
const productListingPricePercentage = listingItem.locator(".list-price-percentage");
|
|
6510
6554
|
const productListingPriceBadge = listingItem.locator(".badge-discount");
|
|
@@ -6552,6 +6596,7 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
6552
6596
|
offCanvasLineItemDeliveryDate;
|
|
6553
6597
|
wishlistAddedButton;
|
|
6554
6598
|
wishlistNotAddedButton;
|
|
6599
|
+
propertyRadioGroup;
|
|
6555
6600
|
productDetailConfigurator;
|
|
6556
6601
|
productDetailConfiguratorGroupTitle;
|
|
6557
6602
|
productDetailConfiguratorOptionInputs;
|
|
@@ -6603,6 +6648,7 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
6603
6648
|
this.offCanvasLineItemDeliveryDate = page.locator(".line-item-delivery-date");
|
|
6604
6649
|
this.wishlistAddedButton = page.locator(".product-wishlist-added");
|
|
6605
6650
|
this.wishlistNotAddedButton = page.locator(".product-wishlist-not-added");
|
|
6651
|
+
this.propertyRadioGroup = (propertyName) => this.page.getByRole("group", { name: propertyName });
|
|
6606
6652
|
this.productDetailConfigurator = page.locator(".product-detail-configurator");
|
|
6607
6653
|
this.productDetailConfiguratorGroupTitle = page.locator(".product-detail-configurator-group-title");
|
|
6608
6654
|
this.productDetailConfiguratorOptionInputs = page.locator(".product-detail-configurator-option-input");
|
|
@@ -6687,7 +6733,7 @@ class CheckoutCart {
|
|
|
6687
6733
|
this.headline = page.getByRole("heading", { name: translate("storefront:checkout:cart.shoppingCart") });
|
|
6688
6734
|
this.goToCheckoutButton = page.getByRole("link", { name: translate("storefront:checkout:cart.goToCheckout") });
|
|
6689
6735
|
this.enterPromoInput = page.getByLabel(translate("storefront:checkout:cart.promoCode"));
|
|
6690
|
-
this.grandTotalPrice = page.locator(`dt:has-text("${translate("storefront:checkout:
|
|
6736
|
+
this.grandTotalPrice = page.locator(`dt:has-text("${translate("storefront:checkout:common.grandTotal")}") + dd:visible`);
|
|
6691
6737
|
this.emptyCartAlert = page.getByText(translate("storefront:checkout:cart.emptyCart"));
|
|
6692
6738
|
this.stockReachedAlert = page.getByText(translate("storefront:checkout:cart.stockReached"));
|
|
6693
6739
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
@@ -6794,15 +6840,19 @@ class CheckoutConfirm {
|
|
|
6794
6840
|
taxPrice;
|
|
6795
6841
|
submitOrderButton;
|
|
6796
6842
|
/**
|
|
6797
|
-
* Payment options
|
|
6843
|
+
* Payment and Shipping options
|
|
6798
6844
|
*/
|
|
6845
|
+
paymentMethodRadioGroup;
|
|
6846
|
+
shippingMethodRadioGroup;
|
|
6847
|
+
/** @deprecated - Use 'paymentMethodRadioGroup' with selectsRadioButton() instead. */
|
|
6799
6848
|
paymentCashOnDelivery;
|
|
6849
|
+
/** @deprecated - Use 'paymentMethodRadioGroup' with selectsRadioButton() instead. */
|
|
6800
6850
|
paymentPaidInAdvance;
|
|
6851
|
+
/** @deprecated - Use 'paymentMethodRadioGroup' with selectsRadioButton() instead. */
|
|
6801
6852
|
paymentInvoice;
|
|
6802
|
-
/**
|
|
6803
|
-
* Shipping options
|
|
6804
|
-
*/
|
|
6853
|
+
/** @deprecated - Use 'shippingMethodRadioGroup' with selectsRadioButton() instead. */
|
|
6805
6854
|
shippingStandard;
|
|
6855
|
+
/** @deprecated - Use 'shippingMethodRadioGroup' with selectsRadioButton() instead. */
|
|
6806
6856
|
shippingExpress;
|
|
6807
6857
|
/**
|
|
6808
6858
|
* Product details
|
|
@@ -6814,9 +6864,11 @@ class CheckoutConfirm {
|
|
|
6814
6864
|
this.headline = page.getByRole("heading", { name: translate("storefront:checkout:confirm.completeOrder") });
|
|
6815
6865
|
this.termsAndConditionsCheckbox = page.getByLabel(translate("storefront:checkout:confirm.termsAndConditions"));
|
|
6816
6866
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel(translate("storefront:checkout:confirm.immediateAccessToDigitalProduct"));
|
|
6817
|
-
this.grandTotalPrice = page.locator(`dt:has-text('
|
|
6818
|
-
this.taxPrice = page.locator(`dt:text-matches(
|
|
6867
|
+
this.grandTotalPrice = page.locator(`dt:has-text('${translate("storefront:checkout:common.grandTotal")}') + dd`);
|
|
6868
|
+
this.taxPrice = page.locator(`dt:text-matches("${translate("storefront:checkout:common.plusVat")} [0-9]\\+\\?${translate("storefront:checkout:common.vatSuffix")}") + dd`);
|
|
6819
6869
|
this.submitOrderButton = page.getByRole("button", { name: translate("storefront:checkout:confirm.submitOrder") });
|
|
6870
|
+
this.paymentMethodRadioGroup = page.locator(".checkout-card", { hasText: translate("storefront:checkout:common.paymentMethod") });
|
|
6871
|
+
this.shippingMethodRadioGroup = page.locator(".checkout-card", { hasText: translate("storefront:checkout:common.shippingMethod") });
|
|
6820
6872
|
this.paymentCashOnDelivery = page.getByLabel(translate("storefront:checkout:common.cashOnDelivery"));
|
|
6821
6873
|
this.paymentPaidInAdvance = page.getByLabel(translate("storefront:checkout:common.paidInAdvance"));
|
|
6822
6874
|
this.paymentInvoice = page.getByLabel(translate("storefront:checkout:common.invoice"));
|
|
@@ -6841,8 +6893,8 @@ class CheckoutFinish {
|
|
|
6841
6893
|
this.page = page;
|
|
6842
6894
|
this.headline = page.getByRole("heading", { name: translate("storefront:checkout:finish.thankYouForOrder") });
|
|
6843
6895
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
6844
|
-
this.grandTotalPrice = page.locator(`dt:has-text("${translate("storefront:checkout:
|
|
6845
|
-
this.taxPrice = page.locator(`dt:text-matches(
|
|
6896
|
+
this.grandTotalPrice = page.locator(`dt:has-text("${translate("storefront:checkout:common.grandTotal")}") + dd`);
|
|
6897
|
+
this.taxPrice = page.locator(`dt:text-matches("${translate("storefront:checkout:common.plusVat")} [0-9]\\+\\?${translate("storefront:checkout:common.vatSuffix")}") + dd`);
|
|
6846
6898
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
6847
6899
|
}
|
|
6848
6900
|
url() {
|
|
@@ -7327,15 +7379,19 @@ class CheckoutOrderEdit {
|
|
|
7327
7379
|
dialogOrderCancelButton;
|
|
7328
7380
|
dialogBackButton;
|
|
7329
7381
|
/**
|
|
7330
|
-
* Payment options
|
|
7382
|
+
* Payment and Shipping options
|
|
7331
7383
|
*/
|
|
7384
|
+
paymentMethodRadioGroup;
|
|
7385
|
+
shippingMethodRadioGroup;
|
|
7386
|
+
/** @deprecated - Use 'paymentMethodRadioGroup' with selectsRadioButton() instead. */
|
|
7332
7387
|
paymentCashOnDelivery;
|
|
7388
|
+
/** @deprecated - Use 'paymentMethodRadioGroup' with selectsRadioButton() instead. */
|
|
7333
7389
|
paymentPaidInAdvance;
|
|
7390
|
+
/** @deprecated - Use 'paymentMethodRadioGroup' with selectsRadioButton() instead. */
|
|
7334
7391
|
paymentInvoice;
|
|
7335
|
-
/**
|
|
7336
|
-
* Shipping options
|
|
7337
|
-
*/
|
|
7392
|
+
/** @deprecated - Use 'shippingMethodRadioGroup' with selectsRadioButton() instead. */
|
|
7338
7393
|
shippingStandard;
|
|
7394
|
+
/** @deprecated - Use 'shippingMethodRadioGroup' with selectsRadioButton() instead. */
|
|
7339
7395
|
shippingExpress;
|
|
7340
7396
|
page;
|
|
7341
7397
|
constructor(page) {
|
|
@@ -7345,6 +7401,8 @@ class CheckoutOrderEdit {
|
|
|
7345
7401
|
this.dialogOrderCancel = page.getByRole("dialog", { name: translate("storefront:order:actions.cancelOrder") });
|
|
7346
7402
|
this.dialogOrderCancelButton = this.dialogOrderCancel.getByRole("button", { name: translate("storefront:order:actions.cancelOrder") });
|
|
7347
7403
|
this.dialogBackButton = this.dialogOrderCancel.getByRole("button", { name: translate("storefront:order:actions.back") });
|
|
7404
|
+
this.paymentMethodRadioGroup = page.locator(".checkout-card", { hasText: translate("storefront:checkout:common.paymentMethod") });
|
|
7405
|
+
this.shippingMethodRadioGroup = page.locator(".checkout-card", { hasText: translate("storefront:checkout:common.shippingMethod") });
|
|
7348
7406
|
this.paymentCashOnDelivery = page.getByLabel(translate("storefront:payment:methods.cashOnDelivery"));
|
|
7349
7407
|
this.paymentPaidInAdvance = page.getByLabel(translate("storefront:payment:methods.paidInAdvance"));
|
|
7350
7408
|
this.paymentInvoice = page.getByLabel(translate("storefront:payment:methods.invoice"));
|
|
@@ -7499,7 +7557,7 @@ class Wishlist extends Home {
|
|
|
7499
7557
|
async getListingItemByProductName(productListingName) {
|
|
7500
7558
|
const baseItems = await super.getListingItemByProductName(productListingName);
|
|
7501
7559
|
const listingItem = this.page.getByRole("listitem").filter({ has: this.page.getByText(productListingName) });
|
|
7502
|
-
const removeFromWishlistButton = listingItem.
|
|
7560
|
+
const removeFromWishlistButton = listingItem.getByTitle(translate("storefront:wishlist:removeProduct"));
|
|
7503
7561
|
return {
|
|
7504
7562
|
...baseItems,
|
|
7505
7563
|
removeFromWishlistButton
|
|
@@ -7532,6 +7590,7 @@ class Footer {
|
|
|
7532
7590
|
|
|
7533
7591
|
class Header {
|
|
7534
7592
|
mainNavigationLink;
|
|
7593
|
+
topBarNav;
|
|
7535
7594
|
languagesDropdown;
|
|
7536
7595
|
languagesMenuOptions;
|
|
7537
7596
|
currenciesDropdown;
|
|
@@ -7546,13 +7605,14 @@ class Header {
|
|
|
7546
7605
|
constructor(page) {
|
|
7547
7606
|
this.page = page;
|
|
7548
7607
|
this.mainNavigationLink = page.locator(".main-navigation-link-text");
|
|
7549
|
-
this.
|
|
7550
|
-
this.
|
|
7551
|
-
this.
|
|
7552
|
-
this.
|
|
7608
|
+
this.topBarNav = page.getByRole("navigation", { name: translate("storefront:header:topBarNav") });
|
|
7609
|
+
this.languagesDropdown = this.topBarNav.locator(".top-bar-language").getByRole("button", { name: translate("storefront:header:languageDropdown") });
|
|
7610
|
+
this.languagesMenuOptions = this.topBarNav.locator(".top-bar-language").getByRole("list");
|
|
7611
|
+
this.currenciesDropdown = this.topBarNav.locator(".top-bar-currency").getByRole("button", { name: translate("storefront:header:currencyDropdown") });
|
|
7612
|
+
this.currenciesMenuOptions = this.topBarNav.locator(".top-bar-currency").getByRole("list");
|
|
7553
7613
|
this.searchInput = page.getByLabel(translate("storefront:header:searchInputAriaLabel"));
|
|
7554
7614
|
this.skipToMainContentLink = page.getByRole("link", { name: translate("storefront:header:skipToContentLink"), exact: true });
|
|
7555
|
-
this.wishlistIcon = page.
|
|
7615
|
+
this.wishlistIcon = page.getByRole("link", { name: translate("storefront:header:wishlistIcon") });
|
|
7556
7616
|
this.wishlistBasket = page.locator(".header-wishlist-badge");
|
|
7557
7617
|
}
|
|
7558
7618
|
url() {
|
|
@@ -7861,6 +7921,9 @@ class OrderDetail {
|
|
|
7861
7921
|
sendDocumentButton;
|
|
7862
7922
|
itemsCardHeader;
|
|
7863
7923
|
sentCheckmark;
|
|
7924
|
+
orderPaymentStatus;
|
|
7925
|
+
orderDeliveryStatus;
|
|
7926
|
+
orderStatus;
|
|
7864
7927
|
/**
|
|
7865
7928
|
* Tabs
|
|
7866
7929
|
*/
|
|
@@ -7889,6 +7952,9 @@ class OrderDetail {
|
|
|
7889
7952
|
} else {
|
|
7890
7953
|
this.itemsCardHeader = page.locator(".mt-card__header").getByText(translate("administration:order:detail.items"));
|
|
7891
7954
|
}
|
|
7955
|
+
this.orderPaymentStatus = page.locator(".sw-order-state-select-v2__order_transaction");
|
|
7956
|
+
this.orderDeliveryStatus = page.locator(".sw-order-state-select-v2__order_delivery");
|
|
7957
|
+
this.orderStatus = page.locator(".sw-order-state__progress-select");
|
|
7892
7958
|
this.generalTabLink = page.getByRole("tab", { name: translate("administration:order:tabs.general") });
|
|
7893
7959
|
this.detailsTabLink = page.getByRole("tab", { name: translate("administration:order:tabs.details") });
|
|
7894
7960
|
this.documentsTabLink = page.getByRole("tab", { name: translate("administration:order:tabs.documents") });
|
|
@@ -8529,7 +8595,7 @@ class DataSharing {
|
|
|
8529
8595
|
}
|
|
8530
8596
|
this.dataSharingAgreeButton = page.getByRole("button", { name: translate("administration:dataSharing:buttons.agree") });
|
|
8531
8597
|
this.dataSharingDisableButton = page.getByRole("button", { name: translate("administration:dataSharing:buttons.disableDataSharing") });
|
|
8532
|
-
this.dataSharingSuccessMessageLabel = page.getByText("
|
|
8598
|
+
this.dataSharingSuccessMessageLabel = page.getByText(translate("administration:dataSharing:messages.sharingData"), { exact: true });
|
|
8533
8599
|
this.dataSharingTermsAgreementLabel = page.getByText(translate("administration:dataSharing:messages.termsAgreement"));
|
|
8534
8600
|
}
|
|
8535
8601
|
url() {
|
|
@@ -11258,13 +11324,15 @@ const LoginViaReviewsTab = test$e.extend({
|
|
|
11258
11324
|
LoginViaReviewsTab: async ({ ShopCustomer, DefaultSalesChannel, StorefrontProductDetail }, use) => {
|
|
11259
11325
|
const task = (product, customCustomer) => {
|
|
11260
11326
|
return async function LoginViaReviewsTab2() {
|
|
11327
|
+
const loginResponse = await StorefrontProductDetail.page.request.post("account/login");
|
|
11261
11328
|
const customer = customCustomer ? customCustomer : DefaultSalesChannel.customer;
|
|
11262
11329
|
await ShopCustomer.goesTo(StorefrontProductDetail.url(product));
|
|
11263
|
-
await StorefrontProductDetail.reviewsTab
|
|
11264
|
-
await StorefrontProductDetail.reviewTeaserButton
|
|
11265
|
-
await StorefrontProductDetail.reviewEmailInput
|
|
11266
|
-
await StorefrontProductDetail.reviewPasswordInput
|
|
11267
|
-
await StorefrontProductDetail.reviewLoginButton
|
|
11330
|
+
await ShopCustomer.presses(StorefrontProductDetail.reviewsTab);
|
|
11331
|
+
await ShopCustomer.presses(StorefrontProductDetail.reviewTeaserButton);
|
|
11332
|
+
await ShopCustomer.fillsIn(StorefrontProductDetail.reviewEmailInput, customer.email);
|
|
11333
|
+
await ShopCustomer.fillsIn(StorefrontProductDetail.reviewPasswordInput, customer.password);
|
|
11334
|
+
await ShopCustomer.presses(StorefrontProductDetail.reviewLoginButton);
|
|
11335
|
+
await ShopCustomer.expects(loginResponse).toBeTruthy();
|
|
11268
11336
|
await ShopCustomer.expects(StorefrontProductDetail.productName).toHaveText(product.name);
|
|
11269
11337
|
};
|
|
11270
11338
|
};
|
|
@@ -11360,9 +11428,9 @@ const Login = test$e.extend({
|
|
|
11360
11428
|
return async function Login2() {
|
|
11361
11429
|
const customer = customCustomer ? customCustomer : DefaultSalesChannel.customer;
|
|
11362
11430
|
await ShopCustomer.goesTo(StorefrontAccountLogin.url());
|
|
11363
|
-
await StorefrontAccountLogin.emailInput
|
|
11364
|
-
await StorefrontAccountLogin.passwordInput
|
|
11365
|
-
await StorefrontAccountLogin.loginButton
|
|
11431
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.emailInput, customer.email);
|
|
11432
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.passwordInput, customer.password);
|
|
11433
|
+
await ShopCustomer.presses(StorefrontAccountLogin.loginButton);
|
|
11366
11434
|
await ShopCustomer.expects(StorefrontAccount.personalDataCardTitle).toBeVisible();
|
|
11367
11435
|
};
|
|
11368
11436
|
};
|
|
@@ -11376,7 +11444,7 @@ const Logout = test$e.extend({
|
|
|
11376
11444
|
return async function Logout2() {
|
|
11377
11445
|
await ShopCustomer.goesTo(StorefrontAccountLogin.url());
|
|
11378
11446
|
await ShopCustomer.expects(StorefrontAccountLogin.loginButton).not.toBeVisible();
|
|
11379
|
-
await StorefrontAccountLogin.logoutLink
|
|
11447
|
+
await ShopCustomer.presses(StorefrontAccountLogin.logoutLink);
|
|
11380
11448
|
await ShopCustomer.expects(StorefrontAccountLogin.successAlert).toBeVisible();
|
|
11381
11449
|
};
|
|
11382
11450
|
};
|
|
@@ -11385,7 +11453,7 @@ const Logout = test$e.extend({
|
|
|
11385
11453
|
});
|
|
11386
11454
|
|
|
11387
11455
|
const Register = test$e.extend({
|
|
11388
|
-
Register: async ({ StorefrontAccountLogin, IdProvider, TestDataService }, use) => {
|
|
11456
|
+
Register: async ({ ShopCustomer, StorefrontAccountLogin, IdProvider, TestDataService }, use) => {
|
|
11389
11457
|
let registeredEmail = "";
|
|
11390
11458
|
const countryCode = getCountryCodeFromLocale(getLocale());
|
|
11391
11459
|
const countryDefaults = getCountryAddressData(countryCode);
|
|
@@ -11405,23 +11473,25 @@ const Register = test$e.extend({
|
|
|
11405
11473
|
return async function Register2() {
|
|
11406
11474
|
const registrationData = { ...defaultRegistrationData, ...overrides };
|
|
11407
11475
|
registeredEmail = registrationData.email;
|
|
11476
|
+
await ShopCustomer.presses(StorefrontAccountLogin.salutationSelect);
|
|
11408
11477
|
await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation);
|
|
11409
|
-
await StorefrontAccountLogin.firstNameInput
|
|
11410
|
-
await StorefrontAccountLogin.lastNameInput
|
|
11478
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.firstNameInput, registrationData.firstName);
|
|
11479
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.lastNameInput, registrationData.lastName);
|
|
11411
11480
|
if (registrationData.isCommercial || isCommercial) {
|
|
11412
|
-
await StorefrontAccountLogin.companyInput
|
|
11413
|
-
await StorefrontAccountLogin.departmentInput
|
|
11414
|
-
await StorefrontAccountLogin.vatRegNoInput
|
|
11481
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.companyInput, registrationData.company);
|
|
11482
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.departmentInput, registrationData.department);
|
|
11483
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.vatRegNoInput, registrationData.vatRegNo);
|
|
11415
11484
|
}
|
|
11416
|
-
await StorefrontAccountLogin.registerEmailInput
|
|
11485
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.registerEmailInput, registrationData.email);
|
|
11417
11486
|
if (!registrationData.isGuest) {
|
|
11418
|
-
await StorefrontAccountLogin.registerPasswordInput
|
|
11487
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.registerPasswordInput, registrationData.password);
|
|
11419
11488
|
}
|
|
11420
|
-
await StorefrontAccountLogin.streetAddressInput
|
|
11421
|
-
await StorefrontAccountLogin.postalCodeInput
|
|
11422
|
-
await StorefrontAccountLogin.cityInput
|
|
11489
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.streetAddressInput, registrationData.street);
|
|
11490
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.postalCodeInput, registrationData.postalCode);
|
|
11491
|
+
await ShopCustomer.fillsIn(StorefrontAccountLogin.cityInput, registrationData.city);
|
|
11492
|
+
await ShopCustomer.presses(StorefrontAccountLogin.countryInput);
|
|
11423
11493
|
await StorefrontAccountLogin.countryInput.selectOption({ label: registrationData.country });
|
|
11424
|
-
await StorefrontAccountLogin.registerButton
|
|
11494
|
+
await ShopCustomer.presses(StorefrontAccountLogin.registerButton);
|
|
11425
11495
|
const customer = await TestDataService.getCustomerByEmail(registeredEmail);
|
|
11426
11496
|
if (customer) {
|
|
11427
11497
|
TestDataService.addCreatedRecord("customer", customer.id);
|
|
@@ -11480,11 +11550,11 @@ const RegisterGuest = test$e.extend({
|
|
|
11480
11550
|
});
|
|
11481
11551
|
|
|
11482
11552
|
const ChangeStorefrontCurrency = test$e.extend({
|
|
11483
|
-
ChangeStorefrontCurrency: async ({
|
|
11553
|
+
ChangeStorefrontCurrency: async ({ ShopCustomer, StorefrontHeader }, use) => {
|
|
11484
11554
|
const task = (currencyName) => {
|
|
11485
11555
|
return async function ChangeStorefrontCurrency2() {
|
|
11486
|
-
await
|
|
11487
|
-
await
|
|
11556
|
+
await ShopCustomer.presses(StorefrontHeader.currenciesDropdown);
|
|
11557
|
+
await ShopCustomer.presses(StorefrontHeader.currenciesMenuOptions.getByText(currencyName));
|
|
11488
11558
|
};
|
|
11489
11559
|
};
|
|
11490
11560
|
await use(task);
|
|
@@ -11492,22 +11562,24 @@ const ChangeStorefrontCurrency = test$e.extend({
|
|
|
11492
11562
|
});
|
|
11493
11563
|
|
|
11494
11564
|
const AddNewAddress = test$e.extend({
|
|
11495
|
-
AddNewAddress: async ({ StorefrontAccountAddresses, StorefrontAccountAddressCreate }, use) => {
|
|
11565
|
+
AddNewAddress: async ({ ShopCustomer, StorefrontAccountAddresses, StorefrontAccountAddressCreate }, use) => {
|
|
11496
11566
|
const task = (address) => {
|
|
11497
11567
|
return async function AddNewAddress2() {
|
|
11498
|
-
await StorefrontAccountAddresses.addNewAddressButton
|
|
11499
|
-
await StorefrontAccountAddressCreate.firstNameInput
|
|
11500
|
-
await StorefrontAccountAddressCreate.lastNameInput
|
|
11501
|
-
await StorefrontAccountAddressCreate.companyInput
|
|
11502
|
-
await StorefrontAccountAddressCreate.departmentInput
|
|
11503
|
-
await StorefrontAccountAddressCreate.streetInput
|
|
11504
|
-
await StorefrontAccountAddressCreate.zipcodeInput
|
|
11505
|
-
await StorefrontAccountAddressCreate.cityInput
|
|
11568
|
+
await ShopCustomer.presses(StorefrontAccountAddresses.addNewAddressButton);
|
|
11569
|
+
await ShopCustomer.fillsIn(StorefrontAccountAddressCreate.firstNameInput, address.firstName);
|
|
11570
|
+
await ShopCustomer.fillsIn(StorefrontAccountAddressCreate.lastNameInput, address.lastName);
|
|
11571
|
+
await ShopCustomer.fillsIn(StorefrontAccountAddressCreate.companyInput, address.company);
|
|
11572
|
+
await ShopCustomer.fillsIn(StorefrontAccountAddressCreate.departmentInput, address.department);
|
|
11573
|
+
await ShopCustomer.fillsIn(StorefrontAccountAddressCreate.streetInput, address.street);
|
|
11574
|
+
await ShopCustomer.fillsIn(StorefrontAccountAddressCreate.zipcodeInput, address.zipCode);
|
|
11575
|
+
await ShopCustomer.fillsIn(StorefrontAccountAddressCreate.cityInput, address.city);
|
|
11576
|
+
await ShopCustomer.presses(StorefrontAccountAddressCreate.countryDropdown);
|
|
11506
11577
|
await StorefrontAccountAddressCreate.countryDropdown.selectOption({ label: address.country });
|
|
11507
11578
|
if (address.state) {
|
|
11579
|
+
await ShopCustomer.presses(StorefrontAccountAddressCreate.stateDropdown);
|
|
11508
11580
|
await StorefrontAccountAddressCreate.stateDropdown.selectOption({ label: address.state });
|
|
11509
11581
|
}
|
|
11510
|
-
await StorefrontAccountAddressCreate.saveAddressButton
|
|
11582
|
+
await ShopCustomer.presses(StorefrontAccountAddressCreate.saveAddressButton);
|
|
11511
11583
|
};
|
|
11512
11584
|
};
|
|
11513
11585
|
await use(task);
|
|
@@ -11518,8 +11590,8 @@ const AddProductToCart = test$e.extend({
|
|
|
11518
11590
|
AddProductToCart: async ({ ShopCustomer, StorefrontProductDetail }, use) => {
|
|
11519
11591
|
const task = (ProductData, quantity = "1") => {
|
|
11520
11592
|
return async function AddProductToCart2() {
|
|
11521
|
-
await StorefrontProductDetail.quantitySelect
|
|
11522
|
-
await StorefrontProductDetail.addToCartButton
|
|
11593
|
+
await ShopCustomer.fillsIn(StorefrontProductDetail.quantitySelect, quantity);
|
|
11594
|
+
await ShopCustomer.presses(StorefrontProductDetail.addToCartButton);
|
|
11523
11595
|
await ShopCustomer.expects(StorefrontProductDetail.offCanvasCartTitle).toBeVisible();
|
|
11524
11596
|
await ShopCustomer.expects(StorefrontProductDetail.offCanvasCart.getByText(ProductData.name)).toBeVisible();
|
|
11525
11597
|
};
|
|
@@ -11532,7 +11604,7 @@ const ProceedFromProductToCheckout = test$e.extend({
|
|
|
11532
11604
|
ProceedFromProductToCheckout: async ({ ShopCustomer, StorefrontProductDetail, StorefrontCheckoutConfirm }, use) => {
|
|
11533
11605
|
const task = () => {
|
|
11534
11606
|
return async function ProceedFromProductToCheckout2() {
|
|
11535
|
-
await StorefrontProductDetail.offCanvasCartGoToCheckoutButton
|
|
11607
|
+
await ShopCustomer.presses(StorefrontProductDetail.offCanvasCartGoToCheckoutButton);
|
|
11536
11608
|
await ShopCustomer.expects(StorefrontCheckoutConfirm.headline).toBeVisible();
|
|
11537
11609
|
};
|
|
11538
11610
|
};
|
|
@@ -11548,7 +11620,7 @@ const ProceedFromCartToCheckout = test$e.extend({
|
|
|
11548
11620
|
}, use) => {
|
|
11549
11621
|
const task = () => {
|
|
11550
11622
|
return async function ProceedFromCartToCheckout2() {
|
|
11551
|
-
await StorefrontCheckoutCart.goToCheckoutButton
|
|
11623
|
+
await ShopCustomer.presses(StorefrontCheckoutCart.goToCheckoutButton);
|
|
11552
11624
|
await ShopCustomer.expects(StorefrontCheckoutConfirm.headline).toBeVisible();
|
|
11553
11625
|
};
|
|
11554
11626
|
};
|
|
@@ -11563,8 +11635,9 @@ const ChangeProductQuantity = test$e.extend({
|
|
|
11563
11635
|
}, use) => {
|
|
11564
11636
|
const task = (quantity) => {
|
|
11565
11637
|
return async function ChangeProductQuantityOnCart() {
|
|
11566
|
-
await StorefrontCheckoutCart.cartQuantityNumber.
|
|
11567
|
-
await StorefrontCheckoutCart.cartQuantityNumber
|
|
11638
|
+
await StorefrontCheckoutCart.cartQuantityNumber.clear();
|
|
11639
|
+
await ShopCustomer.fillsIn(StorefrontCheckoutCart.cartQuantityNumber, quantity);
|
|
11640
|
+
await ShopCustomer.presses(StorefrontCheckoutCart.cartQuantityNumber, "Enter");
|
|
11568
11641
|
await ShopCustomer.expects(StorefrontCheckoutCart.cartQuantityNumber).toHaveValue(quantity);
|
|
11569
11642
|
};
|
|
11570
11643
|
};
|
|
@@ -11576,7 +11649,7 @@ const ConfirmTermsAndConditions = test$e.extend({
|
|
|
11576
11649
|
ConfirmTermsAndConditions: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
11577
11650
|
const task = () => {
|
|
11578
11651
|
return async function ConfirmTermsAndConditions2() {
|
|
11579
|
-
await StorefrontCheckoutConfirm.termsAndConditionsCheckbox
|
|
11652
|
+
await ShopCustomer.presses(StorefrontCheckoutConfirm.termsAndConditionsCheckbox);
|
|
11580
11653
|
await ShopCustomer.expects(StorefrontCheckoutConfirm.termsAndConditionsCheckbox).toBeChecked();
|
|
11581
11654
|
};
|
|
11582
11655
|
};
|
|
@@ -11584,6 +11657,20 @@ const ConfirmTermsAndConditions = test$e.extend({
|
|
|
11584
11657
|
}
|
|
11585
11658
|
});
|
|
11586
11659
|
|
|
11660
|
+
const SelectPaymentMethod = test$e.extend({
|
|
11661
|
+
SelectPaymentMethod: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
11662
|
+
const task = (paymentOptionName) => {
|
|
11663
|
+
return async function SelectPaymentMethod2() {
|
|
11664
|
+
const paymentMethods = StorefrontCheckoutConfirm.paymentMethodRadioGroup;
|
|
11665
|
+
const paymentOptionRadioButton = paymentMethods.getByRole("radio", { name: paymentOptionName });
|
|
11666
|
+
await ShopCustomer.selectsRadioButton(paymentMethods, paymentOptionName);
|
|
11667
|
+
await ShopCustomer.expects(paymentOptionRadioButton).toBeChecked();
|
|
11668
|
+
};
|
|
11669
|
+
};
|
|
11670
|
+
await use(task);
|
|
11671
|
+
}
|
|
11672
|
+
});
|
|
11673
|
+
|
|
11587
11674
|
const SelectCashOnDeliveryPaymentOption = test$e.extend({
|
|
11588
11675
|
SelectCashOnDeliveryPaymentOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
11589
11676
|
const task = () => {
|
|
@@ -11620,6 +11707,20 @@ const SelectPaidInAdvancePaymentOption = test$e.extend({
|
|
|
11620
11707
|
}
|
|
11621
11708
|
});
|
|
11622
11709
|
|
|
11710
|
+
const SelectShippingMethod = test$e.extend({
|
|
11711
|
+
SelectShippingMethod: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
11712
|
+
const task = (shippingOptionName) => {
|
|
11713
|
+
return async function SelectShippingMethod2() {
|
|
11714
|
+
const shippingMethods = StorefrontCheckoutConfirm.shippingMethodRadioGroup;
|
|
11715
|
+
const shippingOptionRadioButton = shippingMethods.getByRole("radio", { name: shippingOptionName });
|
|
11716
|
+
await ShopCustomer.selectsRadioButton(shippingMethods, shippingOptionName);
|
|
11717
|
+
await ShopCustomer.expects(shippingOptionRadioButton).toBeChecked();
|
|
11718
|
+
};
|
|
11719
|
+
};
|
|
11720
|
+
await use(task);
|
|
11721
|
+
}
|
|
11722
|
+
});
|
|
11723
|
+
|
|
11623
11724
|
const SelectStandardShippingOption = test$e.extend({
|
|
11624
11725
|
SelectStandardShippingOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
11625
11726
|
const task = () => {
|
|
@@ -11648,7 +11749,7 @@ const SubmitOrder = test$e.extend({
|
|
|
11648
11749
|
SubmitOrder: async ({ ShopCustomer, StorefrontCheckoutConfirm, StorefrontCheckoutFinish }, use) => {
|
|
11649
11750
|
const task = () => {
|
|
11650
11751
|
return async function SubmitOrder2() {
|
|
11651
|
-
await StorefrontCheckoutConfirm.submitOrderButton
|
|
11752
|
+
await ShopCustomer.presses(StorefrontCheckoutConfirm.submitOrderButton);
|
|
11652
11753
|
await ShopCustomer.expects(StorefrontCheckoutFinish.headline).toBeVisible();
|
|
11653
11754
|
};
|
|
11654
11755
|
};
|
|
@@ -11681,10 +11782,10 @@ const OpenSearchSuggestPage = test$e.extend({
|
|
|
11681
11782
|
});
|
|
11682
11783
|
|
|
11683
11784
|
const SearchForTerm = test$e.extend({
|
|
11684
|
-
SearchForTerm: async ({ StorefrontSearchSuggest }, use) => {
|
|
11785
|
+
SearchForTerm: async ({ ShopCustomer, StorefrontSearchSuggest }, use) => {
|
|
11685
11786
|
const task = (searchTerm) => {
|
|
11686
11787
|
return async function SearchForTerm2() {
|
|
11687
|
-
await StorefrontSearchSuggest.searchInput
|
|
11788
|
+
await ShopCustomer.fillsIn(StorefrontSearchSuggest.searchInput, searchTerm);
|
|
11688
11789
|
const encodedSearchTerm = encodeURIComponent(searchTerm);
|
|
11689
11790
|
await StorefrontSearchSuggest.page.waitForResponse((response) => response.url().includes(`suggest?search=${encodedSearchTerm}`) && response.ok());
|
|
11690
11791
|
};
|
|
@@ -11727,7 +11828,7 @@ const AddProductToCartFromWishlist = test$e.extend({
|
|
|
11727
11828
|
const task = (ProductData) => {
|
|
11728
11829
|
return async function AddProductToCartFromWishlist2() {
|
|
11729
11830
|
const listedItem = await StorefrontWishlist.getListingItemByProductName(ProductData.name);
|
|
11730
|
-
await listedItem.productAddToShoppingCart
|
|
11831
|
+
await ShopCustomer.presses(listedItem.productAddToShoppingCart);
|
|
11731
11832
|
await StorefrontWishlist.page.waitForResponse((response) => response.url().includes(`checkout/offcanvas`) && response.ok());
|
|
11732
11833
|
await ShopCustomer.expects(StorefrontOffCanvasCart.itemCount).toBeVisible();
|
|
11733
11834
|
const offcanvasItem = await StorefrontOffCanvasCart.getLineItemByProductNumber(ProductData.productNumber);
|
|
@@ -11740,11 +11841,11 @@ const AddProductToCartFromWishlist = test$e.extend({
|
|
|
11740
11841
|
}
|
|
11741
11842
|
});
|
|
11742
11843
|
const RemoveProductFromWishlist = test$e.extend({
|
|
11743
|
-
RemoveProductFromWishlist: async ({ StorefrontHome, StorefrontWishlist }, use) => {
|
|
11844
|
+
RemoveProductFromWishlist: async ({ ShopCustomer, StorefrontHome, StorefrontWishlist }, use) => {
|
|
11744
11845
|
const task = (ProductData) => {
|
|
11745
11846
|
return async function RemoveProductFromWishlist2() {
|
|
11746
11847
|
const listedItem = await StorefrontHome.getListingItemByProductName(ProductData.name);
|
|
11747
|
-
await listedItem.wishlistAddedIcon
|
|
11848
|
+
await ShopCustomer.presses(listedItem.wishlistAddedIcon);
|
|
11748
11849
|
await StorefrontWishlist.page.waitForResponse((response) => response.url().includes(`remove/${ProductData.id}`) && response.ok());
|
|
11749
11850
|
};
|
|
11750
11851
|
};
|
|
@@ -11756,7 +11857,7 @@ const AddProductToWishlist = test$e.extend({
|
|
|
11756
11857
|
const task = (ProductData) => {
|
|
11757
11858
|
return async function AddProductToWishlist2() {
|
|
11758
11859
|
const listedItem = await StorefrontHome.getListingItemByProductName(ProductData.name);
|
|
11759
|
-
await listedItem.wishlistNotAddedIcon
|
|
11860
|
+
await ShopCustomer.presses(listedItem.wishlistNotAddedIcon);
|
|
11760
11861
|
await ShopCustomer.expects(listedItem.wishlistAddedIcon).toBeVisible();
|
|
11761
11862
|
};
|
|
11762
11863
|
};
|
|
@@ -11765,12 +11866,14 @@ const AddProductToWishlist = test$e.extend({
|
|
|
11765
11866
|
});
|
|
11766
11867
|
|
|
11767
11868
|
const SelectProductFilterOption = test$e.extend({
|
|
11768
|
-
SelectProductFilterOption: async ({ StorefrontHome }, use) => {
|
|
11869
|
+
SelectProductFilterOption: async ({ ShopCustomer, StorefrontHome }, use) => {
|
|
11769
11870
|
const task = (filterButton, optionName) => {
|
|
11770
11871
|
return async function SelectProductFilterOption2() {
|
|
11771
|
-
await
|
|
11872
|
+
await ShopCustomer.presses(filterButton);
|
|
11772
11873
|
const optionLocator = await StorefrontHome.getFilterItemByFilterName(optionName);
|
|
11773
|
-
await optionLocator.
|
|
11874
|
+
await ShopCustomer.expects(optionLocator).not.toBeChecked();
|
|
11875
|
+
await ShopCustomer.presses(optionLocator);
|
|
11876
|
+
await ShopCustomer.expects(optionLocator).toBeChecked();
|
|
11774
11877
|
};
|
|
11775
11878
|
};
|
|
11776
11879
|
await use(task);
|
|
@@ -11808,6 +11911,8 @@ const test$3 = mergeTests(
|
|
|
11808
11911
|
ProceedFromProductToCheckout,
|
|
11809
11912
|
ProceedFromCartToCheckout,
|
|
11810
11913
|
ConfirmTermsAndConditions,
|
|
11914
|
+
SelectPaymentMethod,
|
|
11915
|
+
SelectShippingMethod,
|
|
11811
11916
|
SelectInvoicePaymentOption,
|
|
11812
11917
|
SelectCashOnDeliveryPaymentOption,
|
|
11813
11918
|
SelectPaidInAdvancePaymentOption,
|
|
@@ -12268,4 +12373,4 @@ const test = mergeTests(
|
|
|
12268
12373
|
test$3
|
|
12269
12374
|
);
|
|
12270
12375
|
|
|
12271
|
-
export { AdminPageObjects, BUNDLED_RESOURCES, COUNTRY_ADDRESS_DATA, IdProvider, LanguageHelper, RuleType, StorefrontPageObjects, TestDataService, assertScreenshot, baseNamespaces, compareFlowTemplateWithFlow, createRandomImage, encodeImage, extractIdFromUrl, getCountryAddressData, getCountryCodeFromLocale, getCountryId, getCurrency, getCurrencyCodeFromLocale, getCurrencySymbolFromLocale, getCurrentContext, getDefaultShippingMethodId, getFlow, getFlowId, getFlowTemplate, getLanguageCode, getLanguageData, getLocale, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, hideElements, isSaaSInstance, isThemeCompiled, replaceElements, replaceElementsIndividually, setCurrentContext, setOrderStatus, setViewport, test, translate, updateAdminUser };
|
|
12376
|
+
export { AdminPageObjects, BUNDLED_RESOURCES, COUNTRY_ADDRESS_DATA, IdProvider, LanguageHelper, RuleType, StorefrontPageObjects, TestDataService, assertScreenshot, baseNamespaces, compareFlowTemplateWithFlow, createRandomImage, encodeImage, extractIdFromUrl, formatPrice, getCountryAddressData, getCountryCodeFromLocale, getCountryId, getCurrency, getCurrencyCodeFromLocale, getCurrencySymbolFromLocale, getCurrentContext, getDefaultShippingMethodId, getFlow, getFlowId, getFlowTemplate, getLanguageCode, getLanguageData, getLocale, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, hideElements, isSaaSInstance, isThemeCompiled, replaceElements, replaceElementsIndividually, setCurrentContext, setOrderStatus, setViewport, test, translate, updateAdminUser };
|