mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
test: Migrate small Cypress tests to Playwright (#18922)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -59,11 +59,16 @@ export class WorkflowApiHelper {
|
||||
const webhookPrefix = options?.webhookPrefix ?? 'test-webhook';
|
||||
const uniqueSuffix = nanoid(idLength);
|
||||
|
||||
// Make workflow name unique
|
||||
if (workflow.name) {
|
||||
// Make workflow name unique; add a default if missing
|
||||
if (workflow.name && workflow.name.trim().length > 0) {
|
||||
workflow.name = `${workflow.name} (Test ${uniqueSuffix})`;
|
||||
} else {
|
||||
workflow.name = `Test Workflow ${uniqueSuffix}`;
|
||||
}
|
||||
|
||||
// Ensure workflow is inactive by default when not specified
|
||||
workflow.active ??= false;
|
||||
|
||||
// Check if workflow has webhook nodes and process them
|
||||
let webhookId: string | undefined;
|
||||
let webhookPath: string | undefined;
|
||||
|
||||
Reference in New Issue
Block a user