Skip to content

Commit

Permalink
improve error reporting in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
individual-it committed Mar 1, 2021
1 parent 0f33afc commit e0d70f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module.exports = {
const permissionCheckbox = this.getPermissionCheckbox(permission)
const elementID = await this.getVisibleElementID('xpath', permissionCheckbox)
if (elementID === null) {
throw new Error(`Checkbox is not visible for permission ${permission}`)
throw new Error(`Checkbox is not visible for the permission '${permission}'`)
}
await this.api.elementIdClick(elementID)
}
Expand Down

0 comments on commit e0d70f3

Please sign in to comment.