Skip to content

Commit 395ab3e

Browse files
author
Dmytro Aponasenko
committed
MTA-2350: Add wait to form element before filling a value
1 parent d38a7a0 commit 395ab3e

File tree

26 files changed

+95
-286
lines changed

26 files changed

+95
-286
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Block/System/Config/Form/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Magento\Backend\Test\Block\System\Config\Form;
1010

1111
use Magento\Mtf\Client\Locator;
12-
use Magento\Backend\Test\Block\Widget\Form;
12+
use Magento\Mtf\Block\Form;
1313

1414
/**
1515
* Class Group

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

Lines changed: 0 additions & 199 deletions
This file was deleted.

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\Backend\Test\Block\Widget;
88

99
use Magento\Mtf\Block\BlockFactory;
10+
use Magento\Mtf\Block\Form;
1011
use Magento\Mtf\Block\Mapper;
1112
use Magento\Mtf\Client\Locator;
1213
use Magento\Mtf\Client\ElementInterface;
@@ -99,12 +100,10 @@ protected function fillTabs(array $tabs, SimpleElement $element = null)
99100
/**
100101
* Fill fields which weren't found on filled tabs
101102
*
102-
* @param array $tabs
103103
* @throws \Exception
104-
*
105104
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
106105
*/
107-
protected function fillMissedFields(array $tabs)
106+
protected function fillMissedFields()
108107
{
109108
foreach ($this->tabs as $tabName => $tabData) {
110109
$tab = $this->getTab($tabName);

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Action/Attribute.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Magento\Catalog\Test\Block\Adminhtml\Product\Edit\Action;
88

99
use Magento\Mtf\Fixture\FixtureInterface;
10-
use Magento\Backend\Test\Block\Widget\Form;
10+
use Magento\Mtf\Block\Form;
1111
use Magento\Mtf\Client\Element\SimpleElement;
1212

1313
/**
@@ -25,6 +25,7 @@ class Attribute extends Form
2525
public function fill(FixtureInterface $fixture, SimpleElement $element = null)
2626
{
2727
$data = $fixture->getData();
28+
$fields = [];
2829
foreach ($data as $name => $dataValue) {
2930
$fields['toggle_' . $name] = 'Yes';
3031
$fields[$name] = $dataValue;

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/ProductDetails/NewCategoryIds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Magento\Catalog\Test\Block\Adminhtml\Product\Edit\Tab\ProductDetails;
88

99
use Magento\Catalog\Test\Fixture\Category;
10-
use Magento\Backend\Test\Block\Widget\Form;
10+
use Magento\Mtf\Block\Form;
1111

1212
/**
1313
* Create new category.

dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Block/Adminhtml/Edit/SearchTermForm.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66

77
namespace Magento\CatalogSearch\Test\Block\Adminhtml\Edit;
88

9-
use Magento\Backend\Test\Block\Widget\Form as WidgetForm;
9+
use Magento\Mtf\Block\Form as WidgetForm;
1010

1111
/**
12-
* Class Form
13-
* Form for search term
12+
* Form for search term.
1413
*/
1514
class SearchTermForm extends WidgetForm
1615
{

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/AffectedAttributeSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Mtf\Client\Locator;
1111
use Magento\Mtf\Fixture\FixtureInterface;
1212
use Magento\Mtf\Client\Element\SimpleElement;
13-
use Magento\Backend\Test\Block\Widget\Form as ParentForm;
13+
use Magento\Mtf\Block\Form as ParentForm;
1414

1515
/**
1616
* Class AffectedAttributeSet

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Magento\ConfigurableProduct\Test\Block\Adminhtml\Product\Edit\Tab\Super\Config;
88

9-
use Magento\Backend\Test\Block\Widget\Form;
9+
use Magento\Mtf\Block\Form;
1010
use Magento\ConfigurableProduct\Test\Block\Adminhtml\Product\Edit\Tab\Super\Config\Attribute\AttributeSelector;
1111
use Magento\Mtf\Client\Element\SimpleElement;
1212
use Magento\Mtf\Client\Locator;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use Magento\Mtf\Client\Locator;
1010
use Magento\Backend\Test\Block\Template;
11-
use Magento\Backend\Test\Block\Widget\Form;
11+
use Magento\Mtf\Block\Form;
1212
use Magento\Mtf\Client\Element\SimpleElement;
1313

1414
/**

dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Group/Edit/Form.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@
66

77
namespace Magento\Customer\Test\Block\Adminhtml\Group\Edit;
88

9-
use Magento\Backend\Test\Block\Widget\Form as AbstractForm;
10-
119
/**
12-
* Class Form
13-
* Customer group edit form
14-
*
15-
* @package Magento\Customer\Test\Block\Adminhtml\Group\Edit
10+
* Customer group edit form.
1611
*/
17-
class Form extends AbstractForm
12+
class Form extends \Magento\Mtf\Block\Form
1813
{
1914
//
2015
}

0 commit comments

Comments
 (0)