mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 10:37:27 -04:00
test(settings): seed manager setting as JSON array in users_manager spec
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
This commit is contained in:
parent
caabea1534
commit
bbd77ac10b
1 changed files with 6 additions and 2 deletions
|
|
@ -51,8 +51,12 @@ describe('Settings: User Manager Management', function() {
|
|||
})
|
||||
|
||||
it('Can remove a manager through the edit dialog', function() {
|
||||
// Set manager via backend first
|
||||
cy.runOccCommand(`user:setting '${user.userId}' settings manager '${manager.userId}'`)
|
||||
// Set manager via backend first.
|
||||
// User::getManagerUids() decodes this with JSON_THROW_ON_ERROR, so we
|
||||
// must store a JSON array, matching what setManagerUids() writes.
|
||||
// Double-quotes are escaped because runOccCommand passes the command
|
||||
// through `bash -c "..."`, which would otherwise eat them.
|
||||
cy.runOccCommand(`user:setting '${user.userId}' settings manager '[\\"${manager.userId}\\"]'`)
|
||||
|
||||
cy.visit('/settings/users')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue