mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
test(cypress): restore dashboard after app-limit test
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
This commit is contained in:
parent
8e8e8ba1b2
commit
ed5312bc7b
1 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,15 @@ import { handlePasswordConfirmation } from './usersUtils.ts'
|
|||
const admin = new User('admin', 'admin')
|
||||
|
||||
describe('Settings: App management', { testIsolation: true }, () => {
|
||||
after(() => {
|
||||
// 'Limit app usage to group' deselects the admin group without untoggling
|
||||
// the group-limit switch, leaving Dashboard with an empty allow-list and
|
||||
// hiding it from non-admin users. Re-enabling rewrites the app's `enabled`
|
||||
// flag back to `yes`, which restores the `/` redirect to dashboard for
|
||||
// subsequent specs.
|
||||
cy.runOccCommand('app:enable dashboard')
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
// disable QA if already enabled
|
||||
cy.runOccCommand('app:disable -n testing')
|
||||
|
|
|
|||
Loading…
Reference in a new issue