Skip to content

Commit

Permalink
added debug statements for failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Sep 7, 2022
1 parent 313c759 commit f6cca23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web-src/tests/unit/admin/ParameterList_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ describe('Test ScriptParamList', function () {
console.log('Found item for ' + paramName + ': ' + (!!item)) // TODO remove
console.log(item.$el.innerHTML) // TODO remove

let button2 = $(item.$el).find('i').filter(() => {
console.log(this.innerHTML.trim())
return (this.innerHTML.trim() === action)
}).get(0);
let button2 = $(item.$el)
.find('a i')
.filter((index, elem) => elem.innerHTML.trim() === action)
.get(0);

const button = getButton(item, action);
console.log('Found button ' + action + ' for ' + paramName + ': ' + (!!button)) // TODO remove
Expand Down

0 comments on commit f6cca23

Please sign in to comment.