-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[MFTF] Check visibility block only x product left for simple product #27549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MFTF] Check visibility block only x product left for simple product #27549
Conversation
Hi @Usik2203. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@magento give me test instance |
Hi @rodrigowebjump. Thank you for your request. I'm working on Magento instance for you |
Hi @rodrigowebjump, here is your new Magento instance. |
Hi @rodrigowebjump |
@magento run all tests |
Hi @rogyar Could I kindly ask you to review this PR ? |
<requiredEntity createDataKey="createCategory"/> | ||
</createData> | ||
<magentoCLI command="config:set {{CatalogInventoryOptionsOnlyXleftThreshold.path}} 10000" stepKey="setStockThresholdQty"/> | ||
<magentoCLI command="cache:flush" stepKey="flushCache"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we replace flushing the cache with clearing the config cache? Flushing the cache slows down the testing routine significantly every time it's invoked.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Done **
@@ -25,5 +25,6 @@ | |||
<element name="customOptionDropDown" type="select" selector="//*[@id='product-options-wrapper']//select[contains(@class, 'product-custom-option admin__control-select')]"/> | |||
<element name="qtyInputWithProduct" type="input" selector="//tr//strong[contains(.,'{{productName}}')]/../../td[@class='col qty']//input" parameterized="true"/> | |||
<element name="customOptionRadio" type="input" selector="//span[contains(text(),'{{customOption}}')]/../../input" parameterized="true"/> | |||
<element name="onlyProductsLeft" type="block" selector="//div[@class='availability only']"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, make the selector of this element more sophisticated. Like, include some parent classes as well. There's a chance of a second element on the page with "availability only" class.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@magento run all tests |
Hi @rogyar |
Hi @rogyar, thank you for the review. |
✔️ QA Passed |
@magento create issue |
@magento run all tests |
Hi @Usik2203, thank you for your contribution! |
Description (*)
This MFTF test checks visibility only x product left block for simple product

Resolved issues: