mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
test: Ado 1296 add e2e tests (#7792)
Adds e2e tests for the template credential setup.
This commit is contained in:
19
cypress/pages/template-workflow.ts
Normal file
19
cypress/pages/template-workflow.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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();
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user