@shopware-ag/acceptance-test-suite 2.3.4 → 2.3.7
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +51 -64
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -225,6 +225,7 @@ const test$b = test$d.extend({
|
|
|
225
225
|
storefrontTypeId: "8a243080f92e4c719546314b577cf82b",
|
|
226
226
|
eurCurrencyId: currency.id,
|
|
227
227
|
defaultCurrencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
228
|
+
defaultLanguageId: "2fbb5fe2e29a4d70aa5854ce7ce3e20b",
|
|
228
229
|
invoicePaymentMethodId: await requests.invoicePaymentMethodId,
|
|
229
230
|
defaultShippingMethod: await requests.defaultShippingMethod,
|
|
230
231
|
taxId: await requests.getTaxId,
|
|
@@ -326,7 +327,7 @@ const test$b = test$d.extend({
|
|
|
326
327
|
id: customerGroupUuid,
|
|
327
328
|
name: `${id} Acceptance test`
|
|
328
329
|
},
|
|
329
|
-
languages: [{ id: SalesChannelBaseConfig.enGBLanguageId }],
|
|
330
|
+
languages: [{ id: SalesChannelBaseConfig.enGBLanguageId }, { id: SalesChannelBaseConfig.defaultLanguageId }],
|
|
330
331
|
countries: [{ id: SalesChannelBaseConfig.deCountryId }],
|
|
331
332
|
shippingMethods: [{ id: SalesChannelBaseConfig.defaultShippingMethod }],
|
|
332
333
|
paymentMethods: [{ id: SalesChannelBaseConfig.invoicePaymentMethodId }],
|
|
@@ -1442,6 +1443,20 @@ class TestDataService {
|
|
|
1442
1443
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
1443
1444
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
|
1444
1445
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.`.trim();
|
|
1446
|
+
const prices = [
|
|
1447
|
+
{
|
|
1448
|
+
currencyId: this.defaultSalesChannel.currencyId,
|
|
1449
|
+
gross: 10,
|
|
1450
|
+
linked: false,
|
|
1451
|
+
net: 8.4
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
currencyId,
|
|
1455
|
+
gross: 10,
|
|
1456
|
+
linked: false,
|
|
1457
|
+
net: 8.4
|
|
1458
|
+
}
|
|
1459
|
+
];
|
|
1445
1460
|
let basicProduct = {
|
|
1446
1461
|
id: productUuid,
|
|
1447
1462
|
name: productName,
|
|
@@ -1450,18 +1465,8 @@ class TestDataService {
|
|
|
1450
1465
|
taxId,
|
|
1451
1466
|
active: true,
|
|
1452
1467
|
stock: 10,
|
|
1453
|
-
price:
|
|
1454
|
-
|
|
1455
|
-
gross: 10,
|
|
1456
|
-
linked: false,
|
|
1457
|
-
net: 8.4
|
|
1458
|
-
}],
|
|
1459
|
-
purchasePrices: [{
|
|
1460
|
-
currencyId,
|
|
1461
|
-
gross: 8,
|
|
1462
|
-
linked: false,
|
|
1463
|
-
net: 6.7
|
|
1464
|
-
}]
|
|
1468
|
+
price: prices,
|
|
1469
|
+
purchasePrices: prices
|
|
1465
1470
|
};
|
|
1466
1471
|
if (this.defaultCategoryId) {
|
|
1467
1472
|
basicProduct = Object.assign({}, basicProduct, {
|
|
@@ -1481,41 +1486,35 @@ class TestDataService {
|
|
|
1481
1486
|
return Object.assign({}, basicProduct, overrides);
|
|
1482
1487
|
}
|
|
1483
1488
|
getProductPriceRangeStruct(currencyId, ruleId) {
|
|
1484
|
-
|
|
1485
|
-
|
|
1489
|
+
const p = (gross, net) => [
|
|
1490
|
+
{
|
|
1491
|
+
currencyId: this.defaultSalesChannel.currencyId,
|
|
1492
|
+
gross,
|
|
1493
|
+
net,
|
|
1494
|
+
linked: false
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1486
1497
|
currencyId,
|
|
1487
|
-
gross
|
|
1488
|
-
net
|
|
1498
|
+
gross,
|
|
1499
|
+
net,
|
|
1489
1500
|
linked: false
|
|
1490
|
-
}
|
|
1501
|
+
}
|
|
1502
|
+
];
|
|
1503
|
+
return {
|
|
1504
|
+
price: p(100, 84.03),
|
|
1491
1505
|
prices: [{
|
|
1492
1506
|
ruleId,
|
|
1493
|
-
price:
|
|
1494
|
-
currencyId,
|
|
1495
|
-
gross: 100,
|
|
1496
|
-
net: 84.03,
|
|
1497
|
-
linked: false
|
|
1498
|
-
}],
|
|
1507
|
+
price: p(100, 84.03),
|
|
1499
1508
|
quantityStart: 1,
|
|
1500
1509
|
quantityEnd: 10
|
|
1501
1510
|
}, {
|
|
1502
1511
|
ruleId,
|
|
1503
|
-
price:
|
|
1504
|
-
currencyId,
|
|
1505
|
-
gross: 90,
|
|
1506
|
-
net: 75.63,
|
|
1507
|
-
linked: false
|
|
1508
|
-
}],
|
|
1512
|
+
price: p(90, 75.63),
|
|
1509
1513
|
quantityStart: 11,
|
|
1510
1514
|
quantityEnd: 20
|
|
1511
1515
|
}, {
|
|
1512
1516
|
ruleId,
|
|
1513
|
-
price:
|
|
1514
|
-
currencyId,
|
|
1515
|
-
gross: 80,
|
|
1516
|
-
net: 67.23,
|
|
1517
|
-
linked: false
|
|
1518
|
-
}],
|
|
1517
|
+
price: p(80, 67.23),
|
|
1519
1518
|
quantityStart: 21,
|
|
1520
1519
|
quantityEnd: 50
|
|
1521
1520
|
}]
|
|
@@ -2745,6 +2744,20 @@ const ProductData = test$d.extend({
|
|
|
2745
2744
|
ProductData: async ({ IdProvider, SalesChannelBaseConfig, AdminApiContext, DefaultSalesChannel }, use) => {
|
|
2746
2745
|
const { id: productId, uuid: productUuid } = IdProvider.getIdPair();
|
|
2747
2746
|
const productName = `Product_test_${productId}`;
|
|
2747
|
+
const price = [
|
|
2748
|
+
{
|
|
2749
|
+
currencyId: DefaultSalesChannel.salesChannel.currencyId,
|
|
2750
|
+
gross: 10,
|
|
2751
|
+
linked: false,
|
|
2752
|
+
net: 8.4
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
currencyId: SalesChannelBaseConfig.defaultCurrencyId,
|
|
2756
|
+
gross: 10,
|
|
2757
|
+
linked: false,
|
|
2758
|
+
net: 8.4
|
|
2759
|
+
}
|
|
2760
|
+
];
|
|
2748
2761
|
const productResponse = await AdminApiContext.post("./product?_response", {
|
|
2749
2762
|
data: {
|
|
2750
2763
|
active: true,
|
|
@@ -2753,34 +2766,8 @@ const ProductData = test$d.extend({
|
|
|
2753
2766
|
id: productUuid,
|
|
2754
2767
|
name: productName,
|
|
2755
2768
|
productNumber: "Product-" + productId,
|
|
2756
|
-
price
|
|
2757
|
-
|
|
2758
|
-
currencyId: SalesChannelBaseConfig.eurCurrencyId,
|
|
2759
|
-
gross: 10,
|
|
2760
|
-
linked: false,
|
|
2761
|
-
net: 8.4
|
|
2762
|
-
},
|
|
2763
|
-
{
|
|
2764
|
-
currencyId: SalesChannelBaseConfig.defaultCurrencyId,
|
|
2765
|
-
gross: 10,
|
|
2766
|
-
linked: false,
|
|
2767
|
-
net: 8.4
|
|
2768
|
-
}
|
|
2769
|
-
],
|
|
2770
|
-
purchasePrices: [
|
|
2771
|
-
{
|
|
2772
|
-
currencyId: SalesChannelBaseConfig.eurCurrencyId,
|
|
2773
|
-
gross: 8,
|
|
2774
|
-
linked: false,
|
|
2775
|
-
net: 6.7
|
|
2776
|
-
},
|
|
2777
|
-
{
|
|
2778
|
-
currencyId: SalesChannelBaseConfig.defaultCurrencyId,
|
|
2779
|
-
gross: 8,
|
|
2780
|
-
linked: false,
|
|
2781
|
-
net: 6.7
|
|
2782
|
-
}
|
|
2783
|
-
],
|
|
2769
|
+
price,
|
|
2770
|
+
purchasePrices: price,
|
|
2784
2771
|
visibilities: [
|
|
2785
2772
|
{
|
|
2786
2773
|
salesChannelId: DefaultSalesChannel.salesChannel.id,
|