-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[MFTF] Use action group for logout #28942
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 logout #28942
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 Functional Tests CE , Functional Tests EE , 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.
✔️ Nice catch! I remember that I've done it once or twice, but there are still leftovers, as we can see. Appreciate your efforts to get rid of such.
@@ -40,7 +40,7 @@ | |||
<click selector="{{CurrencySetupSection.currencyOptions}}" stepKey="closeOptions"/> | |||
<waitForPageLoad stepKey="waitForCloseOptions"/> | |||
<click stepKey="saveUnselectedConfigs" selector="{{AdminConfigSection.saveButton}}"/> | |||
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/> | |||
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/> |
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.
If you can keep the original stepKey
that would be appreciated, as some developers might have attached their Actions to it.
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
Hi @lbajsarowicz, thank you for the review.
|
@@ -34,7 +34,7 @@ | |||
<actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer"> | |||
<argument name="customerEmail" value="CustomerEntityOne.email"/> | |||
</actionGroup> | |||
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/> | |||
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/> |
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.
If you can keep the original stepKey
that would be appreciated, as some developers might have attached their Actions to it.
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 Functional Tests EE |
@magento run Functional Tests CE , Functional Tests EE , Functional Tests B2B |
@magento run Functional Tests EE |
Notice: QA not applicable |
@magento run all tests |
Hi @Usik2203, thank you for your contribution! |
Use
<actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
for logout instead<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>