Skip to content

Commit b250801

Browse files
committed
MC-39911: [MFTF] AdminFPTIncludingAndExcludingTaxVisibleOnNegotiableQuotePageTest fails because of bad design
1 parent f612499 commit b250801

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminDeleteAllProductAttributesFilteredByCodeActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<!-- It sometimes is loading too long for default 10s -->
2020
<waitForPageLoad time="60" stepKey="waitForPageFullyLoaded"/>
2121
<click selector="{{AdminProductAttributeGridSection.ResetFilter}}" stepKey="clearExistingFilters"/>
22-
<fillField selector="{{AdminProductAttributeGridSection.attributeCodeFilter}}" userInput="{{codeFilter}}" stepKey="fillAttributeCodeFilterField"/>
22+
<fillField selector="{{AdminProductAttributeGridSection.FilterByAttributeCode}}" userInput="{{codeFilter}}" stepKey="fillAttributeCodeFilterField"/>
2323
<click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="applyGridFilter"/>
2424
<helper class="\Magento\Catalog\Test\Mftf\Helper\CatalogHelper" method="deleteAllProductAttributesOneByOne" stepKey="deleteAllProductAttributesOneByOne">
2525
<argument name="notEmptyRow">{{AdminDataGridTableSection.firstNotEmptyRow2}}</argument>

app/code/Magento/Catalog/Test/Mftf/Helper/CatalogHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CatalogHelper extends Helper
2020
/**
2121
* Delete all product attributes one by one.
2222
*
23-
* @param string $firstNotEmptyRow
23+
* @param string $notEmptyRow
2424
* @param string $modalAcceptButton
2525
* @param string $deleteButton
2626
* @param string $successMessageContainer
@@ -45,10 +45,10 @@ public function deleteAllProductAttributesOneByOne(
4545
$magentoWebDriver->waitForPageLoad(30);
4646
$magentoWebDriver->click($deleteButton);
4747
$magentoWebDriver->waitForPageLoad(30);
48-
$magentoWebDriver->waitForElementVisible($modalAcceptButton, 10);
48+
$magentoWebDriver->waitForElementVisible($modalAcceptButton);
4949
$magentoWebDriver->click($modalAcceptButton);
5050
$magentoWebDriver->waitForPageLoad(60);
51-
$magentoWebDriver->waitForElementVisible($successMessageContainer, 10);
51+
$magentoWebDriver->waitForElementVisible($successMessageContainer);
5252
$magentoWebDriver->see($successMessage, $successMessageContainer);
5353
$gridRows = $webDriver->findElements(WebDriverBy::cssSelector($notEmptyRow));
5454
}

app/code/Magento/Catalog/Test/Mftf/Section/AdminProductAttributeGridSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<element name="FirstRow" type="button" selector="//*[@id='attributeGrid_table']/tbody/tr[1]" timeout="30"/>
1818
<element name="FilterByAttributeCode" type="input" selector="#attributeGrid_filter_attribute_code"/>
1919
<element name="attributeLabelFilter" type="input" selector="//input[@name='frontend_label']"/>
20-
<element name="attributeCodeFilter" type="input" selector=".data-grid-filters input[name='attribute_code']"/>
2120
<element name="attributeCodeColumn" type="text" selector="//div[@id='attributeGrid']//td[contains(@class,'col-attr-code col-attribute_code')]"/>
2221
<element name="defaultLabelColumn" type="text" selector="//div[@id='attributeGrid']//table[@id='attributeGrid_table']//tbody//td[contains(@class,'col-label col-frontend_label')]"/>
2322
<element name="isVisibleColumn" type="text" selector="//div[@id='attributeGrid']//td[contains(@class,'a-center col-is_visible')]"/>

0 commit comments

Comments
 (0)