mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
19 lines
444 B
TypeScript
19 lines
444 B
TypeScript
|
//#region Getters
|
||
|
|
||
|
export const getBecomeTemplateCreatorCta = () => cy.getByTestId('become-template-creator-cta');
|
||
|
|
||
|
export const getCloseBecomeTemplateCreatorCtaButton = () =>
|
||
|
cy.getByTestId('close-become-template-creator-cta');
|
||
|
|
||
|
//#endregion
|
||
|
|
||
|
//#region Actions
|
||
|
|
||
|
export const interceptCtaRequestWithResponse = (becomeCreator: boolean) => {
|
||
|
return cy.intercept('GET', `/rest/cta/become-creator`, {
|
||
|
body: becomeCreator,
|
||
|
});
|
||
|
};
|
||
|
|
||
|
//#endregion
|