Skip to content

Commit 9ccc7ef

Browse files
committed
ci/ui: increase timeout for rke2 cluster creation
1 parent 0600d70 commit 9ccc7ef

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/cypress/latest/e2e/unit_tests/deploy_app.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ filterTests(['main'], () => {
9191
cy.get('.nav').contains('Apps').click();
9292
cy.contains('Installed Apps').click();
9393
cy.contains('.title', 'Installed Apps', { timeout: 20000 });
94+
cy.reload();
9495
cy.contains(myAppToInstall);
9596
cy.get('[width="30"] > .checkbox-outer-container').click();
9697
cy.get('.outlet').getBySel('sortable-table-promptRemove').click();

tests/cypress/latest/support/utils.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ export const createCluster = (clusterName: string, k8sVersion: string, proxy: st
121121
cypressLib.burgerMenuToggle();
122122
cypressLib.checkClusterStatus(clusterName, 'Active', 600000);
123123
// Ugly but needed unfortunately to make sure the cluster stops switching status
124-
// eslint-disable-next-line cypress/no-unnecessary-waiting
125-
cy.wait(240000);
124+
if (isK8sVersion('rke2')) {
125+
// eslint-disable-next-line cypress/no-unnecessary-waiting
126+
cy.wait(400000);
127+
} else {
128+
// eslint-disable-next-line cypress/no-unnecessary-waiting
129+
cy.wait(240000);
130+
}
126131
}

0 commit comments

Comments
 (0)