@shopware-ag/acceptance-test-suite 2.3.4 → 2.3.6
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 +49 -63
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1442,6 +1442,20 @@ class TestDataService {
|
|
|
1442
1442
|
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
1443
|
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
1444
|
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();
|
|
1445
|
+
const prices = [
|
|
1446
|
+
{
|
|
1447
|
+
currencyId: this.defaultSalesChannel.currencyId,
|
|
1448
|
+
gross: 10,
|
|
1449
|
+
linked: false,
|
|
1450
|
+
net: 8.4
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
currencyId,
|
|
1454
|
+
gross: 10,
|
|
1455
|
+
linked: false,
|
|
1456
|
+
net: 8.4
|
|
1457
|
+
}
|
|
1458
|
+
];
|
|
1445
1459
|
let basicProduct = {
|
|
1446
1460
|
id: productUuid,
|
|
1447
1461
|
name: productName,
|
|
@@ -1450,18 +1464,8 @@ class TestDataService {
|
|
|
1450
1464
|
taxId,
|
|
1451
1465
|
active: true,
|
|
1452
1466
|
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
|
-
}]
|
|
1467
|
+
price: prices,
|
|
1468
|
+
purchasePrices: prices
|
|
1465
1469
|
};
|
|
1466
1470
|
if (this.defaultCategoryId) {
|
|
1467
1471
|
basicProduct = Object.assign({}, basicProduct, {
|
|
@@ -1481,41 +1485,35 @@ class TestDataService {
|
|
|
1481
1485
|
return Object.assign({}, basicProduct, overrides);
|
|
1482
1486
|
}
|
|
1483
1487
|
getProductPriceRangeStruct(currencyId, ruleId) {
|
|
1484
|
-
|
|
1485
|
-
|
|
1488
|
+
const p = (gross, net) => [
|
|
1489
|
+
{
|
|
1490
|
+
currencyId: this.defaultSalesChannel.currencyId,
|
|
1491
|
+
gross,
|
|
1492
|
+
net,
|
|
1493
|
+
linked: false
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1486
1496
|
currencyId,
|
|
1487
|
-
gross
|
|
1488
|
-
net
|
|
1497
|
+
gross,
|
|
1498
|
+
net,
|
|
1489
1499
|
linked: false
|
|
1490
|
-
}
|
|
1500
|
+
}
|
|
1501
|
+
];
|
|
1502
|
+
return {
|
|
1503
|
+
price: p(100, 84.03),
|
|
1491
1504
|
prices: [{
|
|
1492
1505
|
ruleId,
|
|
1493
|
-
price:
|
|
1494
|
-
currencyId,
|
|
1495
|
-
gross: 100,
|
|
1496
|
-
net: 84.03,
|
|
1497
|
-
linked: false
|
|
1498
|
-
}],
|
|
1506
|
+
price: p(100, 84.03),
|
|
1499
1507
|
quantityStart: 1,
|
|
1500
1508
|
quantityEnd: 10
|
|
1501
1509
|
}, {
|
|
1502
1510
|
ruleId,
|
|
1503
|
-
price:
|
|
1504
|
-
currencyId,
|
|
1505
|
-
gross: 90,
|
|
1506
|
-
net: 75.63,
|
|
1507
|
-
linked: false
|
|
1508
|
-
}],
|
|
1511
|
+
price: p(90, 75.63),
|
|
1509
1512
|
quantityStart: 11,
|
|
1510
1513
|
quantityEnd: 20
|
|
1511
1514
|
}, {
|
|
1512
1515
|
ruleId,
|
|
1513
|
-
price:
|
|
1514
|
-
currencyId,
|
|
1515
|
-
gross: 80,
|
|
1516
|
-
net: 67.23,
|
|
1517
|
-
linked: false
|
|
1518
|
-
}],
|
|
1516
|
+
price: p(80, 67.23),
|
|
1519
1517
|
quantityStart: 21,
|
|
1520
1518
|
quantityEnd: 50
|
|
1521
1519
|
}]
|
|
@@ -2745,6 +2743,20 @@ const ProductData = test$d.extend({
|
|
|
2745
2743
|
ProductData: async ({ IdProvider, SalesChannelBaseConfig, AdminApiContext, DefaultSalesChannel }, use) => {
|
|
2746
2744
|
const { id: productId, uuid: productUuid } = IdProvider.getIdPair();
|
|
2747
2745
|
const productName = `Product_test_${productId}`;
|
|
2746
|
+
const price = [
|
|
2747
|
+
{
|
|
2748
|
+
currencyId: DefaultSalesChannel.salesChannel.currencyId,
|
|
2749
|
+
gross: 10,
|
|
2750
|
+
linked: false,
|
|
2751
|
+
net: 8.4
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
currencyId: SalesChannelBaseConfig.defaultCurrencyId,
|
|
2755
|
+
gross: 10,
|
|
2756
|
+
linked: false,
|
|
2757
|
+
net: 8.4
|
|
2758
|
+
}
|
|
2759
|
+
];
|
|
2748
2760
|
const productResponse = await AdminApiContext.post("./product?_response", {
|
|
2749
2761
|
data: {
|
|
2750
2762
|
active: true,
|
|
@@ -2753,34 +2765,8 @@ const ProductData = test$d.extend({
|
|
|
2753
2765
|
id: productUuid,
|
|
2754
2766
|
name: productName,
|
|
2755
2767
|
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
|
-
],
|
|
2768
|
+
price,
|
|
2769
|
+
purchasePrices: price,
|
|
2784
2770
|
visibilities: [
|
|
2785
2771
|
{
|
|
2786
2772
|
salesChannelId: DefaultSalesChannel.salesChannel.id,
|