Skip to content

Commit ae304ac

Browse files
committed
magento/magento#23005 static-functional-test-fix
1 parent 6833c61 commit ae304ac

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/code/Magento/Sales/Setup/Patch/Data/UpdateCreditmemoGridCurrencyCode.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1313
use Magento\Sales\Setup\SalesSetupFactory;
1414

15+
/**
16+
* Update credit memo grid currency code.
17+
*/
1518
class UpdateCreditmemoGridCurrencyCode implements DataPatchInterface, PatchVersionInterface
1619
{
1720
/**
@@ -45,7 +48,7 @@ public function apply()
4548
$connection = $salesSetup->getConnection();
4649
$creditMemoGridTable = $salesSetup->getTable('sales_creditmemo_grid');
4750
$orderTable = $salesSetup->getTable('sales_order');
48-
51+
// phpcs:disable Magento2.SQL.RawQuery
4952
$sql = "UPDATE {$creditMemoGridTable} AS scg
5053
JOIN {$orderTable} AS so ON so.entity_id = scg.order_id
5154
SET scg.order_currency_code = so.order_currency_code,

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderInvoicesTabSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<element name="filters" type="button" selector="//div[@id='sales_order_view_tabs_order_invoices_content']//button[@data-action='grid-filter-expand']" timeout="30"/>
1818
<element name="applyFilters" type="button" selector="//div[@id='sales_order_view_tabs_order_invoices_content']//button[@data-action='grid-filter-apply']" timeout="30"/>
1919
<element name="invoiceId" type="input" selector="//div[@id='sales_order_view_tabs_order_invoices_content']//input[@name='increment_id']" timeout="30"/>
20-
<element name="amountFrom" type="input" selector="[name='grand_total[from]']" timeout="30"/>
21-
<element name="amountTo" type="input" selector="[name='grand_total[to]']" timeout="30"/>
20+
<element name="amountFrom" type="input" selector="[name='base_grand_total[from]']" timeout="30"/>
21+
<element name="amountTo" type="input" selector="[name='base_grand_total[to]']" timeout="30"/>
2222
</section>
2323
</sections>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class Grid extends \Magento\Ui\Test\Block\Adminhtml\DataGrid
2424
'selector' => 'input[name="order_increment_id"]',
2525
],
2626
'grand_total_from' => [
27-
'selector' => 'input[name="grand_total[from]"]',
27+
'selector' => 'input[name="base_grand_total[from]"]',
2828
],
2929
'grand_total_to' => [
30-
'selector' => 'input[name="grand_total[to]"]',
30+
'selector' => 'input[name="base_grand_total[to]"]',
3131
],
3232
];
3333

0 commit comments

Comments
 (0)