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

[WIP] #1802: The "three dots" context menu is not closed after unsuccessful licensing from Media Gallery #1826

Conversation

joweecaquicla
Copy link

Description (*)

This PR will introduce the MFTF test for the fix on #1802. Link of the fix's PR: magento/magento2#29967

Fixed Issues (if relevant)

  1. Fixes magento/adobe-stock-integration The "three dots" context menu is not closed after unsuccessful licensing from Media Gallery  #1802: The "three dots" context menu is not closed after unsuccessful licensing from Media Gallery
  2. ...

Manual testing scenarios (*)

  1. ...
  2. ...

joiecaquicla added 4 commits September 8, 2020 02:37
…ssful licensing from Media Gallery - closed context menu after unsuccessful licensing
…ion into 1802-context-menu-not-closed-after-unsuccessful-licensing-from-media-gallery
…ssful licensing from Media Gallery - removed changes in licenseActions.js and created mftf test file
…ssful licensing from Media Gallery - updated mftf test files
@m2-community-project
Copy link

@joweecaquicla unfortunately, only members of the maintainers team are allowed to assign developers to the pull request

@m2-community-project
Copy link

@joweecaquicla unfortunately, only members of the maintainers team are allowed to unassign developers from the pull request

@joweecaquicla
Copy link
Author

@magento run Functional Tests EE, Functional Tests CE, Functional Tests B2B

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.

Thanks for the test @joweecaquicla ! Please see my comments

@@ -9,5 +9,6 @@
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
<section name="AdminEnhancedMediaGalleryImageActionsSection">
<element name="license" type="button" selector="[data-ui-id='action-license']"/>
<element name="contextMenu" type="block" selector="//div[@class='media-gallery-image']//ul[@class='action-menu _active']//li//a[@class='action-menu-item']"/>
Copy link
Member

Choose a reason for hiding this comment

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

I'd rename this element to the contextMenuItem and move it to MediaGalleryUi (as this is the module introducing this menu)

<actionGroup ref="AdminAdobeStockImsPopupSignInFillUserDataActionGroup" stepKey="fillUserCredentials"/>
<actionGroup ref="AdminAdobeStockImsPopupClickSignInActionGroup" stepKey="clickSignInImsPopup"/>
<waitForElementVisible selector="{{AdminMessagesSection.errorMessage}}" stepKey="waitErrorMessage"/>
<dontSeeElement selector="{{AdminEnhancedMediaGalleryImageActionsSection.contextMenu}}" stepKey="verifyContextMenuIsClosed" />
Copy link
Member

Choose a reason for hiding this comment

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

Let's extract this check to AssetAdminMediaGalleryContextMenuOpenedGroup (and place it in the MediaGalleryUi module)

…ssful licensing from Media Gallery - modified test and section
@sivaschenko sivaschenko merged commit c68f8a2 into magento:2.1-develop Sep 12, 2020
@ghost
Copy link

ghost commented Sep 12, 2020

Hi @joweecaquicla, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The "three dots" context menu is not closed after unsuccessful licensing from Media Gallery
2 participants