Skip to content

Commit 82ad207

Browse files
committed
MAGETWO-60818: [FT] Incorrect array index 'frontend_type' in the CreateBundleProductEntityTest
1 parent b56df96 commit 82ad207

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function () use ($browser, $selector) {
9595
);
9696
$this->_rootElement->find($this->customizeButton)->click();
9797
$this->waitForElementVisible($this->addToCart);
98+
$this->waitForElementVisible($this->visibleOptions, Locator::SELECTOR_XPATH);
9899
}
99100

100101
/**

dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Catalog/Product/View/Type/Option/Hidden.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
<mapping strict="1">
99
<fields>
1010
<qty>
11-
<selector>//input[contains(@class,"qty")]</selector>
12-
<strategy>xpath</strategy>
11+
<selector>input.qty</selector>
1312
<class>Magento\Bundle\Test\Block\Catalog\Product\View\Type\Option\Element\Qty</class>
1413
</qty>
1514
</fields>

dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleProductForm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ protected function prepareFixtureData(array $data, array $sortFields = [])
5252
protected function prepareBundleOptions(array $bundleSelections)
5353
{
5454
foreach ($bundleSelections as &$item) {
55+
unset($item['frontend_type']);
5556
foreach ($item['assigned_products'] as &$selection) {
5657
$selection['data']['getProductName'] = $selection['search_data']['name'];
5758
$selection = $selection['data'];

dev/tests/functional/tests/app/Magento/Bundle/Test/Repository/BundleProduct/CheckoutData.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@
353353
<item name="3" xsi:type="array">
354354
<item name="title" xsi:type="string">Multiple Select Option</item>
355355
<item name="type" xsi:type="string">Multiple</item>
356+
<item name="frontend_type" xsi:type="string">Multiple</item>
356357
<item name="value" xsi:type="array">
357358
<item name="name" xsi:type="string">product_100_dollar</item>
358359
</item>
@@ -367,6 +368,7 @@
367368
<item name="0" xsi:type="array">
368369
<item name="title" xsi:type="string">Drop-down Option</item>
369370
<item name="type" xsi:type="string">Drop-down</item>
371+
<item name="frontend_type" xsi:type="string">Drop-down</item>
370372
<item name="value" xsi:type="array">
371373
<item name="name" xsi:type="string">Test simple product</item>
372374
</item>

0 commit comments

Comments
 (0)