Skip to content
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

#450 : [MFTF] User searches for images from the same series as the currently viewed one #543

Merged

Conversation

konarshankar07
Copy link
Contributor

Description (*)

This PR is regarding MFTF testing for the series filter which is not visible in the Adobe grid

Fixed Issues (if relevant)

  1. [MFTF] User searches for images from the same series as the currently viewed one #450: [MFTF] User searches for images from the same series as the currently viewed one

@sivaschenko sivaschenko force-pushed the 450-mftf-series-filter-test branch from 511dde8 to 0abbf61 Compare October 27, 2019 10:25
Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @konarshankar07 , thanks for the pull request! See my review notes.

Comment on lines 27 to 34
<grabAttributeFrom selector="{{AdobeStockSection.firstImageId}}" userInput="data-id"
stepKey="getFilteredId"/>
<click selector="{{AdobeStockFilterSection.filters}}" stepKey="expandFilters"/>
<waitForPageLoad stepKey="waitForFiltersOpen"/>
<actionGroup ref="AssertIsNotVisibleAdobeStockFilterElementActionGroup" stepKey="checkSerieIdFilter">
<argument name="filterName" value="Serie Id"/>
</actionGroup>
<click selector="{{AdobeStockFilterSection.cancelFilters}}" stepKey="cancelFilters"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this section is necessary for the test. The test should assume the grid is in vanilla state and no filters are applied.

Returning the grid to initial state is a responsibility of after action groups - see resetAdminDataGridToDefaultView

Copy link
Contributor Author

@konarshankar07 konarshankar07 Oct 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @sivaschenko ,
I added this section to confirm that serie id filter is not visible in the filter section. If you still want to remove then its fine.

Comment on lines 29 to 30
<click selector="{{AdobeStockFilterSection.filters}}" stepKey="expandFilters"/>
<waitForPageLoad stepKey="waitForFiltersOpen"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use AdminAdobeStockExpandFiltersActionGroup instead of this two lines

</actionGroup>
<click selector="{{AdobeStockFilterSection.cancelFilters}}" stepKey="cancelFilters"/>
<actionGroup ref="AdminAdobeStockExpandImagePreviewActionGroup" stepKey="expandImagePreview"/>
<actionGroup ref="AdminAdobeStockApplySameSeriesFilter" stepKey="applySerieFilter"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action group name should have ActionGroup suffix, otherwise the exception is thrown during generation:

In TestGenerator.php line 245:
                                                                           
Could not find ActionGroup by ref "AdminAdobeStockApplySameSeriesFilterActionGroup"
in Test "AdminAdobeStockSeeMoreSeriesFilterTest"                    
AdobeStockImageAdminUi/Test/Mftf/Test/AdminAdobeStockSeeMoreSeriesFilterTest.xml

@sivaschenko sivaschenko merged commit 5546946 into magento:develop Oct 29, 2019
@ghost
Copy link

ghost commented Oct 29, 2019

Hi @konarshankar07, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@konarshankar07 konarshankar07 deleted the 450-mftf-series-filter-test branch October 30, 2019 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants