2016-10-18 05:35:16 +02:00
|
|
|
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)
|
2016-10-18 05:35:16 +02:00
|
|
|
end
|
2018-07-14 20:11:38 +02:00
|
|
|
end
|