mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
de015ff297
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
23 lines
791 B
TypeScript
23 lines
791 B
TypeScript
export const getCommunityCards = () => {
|
|
return cy.getByTestId('community-package-card');
|
|
};
|
|
|
|
export const visitCommunityNodesSettings = () => {
|
|
cy.visit('/settings/community-nodes');
|
|
};
|
|
|
|
export const installFirstCommunityNode = (nodeName: string) => {
|
|
cy.getByTestId('action-box').find('button').click();
|
|
cy.getByTestId('communityPackageInstall-modal').find('input').eq(0).type(nodeName);
|
|
cy.getByTestId('user-agreement-checkbox').click();
|
|
cy.getByTestId('install-community-package-button').click();
|
|
};
|
|
|
|
export const confirmCommunityNodeUpdate = () => {
|
|
cy.getByTestId('communityPackageManageConfirm-modal').find('button').eq(1).click();
|
|
};
|
|
|
|
export const confirmCommunityNodeUninstall = () => {
|
|
cy.getByTestId('communityPackageManageConfirm-modal').find('button').eq(1).click();
|
|
};
|