Skip to content

Commit d881897

Browse files
author
Oleksandr Manchenko
committed
MTA-2657: Sync qmt repository with mainline - Sprint 20
- Fixed errors
1 parent a0fa6fd commit d881897

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Price extends \Magento\Catalog\Test\Block\AbstractPriceBlock
2727
'selector' => '.special-price .price',
2828
],
2929
'old_price' => [
30-
'selector' => '.old-price .price',
30+
'selector' => '.old-price .price-wrapper ',
3131
],
3232
'price_from' => [
3333
'selector' => '.price-from .price',

dev/tests/functional/tests/app/Magento/Customer/Test/Repository/Customer.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@
118118
</field>
119119
</dataset>
120120

121+
<dataset name="register_customer">
122+
<field name="firstname" xsi:type="string">John</field>
123+
<field name="lastname" xsi:type="string">Doe</field>
124+
<field name="email" xsi:type="string">JohnDoe_%isolation%@example.com</field>
125+
<field name="password" xsi:type="string">123123q</field>
126+
<field name="password_confirmation" xsi:type="string">123123q</field>
127+
</dataset>
128+
121129
<dataset name="backend_customer">
122130
<field name="firstname" xsi:type="string">John</field>
123131
<field name="lastname" xsi:type="string">Doe%isolation%</field>

dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AssertCartPriceRuleForm extends AbstractConstraint
2626
'actions_serialized',
2727
'from_date',
2828
'to_date',
29-
'id'
29+
'rule_id'
3030
];
3131

3232
/**

dev/tests/functional/tests/app/Magento/SalesRule/Test/Fixture/SalesRule.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
repository_class="Magento\SalesRule\Test\Repository\SalesRule"
1515
handler_interface="Magento\SalesRule\Test\Handler\SalesRule\SalesRuleInterface"
1616
class="Magento\SalesRule\Test\Fixture\SalesRule">
17-
<field name="rule_id" is_required="1" />
17+
<field name="rule_id" is_required="0" group="null"/>
1818
<field name="name" group="rule_information" />
1919
<field name="description" group="rule_information" />
2020
<field name="from_date" group="rule_information" source="Magento\Backend\Test\Fixture\Source\Date" />
@@ -38,7 +38,6 @@
3838
<field name="use_auto_generation" group="rule_information" />
3939
<field name="uses_per_coupon" group="rule_information" />
4040
<field name="simple_free_shipping" group="actions" />
41-
<field name="id" />
4241
<field name="website_ids" group="rule_information" />
4342
<field name="customer_group_ids" group="rule_information" />
4443
<field name="store_labels" group="labels" />

dev/tests/functional/tests/app/Magento/SalesRule/Test/Handler/SalesRule/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function persist(FixtureInterface $fixture = null)
154154
throw new \Exception('Cannot find Sales Rule id');
155155
}
156156

157-
return ['id' => $matches[1]];
157+
return ['rule_id' => $matches[1]];
158158
}
159159

160160
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ class DataGrid extends Grid
8888
protected $actionButton = '.modal-inner-wrap .action-secondary';
8989

9090
/**
91-
* Column header locator
91+
* Column header locator.
9292
*
9393
* @var string
9494
*/
95-
protected $columnHeader = "//th/span[.='%s']";
95+
protected $columnHeader = './/*[@data-role="grid-wrapper"]//th/span[.="%s"]';
9696

9797
/**
9898
* @var string

0 commit comments

Comments
 (0)