I started using protractor instead which better suites AngularJS projects
describe('filter debtor', ->
beforeEach ->
helper.login()
afterEach ->
helper.logout()
describe "when person", ->
it 'shows the client after creation', ->
browser.get('/api#/clients/new_debtor')
element(By.id("name")).sendKeys("John")
element(By.id("surname")).sendKeys("Smith")
element(By.id("create_btn")).click()
browser.get('/api#/debtors')
element.all(By.model("params.filter()[name]")).last().sendKeys("John")
first=element.all(By.id("listing")).first()
expect(first.getText()).toContain("John Smith")