Guillermo - path and tests staff/last-events [skip ci]
This commit is contained in:
parent
af4853ed51
commit
78e3a4383a
|
@ -0,0 +1,16 @@
|
|||
describe '/staff/last-events' do
|
||||
request('/user/logout')
|
||||
Scripts.login($staff[:email], $staff[:password], true)
|
||||
|
||||
it 'should get last events' do
|
||||
|
||||
result = request('/staff/last-events', {
|
||||
page: 1,
|
||||
csrf_userid: $csrf_userid,
|
||||
csrf_token: $csrf_token
|
||||
})
|
||||
|
||||
(result['status']).should.equal('success')
|
||||
(result['data'].size).should.equal(10)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue