mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Update image sizes in template description not to be full width always (#8037)
## Summary Update image sizes in template description not to be full width always. ## Related tickets and issues https://linear.app/n8n/issue/ADO-1506/bug-fix-images-in-template-descriptions ## Review / Merge checklist - [X] PR title and summary are descriptive. **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** ([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md)) - [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up ticket created. - [x] Tests included. > A bug is not considered fixed, unless a test is added to prevent it from happening again. > A feature is not complete without tests.
This commit is contained in:
@@ -5,6 +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"]')
|
||||
};
|
||||
|
||||
actions = {
|
||||
@@ -15,5 +16,15 @@ export class TemplateWorkflowPage extends BasePage {
|
||||
clickUseThisWorkflowButton: () => {
|
||||
this.getters.useTemplateButton().click();
|
||||
},
|
||||
|
||||
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,
|
||||
}).as('getTemplate');
|
||||
|
||||
this.actions.visit(template.workflow.id);
|
||||
cy.wait('@getTemplate');
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user