Skip to content

Commit 80c5f9b

Browse files
author
Dmytro Aponasenko
committed
MTA-1814: Analyse functional test failures - Sprint 9
1 parent 90da28f commit 80c5f9b

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/CreateSimpleProductEntityTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@
316316
<constraint name="Magento\Catalog\Test\Constraint\AssertProductTierPriceOnProductPage" />
317317
</variation>
318318
<variation name="CreateSimpleProductEntityTestVariation18">
319+
<data name="issue" xsi:type="string">Bug: MAGETWO-35342</data>
319320
<data name="description" xsi:type="string">Create product wit suite of custom options</data>
320321
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
321322
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/Edit/Tab/Super/Config/Attribute.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ protected function createNewVariationSet(array $attribute)
165165
);
166166

167167
$this->_rootElement->find($this->createNewVariationSet)->click();
168-
$newAttribute = $this->getEditAttributeForm();
169168
$this->getEditAttributeForm()->fill($attributeFixture);
170169
$this->getEditAttributeForm()->saveAttributeForm();
171170
}

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrdersInOrdersGrid.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ class AssertOrdersInOrdersGrid extends AbstractConstraint
2121
*
2222
* @param OrderInjectable[] $orders
2323
* @param OrderIndex $orderIndex
24-
* @param array $statuses
24+
* @param array $orderStatuses
2525
* @param AssertOrderInOrdersGrid $assertOrderInOrdersGrid
2626
* @return void
2727
*/
2828
public function processAssert(
2929
$orders,
3030
OrderIndex $orderIndex,
31-
array $statuses,
31+
array $orderStatuses,
3232
AssertOrderInOrdersGrid $assertOrderInOrdersGrid
3333
) {
3434
$orderIndex->open();
3535
foreach ($orders as $key => $order) {
36-
$assertOrderInOrdersGrid->assert($order, $orderIndex, $statuses[$key]);
36+
$assertOrderInOrdersGrid->assert($order, $orderIndex, $orderStatuses[$key]);
3737
}
3838
}
3939

dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsGrid.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ public function processAssert(ShipmentIndex $shipmentIndex, OrderInjectable $ord
3232
foreach ($ids['shipmentIds'] as $key => $shipmentIds) {
3333
$filter = [
3434
'id' => $shipmentIds,
35-
'order_id' => $orderId,
35+
'order_id' => $orderId
36+
];
37+
$filterQty = [
3638
'total_qty_from' => $totalQty[$key],
3739
'total_qty_to' => $totalQty[$key],
3840
];
41+
$shipmentIndex->getShipmentsGrid()->search($filter + $filterQty);
3942
\PHPUnit_Framework_Assert::assertTrue(
40-
$shipmentIndex->getShipmentsGrid()->isRowVisible($filter),
43+
$shipmentIndex->getShipmentsGrid()->isRowVisible($filter, false),
4144
'Shipment is absent in shipment grid on shipment index page.'
4245
);
4346
}

0 commit comments

Comments
 (0)