2016-10-18 05:35:16 +02:00
|
|
|
describe '/staff/get-new-tickets' do
|
2021-11-05 21:06:08 +01:00
|
|
|
Scripts.logout()
|
2016-10-18 05:35:16 +02:00
|
|
|
Scripts.login($staff[:email], $staff[:password], true)
|
|
|
|
|
2018-11-16 00:33:08 +01:00
|
|
|
it 'should get new tickets' do
|
2016-10-18 05:35:16 +02:00
|
|
|
result = request('/staff/get-new-tickets', {
|
2018-11-16 00:33:08 +01:00
|
|
|
page: 1,
|
2016-10-18 05:35:16 +02:00
|
|
|
csrf_userid: $csrf_userid,
|
|
|
|
csrf_token: $csrf_token
|
|
|
|
})
|
|
|
|
|
|
|
|
(result['status']).should.equal('success')
|
2019-10-01 21:40:30 +02:00
|
|
|
(result['data']['tickets'].size).should.equal(10)
|
2016-10-18 05:35:16 +02:00
|
|
|
end
|
2018-07-14 20:11:38 +02:00
|
|
|
end
|