pull:初次提交
This commit is contained in:
26
n8n-n8n-1.109.2/cypress/pages/settings-community-nodes.ts
Executable file
26
n8n-n8n-1.109.2/cypress/pages/settings-community-nodes.ts
Executable file
@@ -0,0 +1,26 @@
|
||||
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')
|
||||
.contains('button', 'Confirm update')
|
||||
.click();
|
||||
};
|
||||
|
||||
export const confirmCommunityNodeUninstall = () => {
|
||||
cy.getByTestId('communityPackageManageConfirm-modal')
|
||||
.contains('button', 'Confirm uninstall')
|
||||
.click();
|
||||
};
|
||||
Reference in New Issue
Block a user