Skip to content

Commit

Permalink
Disable Rancher extension repository in UI tests (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk authored Dec 14, 2022
1 parent e441159 commit 8ff5c5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cypress/e2e/unit_tests/elemental_plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('Install Elemental plugin', () => {
cy.contains('Extensions').click();
cy.clickButton('Enable');
cy.contains('Enable Extension Support?')
cy.contains('Add the Rancher Extension Repository').click();
cy.clickButton('OK');
cy.contains('No Extensions installed', {timeout: 40000});
});
Expand All @@ -35,6 +36,11 @@ describe('Install Elemental plugin', () => {
cy.contains('Install Extension elemental');
cy.clickButton('Install');
cy.contains('Installing');
cy.wait(20000);
cy.contains('Extensions changed - reload required', {timeout: 40000});
cy.clickButton('Reload');
cy.get('.plugins')
.children()
.should('contain', 'elemental')
.and('contain', 'Uninstall')
});
});

0 comments on commit 8ff5c5b

Please sign in to comment.