Skip to content

Commit

Permalink
ci/ui: fix error 500 when deploying app (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk authored and ldevulder committed Jun 12, 2023
1 parent c00c342 commit e8f4caf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions tests/cypress/latest/e2e/unit_tests/deploy_app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,28 @@ filterTests(['main'], () => {
});

it('Deploy Alerting Drivers application', () => {
// Unfortunately, this wait is needed mainly with RKE2 because the cluster
// is switching status and it is hard to catch in automated way...
cy.wait(180000);
topLevelMenu.openIfClosed();
cy.contains('Home')
.click();
cy.get('[data-node-id="fleet-default/'+clusterName+'"]')
.contains('Active', {timeout: 300000});
cy.contains(clusterName)
.click();
cy.contains('Apps')
.click();
cy.contains('Charts')
.click();
cy.contains('Alerting Drivers')
cy.contains('Alerting Drivers', {timeout:30000})
.click();
cy.contains('.name-logo-install', 'Alerting Drivers', {timeout:20000});
cy.contains('.name-logo-install', 'Alerting Drivers', {timeout:30000});
cy.clickButton('Install');
cy.contains('.outer-container > .header', 'Alerting Drivers');
cy.clickButton('Next');
cy.clickButton('Install');
cy.contains('SUCCESS: helm install', {timeout:30000});
cy.contains('SUCCESS: helm install', {timeout:120000});
cy.reload;
cy.contains('Deployed rancher-alerting-drivers');
});
Expand All @@ -59,7 +66,7 @@ filterTests(['main'], () => {
.click();
cy.clickButton('Delete');
cy.confirmDelete();
cy.contains('SUCCESS: helm uninstall', {timeout:30000});
cy.contains('SUCCESS: helm uninstall', {timeout:60000});
cy.contains('.apps', 'rancher-alerting-drivers')
.should('not.exist');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe('Machine inventory testing', () => {
.click();
// The new cluster must be in active state
cy.get('[data-node-id="fleet-default/'+clusterName+'"]')
.contains('Active');
.contains('Active', {timeout: 300000});
// Go into the dedicated cluster page
topLevelMenu.openIfClosed();
cy.contains(clusterName)
Expand Down

0 comments on commit e8f4caf

Please sign in to comment.