@shopware-ag/acceptance-test-suite 12.10.2 → 12.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.mjs +41 -6
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2018,6 +2018,9 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2018
2018
|
vatSuffix: string;
|
|
2019
2019
|
shippingCosts: string;
|
|
2020
2020
|
totalGross: string;
|
|
2021
|
+
headlineCompletePayment: string;
|
|
2022
|
+
buttonCompletePayment: string;
|
|
2023
|
+
editCompleted: string;
|
|
2021
2024
|
};
|
|
2022
2025
|
addresses: {
|
|
2023
2026
|
street: string;
|
|
@@ -3082,6 +3085,9 @@ declare const BUNDLED_RESOURCES: {
|
|
|
3082
3085
|
vatSuffix: string;
|
|
3083
3086
|
shippingCosts: string;
|
|
3084
3087
|
totalGross: string;
|
|
3088
|
+
headlineCompletePayment: string;
|
|
3089
|
+
buttonCompletePayment: string;
|
|
3090
|
+
editCompleted: string;
|
|
3085
3091
|
};
|
|
3086
3092
|
addresses: {
|
|
3087
3093
|
street: string;
|
|
@@ -4138,6 +4144,9 @@ declare const baseNamespaces: {
|
|
|
4138
4144
|
vatSuffix: string;
|
|
4139
4145
|
shippingCosts: string;
|
|
4140
4146
|
totalGross: string;
|
|
4147
|
+
headlineCompletePayment: string;
|
|
4148
|
+
buttonCompletePayment: string;
|
|
4149
|
+
editCompleted: string;
|
|
4141
4150
|
};
|
|
4142
4151
|
addresses: {
|
|
4143
4152
|
street: string;
|
|
@@ -5015,6 +5024,18 @@ declare class AccountOrder extends BaseAccount {
|
|
|
5015
5024
|
private escapeRegex;
|
|
5016
5025
|
}
|
|
5017
5026
|
|
|
5027
|
+
declare class AccountOrderEdit extends BaseAccount {
|
|
5028
|
+
readonly headline: Locator;
|
|
5029
|
+
readonly paymentMethodRadioGroup: Locator;
|
|
5030
|
+
readonly shippingMethodRadioGroup: Locator;
|
|
5031
|
+
readonly grandTotalPrice: Locator;
|
|
5032
|
+
readonly taxPrice: Locator;
|
|
5033
|
+
readonly completePaymentButton: Locator;
|
|
5034
|
+
readonly editCompletedHeadline: Locator;
|
|
5035
|
+
constructor(page: Page);
|
|
5036
|
+
url(orderId?: string): string;
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5018
5039
|
declare class AccountAddresses extends BaseAccount {
|
|
5019
5040
|
readonly addNewAddressButton: Locator;
|
|
5020
5041
|
readonly editBillingAddressButton: Locator;
|
|
@@ -5248,6 +5269,7 @@ interface StorefrontPageTypes {
|
|
|
5248
5269
|
StorefrontAccountRecover: AccountRecover;
|
|
5249
5270
|
StorefrontAccountProfile: AccountProfile;
|
|
5250
5271
|
StorefrontAccountOrder: AccountOrder;
|
|
5272
|
+
StorefrontAccountOrderEdit: AccountOrderEdit;
|
|
5251
5273
|
StorefrontAccountAddresses: AccountAddresses;
|
|
5252
5274
|
StorefrontAccountAddressCreate: AccountAddressCreate;
|
|
5253
5275
|
StorefrontAccountAddressDetails: AccountAddressDetails;
|
|
@@ -5276,6 +5298,7 @@ declare const StorefrontPageObjects: {
|
|
|
5276
5298
|
AccountRecover: typeof AccountRecover;
|
|
5277
5299
|
AccountProfile: typeof AccountProfile;
|
|
5278
5300
|
AccountOrder: typeof AccountOrder;
|
|
5301
|
+
AccountOrderEdit: typeof AccountOrderEdit;
|
|
5279
5302
|
AccountAddresses: typeof AccountAddresses;
|
|
5280
5303
|
AccountAddressCreate: typeof AccountAddressCreate;
|
|
5281
5304
|
AccountAddressDetails: typeof AccountAddressDetails;
|
package/dist/index.d.ts
CHANGED
|
@@ -2018,6 +2018,9 @@ declare const BUNDLED_RESOURCES: {
|
|
|
2018
2018
|
vatSuffix: string;
|
|
2019
2019
|
shippingCosts: string;
|
|
2020
2020
|
totalGross: string;
|
|
2021
|
+
headlineCompletePayment: string;
|
|
2022
|
+
buttonCompletePayment: string;
|
|
2023
|
+
editCompleted: string;
|
|
2021
2024
|
};
|
|
2022
2025
|
addresses: {
|
|
2023
2026
|
street: string;
|
|
@@ -3082,6 +3085,9 @@ declare const BUNDLED_RESOURCES: {
|
|
|
3082
3085
|
vatSuffix: string;
|
|
3083
3086
|
shippingCosts: string;
|
|
3084
3087
|
totalGross: string;
|
|
3088
|
+
headlineCompletePayment: string;
|
|
3089
|
+
buttonCompletePayment: string;
|
|
3090
|
+
editCompleted: string;
|
|
3085
3091
|
};
|
|
3086
3092
|
addresses: {
|
|
3087
3093
|
street: string;
|
|
@@ -4138,6 +4144,9 @@ declare const baseNamespaces: {
|
|
|
4138
4144
|
vatSuffix: string;
|
|
4139
4145
|
shippingCosts: string;
|
|
4140
4146
|
totalGross: string;
|
|
4147
|
+
headlineCompletePayment: string;
|
|
4148
|
+
buttonCompletePayment: string;
|
|
4149
|
+
editCompleted: string;
|
|
4141
4150
|
};
|
|
4142
4151
|
addresses: {
|
|
4143
4152
|
street: string;
|
|
@@ -5015,6 +5024,18 @@ declare class AccountOrder extends BaseAccount {
|
|
|
5015
5024
|
private escapeRegex;
|
|
5016
5025
|
}
|
|
5017
5026
|
|
|
5027
|
+
declare class AccountOrderEdit extends BaseAccount {
|
|
5028
|
+
readonly headline: Locator;
|
|
5029
|
+
readonly paymentMethodRadioGroup: Locator;
|
|
5030
|
+
readonly shippingMethodRadioGroup: Locator;
|
|
5031
|
+
readonly grandTotalPrice: Locator;
|
|
5032
|
+
readonly taxPrice: Locator;
|
|
5033
|
+
readonly completePaymentButton: Locator;
|
|
5034
|
+
readonly editCompletedHeadline: Locator;
|
|
5035
|
+
constructor(page: Page);
|
|
5036
|
+
url(orderId?: string): string;
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5018
5039
|
declare class AccountAddresses extends BaseAccount {
|
|
5019
5040
|
readonly addNewAddressButton: Locator;
|
|
5020
5041
|
readonly editBillingAddressButton: Locator;
|
|
@@ -5248,6 +5269,7 @@ interface StorefrontPageTypes {
|
|
|
5248
5269
|
StorefrontAccountRecover: AccountRecover;
|
|
5249
5270
|
StorefrontAccountProfile: AccountProfile;
|
|
5250
5271
|
StorefrontAccountOrder: AccountOrder;
|
|
5272
|
+
StorefrontAccountOrderEdit: AccountOrderEdit;
|
|
5251
5273
|
StorefrontAccountAddresses: AccountAddresses;
|
|
5252
5274
|
StorefrontAccountAddressCreate: AccountAddressCreate;
|
|
5253
5275
|
StorefrontAccountAddressDetails: AccountAddressDetails;
|
|
@@ -5276,6 +5298,7 @@ declare const StorefrontPageObjects: {
|
|
|
5276
5298
|
AccountRecover: typeof AccountRecover;
|
|
5277
5299
|
AccountProfile: typeof AccountProfile;
|
|
5278
5300
|
AccountOrder: typeof AccountOrder;
|
|
5301
|
+
AccountOrderEdit: typeof AccountOrderEdit;
|
|
5279
5302
|
AccountAddresses: typeof AccountAddresses;
|
|
5280
5303
|
AccountAddressCreate: typeof AccountAddressCreate;
|
|
5281
5304
|
AccountAddressDetails: typeof AccountAddressDetails;
|
package/dist/index.mjs
CHANGED
|
@@ -1447,7 +1447,10 @@ const orders$1 = {
|
|
|
1447
1447
|
includeVat: "incl.",
|
|
1448
1448
|
vatSuffix: "% VAT",
|
|
1449
1449
|
shippingCosts: "Shipping costs:",
|
|
1450
|
-
totalGross: "Total (gross):"
|
|
1450
|
+
totalGross: "Total (gross):",
|
|
1451
|
+
headlineCompletePayment: "Complete payment",
|
|
1452
|
+
buttonCompletePayment: "Complete payment",
|
|
1453
|
+
editCompleted: "Thank you for updating your order!"
|
|
1451
1454
|
};
|
|
1452
1455
|
const addresses$1 = {
|
|
1453
1456
|
street: "Street",
|
|
@@ -2744,7 +2747,10 @@ const orders = {
|
|
|
2744
2747
|
includeVat: "inkl.",
|
|
2745
2748
|
vatSuffix: "% MwSt.",
|
|
2746
2749
|
shippingCosts: "Versandkosten:",
|
|
2747
|
-
totalGross: "Gesamtsumme (brutto):"
|
|
2750
|
+
totalGross: "Gesamtsumme (brutto):",
|
|
2751
|
+
headlineCompletePayment: "Zahlung abschließen",
|
|
2752
|
+
buttonCompletePayment: "Zahlung abschließen",
|
|
2753
|
+
editCompleted: "Vielen Dank für die Aktualisierung Ihrer Bestellung!"
|
|
2748
2754
|
};
|
|
2749
2755
|
const addresses = {
|
|
2750
2756
|
street: "Straße",
|
|
@@ -7633,6 +7639,7 @@ class AccountOrder extends BaseAccount {
|
|
|
7633
7639
|
async getOrderByOrderNumber(orderNumber) {
|
|
7634
7640
|
const orderItem = this.page.getByRole("listitem").getByLabel(`${translate("storefront:account:orders.orderNumber")} ${orderNumber}`);
|
|
7635
7641
|
const orderStatus = orderItem.locator(".order-table-header-order-status");
|
|
7642
|
+
const orderStatusLink = orderStatus.getByRole("link");
|
|
7636
7643
|
const orderHeading = orderItem.locator(".order-table-header-heading");
|
|
7637
7644
|
const orderActionsButton = orderItem.getByLabel(translate("storefront:account:orders.actions"));
|
|
7638
7645
|
const orderCancelButton = orderItem.getByRole("button", { name: translate("storefront:account:orders.cancelOrder") });
|
|
@@ -7651,6 +7658,7 @@ class AccountOrder extends BaseAccount {
|
|
|
7651
7658
|
const totalGross = orderItem.locator(`dt:text-matches('${translate("storefront:account:orders.totalGross")}') + dd`);
|
|
7652
7659
|
return {
|
|
7653
7660
|
orderStatus,
|
|
7661
|
+
orderStatusLink,
|
|
7654
7662
|
orderHeading,
|
|
7655
7663
|
orderActionsButton,
|
|
7656
7664
|
orderCancelButton,
|
|
@@ -7672,10 +7680,7 @@ class AccountOrder extends BaseAccount {
|
|
|
7672
7680
|
}
|
|
7673
7681
|
buildTaxPricePattern() {
|
|
7674
7682
|
const taxRatePattern = "[0-9]+(?:[.,][0-9]+)?";
|
|
7675
|
-
const taxLabelPattern = [
|
|
7676
|
-
this.escapeRegex(translate("storefront:account:orders.includeVat")),
|
|
7677
|
-
this.escapeRegex(translate("storefront:account:orders.plusVat"))
|
|
7678
|
-
].join("|");
|
|
7683
|
+
const taxLabelPattern = [this.escapeRegex(translate("storefront:account:orders.includeVat")), this.escapeRegex(translate("storefront:account:orders.plusVat"))].join("|");
|
|
7679
7684
|
return `(?:${taxLabelPattern})\\s+${taxRatePattern}${this.escapeRegex(translate("storefront:account:orders.vatSuffix"))}`;
|
|
7680
7685
|
}
|
|
7681
7686
|
escapeRegex(text) {
|
|
@@ -7683,6 +7688,32 @@ class AccountOrder extends BaseAccount {
|
|
|
7683
7688
|
}
|
|
7684
7689
|
}
|
|
7685
7690
|
|
|
7691
|
+
class AccountOrderEdit extends BaseAccount {
|
|
7692
|
+
headline;
|
|
7693
|
+
paymentMethodRadioGroup;
|
|
7694
|
+
shippingMethodRadioGroup;
|
|
7695
|
+
grandTotalPrice;
|
|
7696
|
+
taxPrice;
|
|
7697
|
+
completePaymentButton;
|
|
7698
|
+
editCompletedHeadline;
|
|
7699
|
+
constructor(page) {
|
|
7700
|
+
super(page);
|
|
7701
|
+
this.headline = page.getByRole("heading", { name: translate("storefront:account:orders.headlineCompletePayment") });
|
|
7702
|
+
this.paymentMethodRadioGroup = page.locator(".checkout-card", { hasText: translate("storefront:checkout:common.paymentMethod") });
|
|
7703
|
+
this.shippingMethodRadioGroup = page.locator(".checkout-card", { hasText: translate("storefront:checkout:common.shippingMethod") });
|
|
7704
|
+
this.grandTotalPrice = page.locator(`dt:has-text('${translate("storefront:checkout:common.grandTotal")}') + dd`);
|
|
7705
|
+
this.taxPrice = page.locator(`dt:text-matches("${translate("storefront:checkout:common.plusVat")} [0-9]\\+\\?${translate("storefront:checkout:common.vatSuffix")}") + dd`);
|
|
7706
|
+
this.completePaymentButton = page.getByRole("button", { name: translate("storefront:account:orders.buttonCompletePayment") });
|
|
7707
|
+
this.editCompletedHeadline = page.getByRole("heading", { name: translate("storefront:account:orders.editCompleted") });
|
|
7708
|
+
}
|
|
7709
|
+
url(orderId) {
|
|
7710
|
+
if (orderId) {
|
|
7711
|
+
return `account/order/${orderId}`;
|
|
7712
|
+
}
|
|
7713
|
+
throw new Error("Order ID is required to build the URL for AccountOrder edit page.");
|
|
7714
|
+
}
|
|
7715
|
+
}
|
|
7716
|
+
|
|
7686
7717
|
class AccountAddresses extends BaseAccount {
|
|
7687
7718
|
addNewAddressButton;
|
|
7688
7719
|
editBillingAddressButton;
|
|
@@ -8154,6 +8185,7 @@ const StorefrontPageObjects = {
|
|
|
8154
8185
|
AccountRecover,
|
|
8155
8186
|
AccountProfile,
|
|
8156
8187
|
AccountOrder,
|
|
8188
|
+
AccountOrderEdit,
|
|
8157
8189
|
AccountAddresses,
|
|
8158
8190
|
AccountAddressCreate,
|
|
8159
8191
|
AccountAddressDetails,
|
|
@@ -8208,6 +8240,9 @@ const test$7 = test$e.extend({
|
|
|
8208
8240
|
StorefrontAccountOrder: async ({ StorefrontPage }, use) => {
|
|
8209
8241
|
await use(new AccountOrder(StorefrontPage));
|
|
8210
8242
|
},
|
|
8243
|
+
StorefrontAccountOrderEdit: async ({ StorefrontPage }, use) => {
|
|
8244
|
+
await use(new AccountOrderEdit(StorefrontPage));
|
|
8245
|
+
},
|
|
8211
8246
|
StorefrontAccountAddresses: async ({ StorefrontPage, InstanceMeta }, use) => {
|
|
8212
8247
|
await use(new AccountAddresses(StorefrontPage, InstanceMeta));
|
|
8213
8248
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware-ag/acceptance-test-suite",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.0",
|
|
4
4
|
"description": "Shopware Acceptance Test Suite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fixtures",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@axe-core/playwright": "4.11.1",
|
|
43
|
-
"@playwright/test": "1.
|
|
43
|
+
"@playwright/test": "1.60.0",
|
|
44
44
|
"@shopware/api-client": "1.4.0",
|
|
45
45
|
"axe-html-reporter": "2.2.11",
|
|
46
46
|
"compare-versions": "6.1.1",
|