Skip to content

Commit 67c86ec

Browse files
author
Dmytro Aponasenko
committed
MTA-2723: Functional test maintenance. Part 2
1 parent 4fb2147 commit 67c86ec

File tree

8 files changed

+18
-17
lines changed

8 files changed

+18
-17
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Block/Widget/Grid.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ public function resetFilter()
302302
{
303303
$this->waitLoader();
304304
$this->_rootElement->find($this->resetButton)->click();
305-
$this->waitForElementVisible($this->loader);
306305
$this->waitLoader();
307306
}
308307

dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/CustomerGrid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class CustomerGrid extends DataGrid
3939
'input' => 'select',
4040
],
4141
'entity_id_from' => [
42-
'selector' => '[name="filters[entity_id][from]"]',
42+
'selector' => '[name="entity_id[from]"]',
4343
],
4444
'entity_id_to' => [
45-
'selector' => '[name="filters[entity_id][to]"]',
45+
'selector' => '[name="entity_id[to]"]',
4646
],
4747
];
4848
}

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/CreditMemo/Grid.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ class Grid extends \Magento\Ui\Test\Block\Adminhtml\DataGrid
2525
*/
2626
protected $filters = [
2727
'id' => [
28-
'selector' => 'input[name="filters[increment_id]"]',
28+
'selector' => 'input[name="increment_id"]',
2929
],
3030
'order_id' => [
31-
'selector' => 'input[name="filters[order_increment_id]"]',
31+
'selector' => 'input[name="order_increment_id"]',
3232
],
3333
'grand_total_from' => [
34-
'selector' => 'input[name="filters[base_grand_total][from]"]',
34+
'selector' => 'input[name="base_grand_total[from]"]',
3535
],
3636
'grand_total_to' => [
37-
'selector' => 'input[name="filters[base_grand_total][to]"]',
37+
'selector' => 'input[name="base_grand_total[to]"]',
3838
],
3939
];
4040
}

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Invoice/Grid.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ class Grid extends \Magento\Ui\Test\Block\Adminhtml\DataGrid
1818
*/
1919
protected $filters = [
2020
'id' => [
21-
'selector' => 'input[name="filters[increment_id]"]',
21+
'selector' => 'input[name="increment_id"]',
2222
],
2323
'order_id' => [
24-
'selector' => 'input[name="filters[order_increment_id]"]',
24+
'selector' => 'input[name="order_increment_id"]',
2525
],
2626
'grand_total_from' => [
27-
'selector' => 'input[name="filters[grand_total][from]"]',
27+
'selector' => 'input[name="grand_total[from]"]',
2828
],
2929
'grand_total_to' => [
30-
'selector' => 'input[name="filters[grand_total][to]"]',
30+
'selector' => 'input[name="grand_total[to]"]',
3131
],
3232
];
3333

dev/tests/functional/tests/app/Magento/Sales/Test/Handler/OrderInjectable/Webapi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Webapi extends AbstractWebapi implements OrderInjectableInterface
3131
],
3232
'country_id' => [
3333
'United States' => 'US',
34+
'United Kingdom' => 'GB',
3435
],
3536
];
3637

dev/tests/functional/tests/app/Magento/Shipping/Test/Block/Adminhtml/Shipment/Grid.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ class Grid extends GridInterface
2727
*/
2828
protected $filters = [
2929
'id' => [
30-
'selector' => 'input[name="filters[increment_id]"]',
30+
'selector' => 'input[name="increment_id"]',
3131
],
3232
'order_id' => [
33-
'selector' => 'input[name="filters[order_increment_id]"]',
33+
'selector' => 'input[name="order_increment_id"]',
3434
],
3535
'total_qty_from' => [
36-
'selector' => 'input[name="filters[total_qty][from]"]',
36+
'selector' => 'input[name="total_qty[from]"',
3737
],
3838
'total_qty_to' => [
39-
'selector' => 'input[name="filters[total_qty][to]"]',
39+
'selector' => 'input[name="total_qty][to]"',
4040
],
4141
];
4242
}

dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/ApplyTaxBasedOnVatIdTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<data name="customerGroup" xsi:type="string">valid_intra_union_group</data>
2020
<data name="cart/data/subtotal" xsi:type="string">10</data>
2121
<data name="cart/data/tax_amount" xsi:type="string">2</data>
22-
<data name="cart/data/grand_total" xsi:type="string">12</data>
22+
<data name="cart/data/grand_total" xsi:type="string">17</data>
2323
<data name="prices" xsi:type="array">
2424
<item name="grandTotal" xsi:type="string">17</item>
2525
</data>

dev/tests/functional/tests/app/Magento/Ui/Test/Block/Adminhtml/DataGrid.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,9 @@ protected function selectItems(array $items)
307307
/**
308308
* Sort grid by field.
309309
*
310-
* @param $field
310+
* @param string $field
311311
* @param string $sort
312+
* @return void
312313
*/
313314
public function sortGridByField($field, $sort = "desc")
314315
{

0 commit comments

Comments
 (0)