@shopware-ag/acceptance-test-suite 12.0.2 → 12.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +18 -39
- package/dist/index.d.ts +18 -39
- package/dist/index.mjs +51 -53
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -410,10 +410,11 @@ declare const getCountryAddressData: (countryCode?: string) => {
|
|
|
410
410
|
vatRegNo: string;
|
|
411
411
|
};
|
|
412
412
|
declare const getLocale: () => string;
|
|
413
|
-
declare const getLanguageCode: (locale
|
|
414
|
-
declare const getCountryCodeFromLocale: (locale
|
|
415
|
-
declare const getCurrencyCodeFromLocale: (locale
|
|
416
|
-
declare const getCurrencySymbolFromLocale: (locale
|
|
413
|
+
declare const getLanguageCode: (locale?: string) => string;
|
|
414
|
+
declare const getCountryCodeFromLocale: (locale?: string) => string;
|
|
415
|
+
declare const getCurrencyCodeFromLocale: (locale?: string) => string;
|
|
416
|
+
declare const getCurrencySymbolFromLocale: (locale?: string) => string;
|
|
417
|
+
declare const formatPrice: (price: number, locale?: string, currencyCode?: string) => string;
|
|
417
418
|
type Language$1 = components['schemas']['Language'] & {
|
|
418
419
|
id: string;
|
|
419
420
|
translationCode: components['schemas']['Locale'] & {
|
|
@@ -1925,6 +1926,9 @@ declare const BUNDLED_RESOURCES: {
|
|
|
1925
1926
|
invoice: string;
|
|
1926
1927
|
standard: string;
|
|
1927
1928
|
express: string;
|
|
1929
|
+
grandTotal: string;
|
|
1930
|
+
plusVat: string;
|
|
1931
|
+
vatSuffix: string;
|
|
1928
1932
|
};
|
|
1929
1933
|
cart: {
|
|
1930
1934
|
shoppingCart: string;
|
|
@@ -1944,9 +1948,6 @@ declare const BUNDLED_RESOURCES: {
|
|
|
1944
1948
|
};
|
|
1945
1949
|
finish: {
|
|
1946
1950
|
thankYouForOrder: string;
|
|
1947
|
-
grandTotal: string;
|
|
1948
|
-
plusVat: string;
|
|
1949
|
-
vatSuffix: string;
|
|
1950
1951
|
};
|
|
1951
1952
|
orderEdit: {
|
|
1952
1953
|
cancelOrder: string;
|
|
@@ -2860,54 +2861,32 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2860
2861
|
invoice: string;
|
|
2861
2862
|
standard: string;
|
|
2862
2863
|
express: string;
|
|
2864
|
+
grandTotal: string;
|
|
2865
|
+
plusVat: string;
|
|
2866
|
+
vatSuffix: string;
|
|
2863
2867
|
};
|
|
2864
2868
|
cart: {
|
|
2865
|
-
addToCart: string;
|
|
2866
|
-
removeFromCart: string;
|
|
2867
|
-
quantity: string;
|
|
2868
|
-
price: string;
|
|
2869
|
-
subtotal: string;
|
|
2870
|
-
total: string;
|
|
2871
|
-
emptyCart: string;
|
|
2872
|
-
continueShopping: string;
|
|
2873
|
-
proceedToCheckout: string;
|
|
2874
2869
|
shoppingCart: string;
|
|
2875
2870
|
goToCheckout: string;
|
|
2876
2871
|
displayShoppingCart: string;
|
|
2872
|
+
continueShopping: string;
|
|
2877
2873
|
promoCode: string;
|
|
2874
|
+
emptyCart: string;
|
|
2875
|
+
quantity: string;
|
|
2878
2876
|
stockReached: string;
|
|
2879
2877
|
};
|
|
2880
2878
|
confirm: {
|
|
2881
|
-
confirmOrder: string;
|
|
2882
|
-
orderSummary: string;
|
|
2883
|
-
shippingAddress: string;
|
|
2884
|
-
billingAddress: string;
|
|
2885
|
-
shippingMethod: string;
|
|
2886
|
-
paymentMethod: string;
|
|
2887
|
-
agreeToTerms: string;
|
|
2888
|
-
revocationNotice: string;
|
|
2889
2879
|
completeOrder: string;
|
|
2890
2880
|
submitOrder: string;
|
|
2891
2881
|
termsAndConditions: string;
|
|
2892
2882
|
immediateAccessToDigitalProduct: string;
|
|
2893
2883
|
};
|
|
2894
2884
|
finish: {
|
|
2895
|
-
thankYou: string;
|
|
2896
2885
|
thankYouForOrder: string;
|
|
2897
|
-
orderNumber: string;
|
|
2898
|
-
orderConfirmation: string;
|
|
2899
|
-
continueShopping: string;
|
|
2900
|
-
grandTotal: string;
|
|
2901
|
-
plusVat: string;
|
|
2902
|
-
vatSuffix: string;
|
|
2903
2886
|
};
|
|
2904
2887
|
orderEdit: {
|
|
2905
2888
|
cancelOrder: string;
|
|
2906
2889
|
};
|
|
2907
|
-
register: {
|
|
2908
|
-
createAccount: string;
|
|
2909
|
-
guestCheckout: string;
|
|
2910
|
-
};
|
|
2911
2890
|
};
|
|
2912
2891
|
readonly 'storefront/consent': {
|
|
2913
2892
|
cookie: {
|
|
@@ -3777,6 +3756,9 @@ declare const baseNamespaces: {
|
|
|
3777
3756
|
invoice: string;
|
|
3778
3757
|
standard: string;
|
|
3779
3758
|
express: string;
|
|
3759
|
+
grandTotal: string;
|
|
3760
|
+
plusVat: string;
|
|
3761
|
+
vatSuffix: string;
|
|
3780
3762
|
};
|
|
3781
3763
|
cart: {
|
|
3782
3764
|
shoppingCart: string;
|
|
@@ -3796,9 +3778,6 @@ declare const baseNamespaces: {
|
|
|
3796
3778
|
};
|
|
3797
3779
|
finish: {
|
|
3798
3780
|
thankYouForOrder: string;
|
|
3799
|
-
grandTotal: string;
|
|
3800
|
-
plusVat: string;
|
|
3801
|
-
vatSuffix: string;
|
|
3802
3781
|
};
|
|
3803
3782
|
orderEdit: {
|
|
3804
3783
|
cancelOrder: string;
|
|
@@ -6163,5 +6142,5 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
|
|
|
6163
6142
|
CheckVisibilityInHome: Task;
|
|
6164
6143
|
}, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
6165
6144
|
|
|
6166
|
-
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 };
|
|
6145
|
+
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 };
|
|
6167
6146
|
export type { AccountData, AclRole, Address, CalculatedTaxes, Category$1 as Category, CategoryCustomizableLinkData, CategoryData, CmsPage, Country$1 as Country, CreatedRecord, Currency$2 as Currency, CustomField, CustomFieldData, CustomFieldSet, Customer, CustomerAddress, CustomerGroup, DataServiceOptions, DeliveryTime, FixtureTypes, Flow, FlowConfig, FlowTemplate, Language$2 as Language, Manufacturer, Media$1 as Media, Options, Order, OrderDelivery, OrderLineItem, OrderStatus, PageObject, PaymentMethod$1 as PaymentMethod, Price, Product, ProductCrossSelling, ProductPrice, ProductReview, Promotion, PromotionDiscount, PropertyGroup, PropertyGroupOption, RegistrationData, ReplaceTarget, Rule, RuleAssignmentEntity, SalesChannel, SalesChannelAnalytics, SalesChannelDomain, SalesChannelRecord, Salutation, ShippingMethod$1 as ShippingMethod, SimpleLineItem, StateMachine, StateMachineState, SyncApiOperation, SystemConfig, Tag, TagData, Task, Tax$1 as Tax, TaxRules, TranslateFn, TranslationKey, User, VariantListingConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -410,10 +410,11 @@ declare const getCountryAddressData: (countryCode?: string) => {
|
|
|
410
410
|
vatRegNo: string;
|
|
411
411
|
};
|
|
412
412
|
declare const getLocale: () => string;
|
|
413
|
-
declare const getLanguageCode: (locale
|
|
414
|
-
declare const getCountryCodeFromLocale: (locale
|
|
415
|
-
declare const getCurrencyCodeFromLocale: (locale
|
|
416
|
-
declare const getCurrencySymbolFromLocale: (locale
|
|
413
|
+
declare const getLanguageCode: (locale?: string) => string;
|
|
414
|
+
declare const getCountryCodeFromLocale: (locale?: string) => string;
|
|
415
|
+
declare const getCurrencyCodeFromLocale: (locale?: string) => string;
|
|
416
|
+
declare const getCurrencySymbolFromLocale: (locale?: string) => string;
|
|
417
|
+
declare const formatPrice: (price: number, locale?: string, currencyCode?: string) => string;
|
|
417
418
|
type Language$1 = components['schemas']['Language'] & {
|
|
418
419
|
id: string;
|
|
419
420
|
translationCode: components['schemas']['Locale'] & {
|
|
@@ -1925,6 +1926,9 @@ declare const BUNDLED_RESOURCES: {
|
|
|
1925
1926
|
invoice: string;
|
|
1926
1927
|
standard: string;
|
|
1927
1928
|
express: string;
|
|
1929
|
+
grandTotal: string;
|
|
1930
|
+
plusVat: string;
|
|
1931
|
+
vatSuffix: string;
|
|
1928
1932
|
};
|
|
1929
1933
|
cart: {
|
|
1930
1934
|
shoppingCart: string;
|
|
@@ -1944,9 +1948,6 @@ declare const BUNDLED_RESOURCES: {
|
|
|
1944
1948
|
};
|
|
1945
1949
|
finish: {
|
|
1946
1950
|
thankYouForOrder: string;
|
|
1947
|
-
grandTotal: string;
|
|
1948
|
-
plusVat: string;
|
|
1949
|
-
vatSuffix: string;
|
|
1950
1951
|
};
|
|
1951
1952
|
orderEdit: {
|
|
1952
1953
|
cancelOrder: string;
|
|
@@ -2860,54 +2861,32 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2860
2861
|
invoice: string;
|
|
2861
2862
|
standard: string;
|
|
2862
2863
|
express: string;
|
|
2864
|
+
grandTotal: string;
|
|
2865
|
+
plusVat: string;
|
|
2866
|
+
vatSuffix: string;
|
|
2863
2867
|
};
|
|
2864
2868
|
cart: {
|
|
2865
|
-
addToCart: string;
|
|
2866
|
-
removeFromCart: string;
|
|
2867
|
-
quantity: string;
|
|
2868
|
-
price: string;
|
|
2869
|
-
subtotal: string;
|
|
2870
|
-
total: string;
|
|
2871
|
-
emptyCart: string;
|
|
2872
|
-
continueShopping: string;
|
|
2873
|
-
proceedToCheckout: string;
|
|
2874
2869
|
shoppingCart: string;
|
|
2875
2870
|
goToCheckout: string;
|
|
2876
2871
|
displayShoppingCart: string;
|
|
2872
|
+
continueShopping: string;
|
|
2877
2873
|
promoCode: string;
|
|
2874
|
+
emptyCart: string;
|
|
2875
|
+
quantity: string;
|
|
2878
2876
|
stockReached: string;
|
|
2879
2877
|
};
|
|
2880
2878
|
confirm: {
|
|
2881
|
-
confirmOrder: string;
|
|
2882
|
-
orderSummary: string;
|
|
2883
|
-
shippingAddress: string;
|
|
2884
|
-
billingAddress: string;
|
|
2885
|
-
shippingMethod: string;
|
|
2886
|
-
paymentMethod: string;
|
|
2887
|
-
agreeToTerms: string;
|
|
2888
|
-
revocationNotice: string;
|
|
2889
2879
|
completeOrder: string;
|
|
2890
2880
|
submitOrder: string;
|
|
2891
2881
|
termsAndConditions: string;
|
|
2892
2882
|
immediateAccessToDigitalProduct: string;
|
|
2893
2883
|
};
|
|
2894
2884
|
finish: {
|
|
2895
|
-
thankYou: string;
|
|
2896
2885
|
thankYouForOrder: string;
|
|
2897
|
-
orderNumber: string;
|
|
2898
|
-
orderConfirmation: string;
|
|
2899
|
-
continueShopping: string;
|
|
2900
|
-
grandTotal: string;
|
|
2901
|
-
plusVat: string;
|
|
2902
|
-
vatSuffix: string;
|
|
2903
2886
|
};
|
|
2904
2887
|
orderEdit: {
|
|
2905
2888
|
cancelOrder: string;
|
|
2906
2889
|
};
|
|
2907
|
-
register: {
|
|
2908
|
-
createAccount: string;
|
|
2909
|
-
guestCheckout: string;
|
|
2910
|
-
};
|
|
2911
2890
|
};
|
|
2912
2891
|
readonly 'storefront/consent': {
|
|
2913
2892
|
cookie: {
|
|
@@ -3777,6 +3756,9 @@ declare const baseNamespaces: {
|
|
|
3777
3756
|
invoice: string;
|
|
3778
3757
|
standard: string;
|
|
3779
3758
|
express: string;
|
|
3759
|
+
grandTotal: string;
|
|
3760
|
+
plusVat: string;
|
|
3761
|
+
vatSuffix: string;
|
|
3780
3762
|
};
|
|
3781
3763
|
cart: {
|
|
3782
3764
|
shoppingCart: string;
|
|
@@ -3796,9 +3778,6 @@ declare const baseNamespaces: {
|
|
|
3796
3778
|
};
|
|
3797
3779
|
finish: {
|
|
3798
3780
|
thankYouForOrder: string;
|
|
3799
|
-
grandTotal: string;
|
|
3800
|
-
plusVat: string;
|
|
3801
|
-
vatSuffix: string;
|
|
3802
3781
|
};
|
|
3803
3782
|
orderEdit: {
|
|
3804
3783
|
cancelOrder: string;
|
|
@@ -6163,5 +6142,5 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
|
|
|
6163
6142
|
CheckVisibilityInHome: Task;
|
|
6164
6143
|
}, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
6165
6144
|
|
|
6166
|
-
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 };
|
|
6145
|
+
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 };
|
|
6167
6146
|
export type { AccountData, AclRole, Address, CalculatedTaxes, Category$1 as Category, CategoryCustomizableLinkData, CategoryData, CmsPage, Country$1 as Country, CreatedRecord, Currency$2 as Currency, CustomField, CustomFieldData, CustomFieldSet, Customer, CustomerAddress, CustomerGroup, DataServiceOptions, DeliveryTime, FixtureTypes, Flow, FlowConfig, FlowTemplate, Language$2 as Language, Manufacturer, Media$1 as Media, Options, Order, OrderDelivery, OrderLineItem, OrderStatus, PageObject, PaymentMethod$1 as PaymentMethod, Price, Product, ProductCrossSelling, ProductPrice, ProductReview, Promotion, PromotionDiscount, PropertyGroup, PropertyGroupOption, RegistrationData, ReplaceTarget, Rule, RuleAssignmentEntity, SalesChannel, SalesChannelAnalytics, SalesChannelDomain, SalesChannelRecord, Salutation, ShippingMethod$1 as ShippingMethod, SimpleLineItem, StateMachine, StateMachineState, SyncApiOperation, SystemConfig, Tag, TagData, Task, Tax$1 as Tax, TaxRules, TranslateFn, TranslationKey, User, VariantListingConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1397,7 +1397,10 @@ const common$6 = {
|
|
|
1397
1397
|
paidInAdvance: "Paid in advance",
|
|
1398
1398
|
invoice: "Invoice",
|
|
1399
1399
|
standard: "Standard",
|
|
1400
|
-
express: "Express"
|
|
1400
|
+
express: "Express",
|
|
1401
|
+
grandTotal: "Grand total",
|
|
1402
|
+
plusVat: "plus",
|
|
1403
|
+
vatSuffix: "% VAT"
|
|
1401
1404
|
};
|
|
1402
1405
|
const cart$1 = {
|
|
1403
1406
|
shoppingCart: "Shopping cart",
|
|
@@ -1416,10 +1419,7 @@ const confirm$1 = {
|
|
|
1416
1419
|
immediateAccessToDigitalProduct: "I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel."
|
|
1417
1420
|
};
|
|
1418
1421
|
const finish$1 = {
|
|
1419
|
-
thankYouForOrder: "Thank you for your order"
|
|
1420
|
-
grandTotal: "Grand total",
|
|
1421
|
-
plusVat: "plus",
|
|
1422
|
-
vatSuffix: "% VAT"
|
|
1422
|
+
thankYouForOrder: "Thank you for your order"
|
|
1423
1423
|
};
|
|
1424
1424
|
const orderEdit$1 = {
|
|
1425
1425
|
cancelOrder: "Cancel order"
|
|
@@ -1555,7 +1555,7 @@ const logout$1 = "Log out";
|
|
|
1555
1555
|
const invalidCredentials$1 = "Could not find an account that matches the given credentials.";
|
|
1556
1556
|
const successfulLogout$1 = "Successfully logged out.";
|
|
1557
1557
|
const passwordUpdated$1 = "Your password has been updated.";
|
|
1558
|
-
const register$
|
|
1558
|
+
const register$1 = {
|
|
1559
1559
|
salutation: "Salutation",
|
|
1560
1560
|
firstName: "First name",
|
|
1561
1561
|
lastName: "Last name",
|
|
@@ -1580,7 +1580,7 @@ const storefrontLogin = {
|
|
|
1580
1580
|
invalidCredentials: invalidCredentials$1,
|
|
1581
1581
|
successfulLogout: successfulLogout$1,
|
|
1582
1582
|
passwordUpdated: passwordUpdated$1,
|
|
1583
|
-
register: register$
|
|
1583
|
+
register: register$1
|
|
1584
1584
|
};
|
|
1585
1585
|
|
|
1586
1586
|
const actions$a = {
|
|
@@ -2544,62 +2544,39 @@ const common = {
|
|
|
2544
2544
|
paidInAdvance: "Vorkasse",
|
|
2545
2545
|
invoice: "Rechnung",
|
|
2546
2546
|
standard: "Standard",
|
|
2547
|
-
express: "Express"
|
|
2547
|
+
express: "Express",
|
|
2548
|
+
grandTotal: "Gesamtsumme",
|
|
2549
|
+
plusVat: "zzgl.",
|
|
2550
|
+
vatSuffix: " % MwSt."
|
|
2548
2551
|
};
|
|
2549
2552
|
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
2553
|
shoppingCart: "Warenkorb",
|
|
2560
2554
|
goToCheckout: "Zur Kasse gehen",
|
|
2561
2555
|
displayShoppingCart: "Warenkorb anzeigen",
|
|
2556
|
+
continueShopping: "Weiter einkaufen",
|
|
2562
2557
|
promoCode: "Aktionscode",
|
|
2558
|
+
emptyCart: "Ihr Warenkorb ist leer.",
|
|
2559
|
+
quantity: "Anzahl",
|
|
2563
2560
|
stockReached: "nur noch 1x verfügbar"
|
|
2564
2561
|
};
|
|
2565
2562
|
const confirm = {
|
|
2566
|
-
confirmOrder: "Bestellung bestätigen",
|
|
2567
|
-
orderSummary: "Bestellübersicht",
|
|
2568
|
-
shippingAddress: "Lieferadresse",
|
|
2569
|
-
billingAddress: "Rechnungsadresse",
|
|
2570
|
-
shippingMethod: "Versandart",
|
|
2571
|
-
paymentMethod: "Zahlungsart",
|
|
2572
|
-
agreeToTerms: "Ich stimme den AGBs zu",
|
|
2573
|
-
revocationNotice: "Widerrufsbelehrung",
|
|
2574
2563
|
completeOrder: "Bestellung abschließen",
|
|
2575
2564
|
submitOrder: "Zahlungspflichtig bestellen",
|
|
2576
2565
|
termsAndConditions: "Ich habe die AGB gelesen und bin mit ihnen einverstanden.",
|
|
2577
2566
|
immediateAccessToDigitalProduct: "Ja, ich möchte sofort Zugang zu dem digitalen Inhalt und weiß, dass mein Widerrufsrecht mit dem Zugang erlischt."
|
|
2578
2567
|
};
|
|
2579
2568
|
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."
|
|
2569
|
+
thankYouForOrder: "Vielen Dank für Ihre Bestellung"
|
|
2588
2570
|
};
|
|
2589
2571
|
const orderEdit = {
|
|
2590
2572
|
cancelOrder: "Bestellung stornieren"
|
|
2591
2573
|
};
|
|
2592
|
-
const register$1 = {
|
|
2593
|
-
createAccount: "Konto erstellen",
|
|
2594
|
-
guestCheckout: "Als Gast bestellen"
|
|
2595
|
-
};
|
|
2596
2574
|
const deStorefrontCheckout = {
|
|
2597
2575
|
common: common,
|
|
2598
2576
|
cart: cart,
|
|
2599
2577
|
confirm: confirm,
|
|
2600
2578
|
finish: finish,
|
|
2601
|
-
orderEdit: orderEdit
|
|
2602
|
-
register: register$1
|
|
2579
|
+
orderEdit: orderEdit
|
|
2603
2580
|
};
|
|
2604
2581
|
|
|
2605
2582
|
const cookie = {
|
|
@@ -3031,7 +3008,7 @@ const COUNTRY_ADDRESS_DATA = {
|
|
|
3031
3008
|
US: {
|
|
3032
3009
|
street: "1600 Pennsylvania Avenue NW",
|
|
3033
3010
|
city: "Washington",
|
|
3034
|
-
country: "United States",
|
|
3011
|
+
country: "United States of America",
|
|
3035
3012
|
postalCode: "20500",
|
|
3036
3013
|
vatRegNo: "US123456789"
|
|
3037
3014
|
},
|
|
@@ -3056,21 +3033,33 @@ const getLocale = () => {
|
|
|
3056
3033
|
return LOCALE_MAPPINGS[locale] ? locale : "en-GB";
|
|
3057
3034
|
};
|
|
3058
3035
|
const getLanguageCode = (locale) => {
|
|
3059
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3036
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3060
3037
|
return mapping ? mapping.languageCode : "en-GB";
|
|
3061
3038
|
};
|
|
3062
3039
|
const getCountryCodeFromLocale = (locale) => {
|
|
3063
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3040
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3064
3041
|
return mapping ? mapping.countryCode : "GB";
|
|
3065
3042
|
};
|
|
3066
3043
|
const getCurrencyCodeFromLocale = (locale) => {
|
|
3067
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3044
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3068
3045
|
return mapping ? mapping.currencyCode : "GBP";
|
|
3069
3046
|
};
|
|
3070
3047
|
const getCurrencySymbolFromLocale = (locale) => {
|
|
3071
|
-
const mapping = LOCALE_MAPPINGS[locale];
|
|
3048
|
+
const mapping = LOCALE_MAPPINGS[locale ?? getLocale()];
|
|
3072
3049
|
return mapping ? mapping.currencySymbol : "\xA3";
|
|
3073
3050
|
};
|
|
3051
|
+
const formatPrice = (price, locale, currencyCode) => {
|
|
3052
|
+
const currentLocale = locale || getLocale();
|
|
3053
|
+
const currency = currencyCode || getCurrencyCodeFromLocale(currentLocale);
|
|
3054
|
+
const formatter = new Intl.NumberFormat(currentLocale, {
|
|
3055
|
+
style: "currency",
|
|
3056
|
+
currency,
|
|
3057
|
+
currencyDisplay: "symbol",
|
|
3058
|
+
minimumFractionDigits: 2,
|
|
3059
|
+
maximumFractionDigits: 2
|
|
3060
|
+
});
|
|
3061
|
+
return formatter.format(price).replace(/\u00A0/g, " ");
|
|
3062
|
+
};
|
|
3074
3063
|
const getLanguageData = async (adminApiContext, languageCode) => {
|
|
3075
3064
|
const code = languageCode || getLanguageCode(getLocale());
|
|
3076
3065
|
const resp = await adminApiContext.post("search/language", {
|
|
@@ -6687,7 +6676,7 @@ class CheckoutCart {
|
|
|
6687
6676
|
this.headline = page.getByRole("heading", { name: translate("storefront:checkout:cart.shoppingCart") });
|
|
6688
6677
|
this.goToCheckoutButton = page.getByRole("link", { name: translate("storefront:checkout:cart.goToCheckout") });
|
|
6689
6678
|
this.enterPromoInput = page.getByLabel(translate("storefront:checkout:cart.promoCode"));
|
|
6690
|
-
this.grandTotalPrice = page.locator(`dt:has-text("${translate("storefront:checkout:
|
|
6679
|
+
this.grandTotalPrice = page.locator(`dt:has-text("${translate("storefront:checkout:common.grandTotal")}") + dd:visible`);
|
|
6691
6680
|
this.emptyCartAlert = page.getByText(translate("storefront:checkout:cart.emptyCart"));
|
|
6692
6681
|
this.stockReachedAlert = page.getByText(translate("storefront:checkout:cart.stockReached"));
|
|
6693
6682
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
@@ -6814,8 +6803,8 @@ class CheckoutConfirm {
|
|
|
6814
6803
|
this.headline = page.getByRole("heading", { name: translate("storefront:checkout:confirm.completeOrder") });
|
|
6815
6804
|
this.termsAndConditionsCheckbox = page.getByLabel(translate("storefront:checkout:confirm.termsAndConditions"));
|
|
6816
6805
|
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(
|
|
6806
|
+
this.grandTotalPrice = page.locator(`dt:has-text('${translate("storefront:checkout:common.grandTotal")}') + dd`);
|
|
6807
|
+
this.taxPrice = page.locator(`dt:text-matches("${translate("storefront:checkout:common.plusVat")} [0-9]\\+\\?${translate("storefront:checkout:common.vatSuffix")}") + dd`);
|
|
6819
6808
|
this.submitOrderButton = page.getByRole("button", { name: translate("storefront:checkout:confirm.submitOrder") });
|
|
6820
6809
|
this.paymentCashOnDelivery = page.getByLabel(translate("storefront:checkout:common.cashOnDelivery"));
|
|
6821
6810
|
this.paymentPaidInAdvance = page.getByLabel(translate("storefront:checkout:common.paidInAdvance"));
|
|
@@ -6841,8 +6830,8 @@ class CheckoutFinish {
|
|
|
6841
6830
|
this.page = page;
|
|
6842
6831
|
this.headline = page.getByRole("heading", { name: translate("storefront:checkout:finish.thankYouForOrder") });
|
|
6843
6832
|
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(
|
|
6833
|
+
this.grandTotalPrice = page.locator(`dt:has-text("${translate("storefront:checkout:common.grandTotal")}") + dd`);
|
|
6834
|
+
this.taxPrice = page.locator(`dt:text-matches("${translate("storefront:checkout:common.plusVat")} [0-9]\\+\\?${translate("storefront:checkout:common.vatSuffix")}") + dd`);
|
|
6846
6835
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
6847
6836
|
}
|
|
6848
6837
|
url() {
|
|
@@ -7667,13 +7656,18 @@ const test$7 = test$e.extend({
|
|
|
7667
7656
|
|
|
7668
7657
|
async function getCustomFieldCardLocators(page, customFieldSetName, customFieldName, instanceMeta) {
|
|
7669
7658
|
let customFieldCard;
|
|
7659
|
+
let customFieldLabel;
|
|
7670
7660
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
7671
7661
|
customFieldCard = page.locator(".sw-card").filter({ hasText: translate("administration:customField:general.customFields") });
|
|
7672
7662
|
} else {
|
|
7673
7663
|
customFieldCard = page.locator(".mt-card").filter({ hasText: translate("administration:customField:general.customFields") });
|
|
7674
7664
|
}
|
|
7675
7665
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
7676
|
-
|
|
7666
|
+
if (satisfies(instanceMeta.version, "<6.7.4.1")) {
|
|
7667
|
+
customFieldLabel = customFieldCard.locator(".sw-custom-field-set-renderer").locator(".sw-field__label").getByText(customFieldName);
|
|
7668
|
+
} else {
|
|
7669
|
+
customFieldLabel = customFieldCard.locator(".sw-custom-field-set-renderer").locator(".mt-field__label").getByText(customFieldName);
|
|
7670
|
+
}
|
|
7677
7671
|
const customFieldSelect = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
7678
7672
|
return {
|
|
7679
7673
|
customFieldCard,
|
|
@@ -8524,7 +8518,7 @@ class DataSharing {
|
|
|
8524
8518
|
}
|
|
8525
8519
|
this.dataSharingAgreeButton = page.getByRole("button", { name: translate("administration:dataSharing:buttons.agree") });
|
|
8526
8520
|
this.dataSharingDisableButton = page.getByRole("button", { name: translate("administration:dataSharing:buttons.disableDataSharing") });
|
|
8527
|
-
this.dataSharingSuccessMessageLabel = page.getByText("
|
|
8521
|
+
this.dataSharingSuccessMessageLabel = page.getByText(translate("administration:dataSharing:messages.sharingData"), { exact: true });
|
|
8528
8522
|
this.dataSharingTermsAgreementLabel = page.getByText(translate("administration:dataSharing:messages.termsAgreement"));
|
|
8529
8523
|
}
|
|
8530
8524
|
url() {
|
|
@@ -9200,7 +9194,11 @@ class RuleDetail extends RuleCreate {
|
|
|
9200
9194
|
this.conditionCartLineItemTaxationValue = page.locator(".sw-condition__condition-type-cartLineItemTaxation").locator(".sw-select-selection-list__item");
|
|
9201
9195
|
this.conditionTimeRangeValueFirst = page.locator(".sw-condition-time-range").getByRole("textbox").first();
|
|
9202
9196
|
this.conditionTimeRangeValueSecond = page.locator(".sw-condition-time-range").getByRole("textbox").last();
|
|
9203
|
-
|
|
9197
|
+
if (satisfies(instanceMeta.version, "<6.7.4.1")) {
|
|
9198
|
+
this.conditionOrderCreatedByAdminValue = page.locator(".sw-condition__condition-type-orderCreatedByAdmin").locator(".sw-select__selection");
|
|
9199
|
+
} else {
|
|
9200
|
+
this.conditionOrderCreatedByAdminValue = page.locator(".sw-condition__condition-type-orderCreatedByAdmin").locator(".mt-select-selection-list__input");
|
|
9201
|
+
}
|
|
9204
9202
|
this.conditionFilterModal = page.locator(".sw-modal__header").getByText("Filter");
|
|
9205
9203
|
this.conditionFilterModalCloseButtonX = page.locator(".sw-modal__header").getByRole("button");
|
|
9206
9204
|
this.conditionCartLineItemInStockOperator = page.locator(".sw-condition__condition-type-cartLineItemStock").locator(".sw-single-select__selection-text");
|
|
@@ -12259,4 +12257,4 @@ const test = mergeTests(
|
|
|
12259
12257
|
test$3
|
|
12260
12258
|
);
|
|
12261
12259
|
|
|
12262
|
-
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 };
|
|
12260
|
+
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 };
|