-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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] use action group for go to orders grid page #28925
[MFTF] use action group for go to orders grid page #28925
Conversation
Hi @Usik2203. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
Hi @Usik2203. You don't need to run all tests in such cases since it might be really slow. It's enough to run the functional tests only. |
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminOpenOrdersPageActionGroup"> |
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.
Wouldn't it be better to have AdminOrdersPageOpenActionGroup
? This way all other Action Groups related to Orders Page would be close in list to each other, even in Autosuggestion in PHPStorm:
Eg. when you start to type AdminOrderPage
and you see hints:
OpenActionGroup
ClickFirstActionGroup
etc. :)
@magento run Functional Tests CE , Functional Tests EE , Functional Tests B2B tests |
@magento run Functional Tests B2B |
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.
✔️ Perfect catch! Thank you for your input.
Hi @lbajsarowicz, thank you for the review. |
Hi @rogyar, thank you for the review. |
Notice: QA not applicable |
@magento run all tests |
Failed Functional Tests B2B - not related to changes in this Pull Request. |
Hi @Usik2203, thank you for your contribution! |
This PR use
<actionGroup ref="AdminOpenOrdersPageActionGroup" stepKey="goToOrders"/>
for navigation on Orders page instead<amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPage"/>
<waitForPageLoad stepKey="waitForOrdersPageLoad"/>