mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
20 lines
394 B
TypeScript
20 lines
394 B
TypeScript
|
import { BasePage } from './base';
|
||
|
|
||
|
export class TemplateWorkflowPage extends BasePage {
|
||
|
url = '/templates';
|
||
|
|
||
|
getters = {
|
||
|
useTemplateButton: () => cy.get('[data-test-id="use-template-button"]'),
|
||
|
};
|
||
|
|
||
|
actions = {
|
||
|
visit: (templateId: number) => {
|
||
|
cy.visit(`${this.url}/${templateId}`);
|
||
|
},
|
||
|
|
||
|
clickUseThisWorkflowButton: () => {
|
||
|
this.getters.useTemplateButton().click();
|
||
|
},
|
||
|
};
|
||
|
}
|