Skip to content

Commit

Permalink
Refactor function so that is support both server
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Dec 8, 2021
1 parent b799771 commit 53acaf8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/acceptance/pageObjects/FilesPageElement/filesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,10 @@ module.exports = {
let resourceName = null
await this.getText('xpath', rowSelector, (result) => {
const res = result.value
console.log(res)
resourceName = res.split('\n')
console.log(resourceName)
})
return resourceName[1]
const actualResourceName = client.globals.ocis ? resourceName[1] : resourceName[1] + resourceName[2]
return actualResourceName
},
/**
*
Expand Down

0 comments on commit 53acaf8

Please sign in to comment.