fix(editor): Fix routing between workflow editing and new workflow pages (#14031)

This commit is contained in:
Csaba Tuncsik
2025-03-19 06:02:58 +01:00
committed by GitHub
parent ebf912dd30
commit 6817abe47f
3 changed files with 50 additions and 2 deletions

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