Guillermo - staff-get-new-tickets[skip ci]
This commit is contained in:
parent
d9124eb21a
commit
2e1b7d78f2
|
@ -30,5 +30,6 @@ require './staff/assign-ticket.rb'
|
|||
require './staff/un-assign-ticket.rb'
|
||||
require './staff/get-tickets.rb'
|
||||
require './ticket/change-priority.rb'
|
||||
require './staff/get-new-tickets.rb'
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
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')
|
||||
(result['data'].size).should.equal(7)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue