Skip to content

Commit

Permalink
[bitnami/kubeapps] Update Cypress tests (#20669)
Browse files Browse the repository at this point in the history
* [bitnami/kubeapps] Update Cypress tests

Signed-off-by: Fran de Paz <fdepaz@vmware.com>

* Manage app exception

Signed-off-by: Fran de Paz <fdepaz@vmware.com>

* Revert VIB trigger

Signed-off-by: Fran de Paz <fdepaz@vmware.com>

---------

Signed-off-by: Fran de Paz <fdepaz@vmware.com>
  • Loading branch information
Fran de Paz Galán authored Nov 8, 2023
1 parent 5278411 commit 54df4e6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .vib/kubeapps/cypress/cypress.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"baseUrl": "http://localhost/",
"env": {
"repoName": "bitnami",
"repoURL": "oci://registry-1.docker.io/bitnamicharts"
"registryName": "bitnamicharts"
},
"defaultCommandTimeout": 30000
}
3 changes: 1 addition & 2 deletions .vib/kubeapps/cypress/cypress/integration/kubeapps_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ it('allows managing a helm chart release', () => {

cy.get('#search').type(releases.newRelease.application);
cy.contains('div.card', releases.newRelease.application).click();
cy.contains(Cypress.env('repoName'));
cy.contains(Cypress.env('repoURL'));
cy.contains(Cypress.env('registryName'));
cy.contains('Deploy').click();

cy.get('#releaseName').type(releaseName);
Expand Down
10 changes: 10 additions & 0 deletions .vib/kubeapps/cypress/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ Cypress.Commands.add('login', () => {
cy.contains('Submit').click();
})
});

Cypress.on('uncaught:exception', (err) => {
// we expect a 3rd party library error with message 'ResizeObserver loop'
// and don't want to fail the test so we return false
if (err.message.includes("ResizeObserver loop")) {
return false;
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
})
3 changes: 1 addition & 2 deletions .vib/kubeapps/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
},
"endpoint": "lb-kubeapps-http",
"env": {
"repoName": "bitnami",
"repoURL": "oci://registry-1.docker.io/bitnamicharts"
"registryName": "bitnamicharts"
},
"app_protocol": "HTTP"
}
Expand Down

0 comments on commit 54df4e6

Please sign in to comment.