mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
008fd5a917
## 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
15 lines
481 B
TypeScript
15 lines
481 B
TypeScript
/**
|
|
* 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")`);
|