mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Fix routing between workflow editing and new workflow pages (#14031)
This commit is contained in:
19
cypress/composables/create.ts
Normal file
19
cypress/composables/create.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export const universalAddButton = () => cy.getByTestId('universal-add');
|
||||
|
||||
export const createResource = (
|
||||
resourceType: 'project' | 'workflow' | 'credential',
|
||||
projectName: string,
|
||||
) => {
|
||||
universalAddButton().click();
|
||||
cy.getByTestId('navigation-submenu')
|
||||
.contains(new RegExp(resourceType, 'i'))
|
||||
.should('be.visible')
|
||||
.click();
|
||||
|
||||
if (resourceType !== 'project') {
|
||||
cy.getByTestId('navigation-submenu-item')
|
||||
.contains(new RegExp(projectName))
|
||||
.should('be.visible')
|
||||
.click();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user