Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Mar 31, 2022
1 parent 4cf45b1 commit 28d0c0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ describe('Test explore links', () => {

cy.get('[aria-label="Menu actions trigger"]').click();
cy.get('div[title="Share"]').trigger('mouseover');
cy.get('[data-test="ExploreAdditionalActionsMenu_share"]').within(() => {
// need to use [id= syntax, otherwise error gets triggered because of special character in id
cy.get('[id="share_submenu$Menu"]').within(() => {
cy.contains('Embed code').parent().click();
});
cy.get('#embed-code-popover').within(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,7 @@ const ExploreAdditionalActionsMenu = ({
{t('Download as image')}
</Menu.Item>
</Menu.SubMenu>
<Menu.SubMenu
title={t('Share')}
key={MENU_KEYS.SHARE_SUBMENU}
data-test="ExploreAdditionalActionsMenu_share"
>
<Menu.SubMenu title={t('Share')} key={MENU_KEYS.SHARE_SUBMENU}>
<Menu.Item key={MENU_KEYS.COPY_PERMALINK}>
{t('Copy permalink to clipboard')}
</Menu.Item>
Expand Down

0 comments on commit 28d0c0f

Please sign in to comment.