mirror of
https://github.com/nextcloud/server.git
synced 2026-10-11 23:51:03 +02:00
Covers the admin page end to end: the installed flow card including the colour the files_versions app registers it with, adding and discarding a flow, creating and reloading one, client side validation of the file name, file size and remote address checks, collecting and removing filters, reverting an edit, deleting, the server error message, and each of the six checks that render a custom element. The personal page is covered for the state where no flow is available to users. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Assisted-by: ClaudeCode:claude-opus-5
23 lines
902 B
TypeScript
23 lines
902 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import { expect } from '@playwright/test'
|
|
import { test } from '../../support/fixtures/random-user-session.ts'
|
|
import { WorkflowSettingsPage } from '../../support/sections/WorkflowSettingsPage.ts'
|
|
|
|
test.describe('Flow personal settings', () => {
|
|
test('offers nothing while no flow is available to users', async ({ page }) => {
|
|
const workflowSettings = new WorkflowSettingsPage(page)
|
|
await workflowSettings.open('personal')
|
|
|
|
// the only operation this repository ships is admin scoped
|
|
await expect(workflowSettings.noFlowsInstalled()).toBeVisible()
|
|
await expect(workflowSettings.askAdministratorHint()).toBeVisible()
|
|
|
|
// without an available flow there is nothing to configure either
|
|
await expect(workflowSettings.configuredFlowsHeading()).toBeHidden()
|
|
})
|
|
})
|