mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat: Redirect users without feature flag from template cred setup (no-changelog) (#8302)
This commit is contained in:
@@ -5,7 +5,7 @@ export class TemplateWorkflowPage extends BasePage {
|
||||
|
||||
getters = {
|
||||
useTemplateButton: () => cy.get('[data-test-id="use-template-button"]'),
|
||||
description: () => cy.get('[data-test-id="template-description"]')
|
||||
description: () => cy.get('[data-test-id="template-description"]'),
|
||||
};
|
||||
|
||||
actions = {
|
||||
@@ -17,7 +17,15 @@ 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}[] }}) => {
|
||||
openTemplate: (template: {
|
||||
workflow: {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
user: { username: string };
|
||||
image: { id: number; url: string }[];
|
||||
};
|
||||
}) => {
|
||||
cy.intercept('GET', `https://api.n8n.io/api/templates/workflows/${template.workflow.id}`, {
|
||||
statusCode: 200,
|
||||
body: template,
|
||||
|
||||
Reference in New Issue
Block a user