Files
Ferdinand Thiessen 26d03ea141 test(workflowengine): add Playwright coverage for the flow settings
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
2026-09-30 14:47:14 +02:00

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()
})
})