Fix permissions tests
This commit is contained in:
parent
d0b01e774c
commit
da01977414
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ describe('L.Permissions', function () {
|
||||||
|
|
||||||
it('should not allow share_status nor owner', function () {
|
it('should not allow share_status nor owner', function () {
|
||||||
this.map.permissions.options.anonymous_edit_url = 'http://anonymous.url'
|
this.map.permissions.options.anonymous_edit_url = 'http://anonymous.url'
|
||||||
delete this.map.permissions.options.owner
|
delete this.map.options.permissions.owner
|
||||||
button = qs('a.update-map-permissions')
|
button = qs('a.update-map-permissions')
|
||||||
happen.click(button)
|
happen.click(button)
|
||||||
expect(qs('select[name="share_status"]')).not.to.be.ok
|
expect(qs('select[name="share_status"]')).not.to.be.ok
|
||||||
|
@ -48,8 +48,8 @@ describe('L.Permissions', function () {
|
||||||
var button
|
var button
|
||||||
|
|
||||||
it('should only allow editors', function () {
|
it('should only allow editors', function () {
|
||||||
this.map.permissions.options.owner = { id: 1, url: '/url', name: 'jojo' }
|
this.map.options.permissions.owner = { id: 1, url: '/url', name: 'jojo' }
|
||||||
delete this.map.permissions.options.anonymous_edit_url
|
delete this.map.options.permissions.anonymous_edit_url
|
||||||
delete this.map.options.user
|
delete this.map.options.user
|
||||||
button = qs('a.update-map-permissions')
|
button = qs('a.update-map-permissions')
|
||||||
happen.click(button)
|
happen.click(button)
|
||||||
|
|
Loading…
Reference in a new issue