opensupports/tests/staff/get-new-tickets.rb

15 lines
410 B
Ruby
Raw Normal View History

describe '/staff/get-new-tickets' do
request('/user/logout')
Scripts.login($staff[:email], $staff[:password], true)
it 'should get news tickets' do
result = request('/staff/get-new-tickets', {
csrf_userid: $csrf_userid,
csrf_token: $csrf_token
})
(result['status']).should.equal('success')
2018-10-29 23:32:03 +01:00
(result['data'].size).should.equal(9)
end
2018-07-14 20:11:38 +02:00
end