-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[WIP] Extracting MFTF tests in separate test files #27154
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
Conversation
Hi @eduard13. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@eduard13 awesome! |
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 you also replace all the occurences of LoginAsAdmin
in changed files to AdminLoginActionGroup
?
Thanks!
|
||
<before> | ||
<createData entity="ApiCategory" stepKey="createCategory"/> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
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.
Use AdminLoginActionGroup
instead.
<requiredEntity createDataKey="createConfigChildProduct6"/> | ||
</createData> | ||
|
||
<actionGroup ref="LoginAsAdmin" stepKey="login"/> |
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.
Use AdminLoginActionGroup
instead
<see selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="option2" stepKey="seeOption2Storefront"/> | ||
|
||
<!--go to admin and disable an option--> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
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.
Use AdminLoginActionGroup
instead
Hi @lbajsarowicz thank you for the suggestions, was planning to do that after finishing with all the modules. |
Don't change the names unless my PRs related to change Test names is merged, please. |
Agreed, thank you for letting me know. |
@eduard13 The PRs I've mentioned:
MSI has very poor quality Functional Tests, so there's extra work needed. |
Hi @lbajsarowicz, I'd like to proceed with the other modules in a separate PR, in order to provide these changes is a smaller bunches (also if there will be some conflicts, will be easier to manage them). What do you think? |
@eduard13 doing changes per module is the easiest way of doing major changes. My changes to action groups were waiting 7 months for review (single pr) so I split them per module and in 3 months - were merged 😀 The failed tests are not related to your changes |
Hi @eduard13, thank you for your contribution! |
Description (*)
This PR extracts the MFTF tests into separate test files based on the MFTF Best Practices for the following modules:
Additionally, it also replaces the admin logging out
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/>
action byAdminLogoutActionGroup
action group.Related Pull Requests
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
N/A
Questions or comments
Contribution checklist (*)