@shopware-ag/acceptance-test-suite 11.4.1 → 11.4.3
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.mjs +9 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -502,7 +502,8 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
502
502
|
let response = await methodMap[method](url, options);
|
|
503
503
|
if (response.status() === 401) {
|
|
504
504
|
await this.refreshAccessToken();
|
|
505
|
-
|
|
505
|
+
const updatedOptions = { ...options, headers: { Authorization: `Bearer ${this.options["access_token"]}` } };
|
|
506
|
+
response = await methodMap[method](url, updatedOptions);
|
|
506
507
|
}
|
|
507
508
|
return response;
|
|
508
509
|
}
|
|
@@ -3793,6 +3794,9 @@ class AccountOrder {
|
|
|
3793
3794
|
const orderShippingMethod = orderItem.locator(".order-table-body-value").nth(4);
|
|
3794
3795
|
const orderDetailButton = orderItem.getByRole("button", { name: /Expand|Show details/ });
|
|
3795
3796
|
const orderImage = orderItem.locator(".line-item-img-link");
|
|
3797
|
+
const taxPrice = orderItem.locator(`dt:text-matches('plus [0-9]\\+\\?% VAT') + dd`);
|
|
3798
|
+
const shippingCosts = orderItem.locator(`dt:text-matches('Shipping costs:') + dd`);
|
|
3799
|
+
const totalGross = orderItem.locator(`dt:text-matches('Total (gross):') + dd`);
|
|
3796
3800
|
return {
|
|
3797
3801
|
orderStatus,
|
|
3798
3802
|
orderHeading,
|
|
@@ -3805,7 +3809,10 @@ class AccountOrder {
|
|
|
3805
3809
|
orderPaymentMethod,
|
|
3806
3810
|
orderShippingMethod,
|
|
3807
3811
|
orderDetailButton,
|
|
3808
|
-
orderImage
|
|
3812
|
+
orderImage,
|
|
3813
|
+
taxPrice,
|
|
3814
|
+
shippingCosts,
|
|
3815
|
+
totalGross
|
|
3809
3816
|
};
|
|
3810
3817
|
}
|
|
3811
3818
|
url() {
|