Skip to content

Commit

Permalink
Fix xpath selection for actionPanelItems to get the tests running again
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Apr 23, 2021
1 parent 90b5efa commit e5848ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
@click.stop="action.handler(highlightedFile, action.handlerData)"
>
<oc-icon :name="action.icon" size="medium" />
{{ action.label(highlightedFile) }}
<span class="oc-files-actions-sidebar-action-label">{{
action.label(highlightedFile)
}}</span>
<span
v-if="action.opensInNewWindow"
class="oc-invisible-sr"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ module.exports = {
},
actionPanelItems: {
selector:
'//div[@class="oc-accordion-content"]//li/button | //div[@class="oc-accordion-content"]//li/a',
'//div[@class="oc-accordion-content"]//li/button/span[@class="oc-files-actions-sidebar-action-label"] | //div[@class="oc-accordion-content"]//li/a/span[@class="oc-files-actions-sidebar-action-label"]',
locateStrategy: 'xpath'
}
}
Expand Down

0 comments on commit e5848ad

Please sign in to comment.