Skip to content

Commit 4395b8f

Browse files
fix: Community update/uninstall e2e test fix (no-changelog) (#17884)
1 parent 76230d2 commit 4395b8f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cypress/pages/settings-community-nodes.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ export const installFirstCommunityNode = (nodeName: string) => {
1414
};
1515

1616
export const confirmCommunityNodeUpdate = () => {
17-
cy.getByTestId('communityPackageManageConfirm-modal').find('button').eq(1).click();
17+
cy.getByTestId('communityPackageManageConfirm-modal')
18+
.contains('button', 'Confirm update')
19+
.click();
1820
};
1921

2022
export const confirmCommunityNodeUninstall = () => {
21-
cy.getByTestId('communityPackageManageConfirm-modal').find('button').eq(1).click();
23+
cy.getByTestId('communityPackageManageConfirm-modal')
24+
.contains('button', 'Confirm uninstall')
25+
.click();
2226
};

0 commit comments

Comments
 (0)