mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Set up Cypress as pnpm workspace (no-changelog) (#6049)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -17,15 +17,18 @@ export class TemplateWorkflowPage extends BasePage {
|
||||
this.getters.useTemplateButton().click();
|
||||
},
|
||||
|
||||
openTemplate: (template: {
|
||||
workflow: {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
user: { username: string };
|
||||
image: { id: number; url: string }[];
|
||||
};
|
||||
}, templateHost: string) => {
|
||||
openTemplate: (
|
||||
template: {
|
||||
workflow: {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
user: { username: string };
|
||||
image: Array<{ id: number; url: string }>;
|
||||
};
|
||||
},
|
||||
templateHost: string,
|
||||
) => {
|
||||
cy.intercept('GET', `${templateHost}/api/templates/workflows/${template.workflow.id}`, {
|
||||
statusCode: 200,
|
||||
body: template,
|
||||
|
||||
Reference in New Issue
Block a user