Skip to content

Commit

Permalink
Allow breadcrumb segment to be a or span tag
Browse files Browse the repository at this point in the history
Since the last breadcrumb segment is not a link anymore, it is either an
a-tag or a span-tag in the DOM. So we have to check for both possible
types instead of just a-tags.
  • Loading branch information
kulmann committed Jul 1, 2020
1 parent fd74e96 commit b1594a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/acceptance/pageObjects/filesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ module.exports = {
selector: '#files-breadcrumb li:nth-of-type(2)'
},
resourceBreadcrumb: {
selector: '//div[@id="files-breadcrumb"]//a[contains(text(),"%s")]',
selector:
'//div[@id="files-breadcrumb"]//*[(self::a or self::span) and contains(text(),"%s")]',
locateStrategy: 'xpath'
},
fileUploadButton: {
Expand Down

0 comments on commit b1594a5

Please sign in to comment.