-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Tests for: magento/magento2#25585, magento/magento2#25248, magento/magento2#25058. #25853
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 @p-bystritsky. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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.
All the repetitive tasks should be extracted from Tests into Action Groups.
The main recommendation is that the Test should contain mostly Action Groups (with small exceptions)
<amOnPage url="{{StorefrontProductComparePage.url}}" stepKey="navigateToComparePage"/> | ||
<waitForPageLoad stepKey="waitForStorefrontProductComparePageLoad"/> |
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.
And this one with StorefrontOpenAndCheckComparisionActionGroup
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.
This Action Group is not applicable from the Product Page.
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.
Consider looking for other, creating your own
<!--Assert success message--> | ||
<grabTextFrom selector="{{AdminProductMessagesSection.successMessage}}" stepKey="grabTextFromSuccessMessage"/> | ||
<assertEquals expected='You added product $$createProductDefault.name$$ to the comparison list.' expectedType="string" | ||
actual="($grabTextFromSuccessMessage)" stepKey="assertSuccessMessage"/> |
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.
This section could be replaced - for example - with StorefrontAddProductToCompareActionGroup
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.
Updated
<!--Assert success message--> | ||
<grabTextFrom selector="{{AdminProductMessagesSection.successMessage}}" stepKey="grabTextFromSuccessMessageCustom"/> | ||
<assertEquals expected='You added product $$createProductCustom.name$$ to the comparison list.' expectedType="string" | ||
actual="($grabTextFromSuccessMessageCustom)" stepKey="assertSuccessMessageCustom"/> |
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.
StorefrontAddProductToCompareActionGroup
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.
Updated
0901d1e
to
386f4d2
Compare
@lbajsarowicz updated. |
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.
You still need to extract repetitive actions to ActionGroups.
@lbajsarowicz I don't know what else can be extracted to action groups. |
Hi @lbajsarowicz, thank you for the review. |
Notice: QA not applicable |
@p-bystritsky Thanks. The main code is merged. Tests were updated by myself. |
Hi @p-bystritsky, thank you for your contribution! |
Description (*)
Tests for: #25585, #25248, #25058.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)