mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
test: Add e2e tests for cred setup on workflow editor (no-changelog) (#8245)
## Summary Follow-up to https://github.com/n8n-io/n8n/pull/8240 Adds e2e tests for the template credential setup in workflow editor ## Related tickets and issues https://linear.app/n8n/issue/ADO-1463/feature-enable-users-to-close-and-re-open-the-setup
This commit is contained in:
14
cypress/composables/setup-template-form-step.ts
Normal file
14
cypress/composables/setup-template-form-step.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Getters
|
||||
*/
|
||||
|
||||
export const getFormStep = () => cy.getByTestId('setup-credentials-form-step');
|
||||
|
||||
export const getStepHeading = ($el: JQuery<HTMLElement>) =>
|
||||
cy.wrap($el).findChildByTestId('credential-step-heading');
|
||||
|
||||
export const getStepDescription = ($el: JQuery<HTMLElement>) =>
|
||||
cy.wrap($el).findChildByTestId('credential-step-description');
|
||||
|
||||
export const getCreateAppCredentialsButton = (appName: string) =>
|
||||
cy.get(`button:contains("Create new ${appName} credential")`);
|
||||
Reference in New Issue
Block a user