mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
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")`);
|