mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
test: Use nanoid instead of UUID in e2e tests for wf names (no-changelog) (#9717)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { META_KEY } from '../constants';
|
||||
import { getVisibleSelect } from '../utils';
|
||||
import { getUniqueWorkflowName } from '../utils/workflowUtils';
|
||||
import { BasePage } from './base';
|
||||
import { NodeCreator } from './features/node-creator';
|
||||
|
||||
@@ -311,6 +312,9 @@ export class WorkflowPage extends BasePage {
|
||||
cy.get('body').type(newName);
|
||||
cy.get('body').type('{enter}');
|
||||
},
|
||||
renameWithUniqueName: () => {
|
||||
this.actions.renameWorkflow(getUniqueWorkflowName());
|
||||
},
|
||||
addTags: (tags: string | string[]) => {
|
||||
if (!Array.isArray(tags)) tags = [tags];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user