Skip to content

Commit

Permalink
OCPBUGS-10562: re-enable operator-uninstall.spec.ts and add check for…
Browse files Browse the repository at this point in the history
… Subscription
  • Loading branch information
rhamilto committed Apr 26, 2023
1 parent 237973c commit 8ef94b7
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const uninstallAndVerify = () => {
cy.resourceShouldBeDeleted(testName, testOperand.kind, testOperand.exampleName);
};

xdescribe(`Testing uninstall of ${testOperator.name} Operator`, () => {
describe(`Testing uninstall of ${testOperator.name} Operator`, () => {
before(() => {
cy.login();
cy.visit('/');
Expand All @@ -52,6 +52,12 @@ xdescribe(`Testing uninstall of ${testOperator.name} Operator`, () => {
testOperator.installedNamespace,
);
operator.installedSucceeded(testOperator.name);
cy.log(`confirm ${testOperator.name} Subscription exists`);
operator.navToDetailsPage(testOperator.name, testOperator.installedNamespace);
cy.byLegacyTestID('horizontal-link-Subscription').click();
cy.byTestID('loading-indicator').should('not.exist');
cy.get('[data-test="msg-box-title"]').should('not.exist');
cy.byTestSectionHeading('Subscription details').should('exist');
operator.createOperand(testOperator.name, testOperand, testOperator.installedNamespace);
cy.byTestID(testOperand.exampleName).should('exist');
operator.operandShouldExist(testOperator.name, testOperand, testOperator.installedNamespace);
Expand Down Expand Up @@ -103,7 +109,7 @@ xdescribe(`Testing uninstall of ${testOperator.name} Operator`, () => {

cy.log('attempt to uninstall the Operator');
operator.uninstallModal.open(testOperator.name, testOperator.installedNamespace);
modal.submit(true);
modal.submit();
cy.wait('@deleteOperatorSubscriptionAndCSV');
alertExists('Error uninstalling Operator');
cy.get(submitButton).contains('OK'); // test change from 'Uninstall'
Expand All @@ -120,7 +126,7 @@ xdescribe(`Testing uninstall of ${testOperator.name} Operator`, () => {
cy.log('attempt uninstall the Operator and all Operand Instances');
operator.uninstallModal.open(testOperator.name, testOperator.installedNamespace);
operator.uninstallModal.checkDeleteAllOperands();
modal.submit(true);
modal.submit();
cy.wait('@deleteOperandInstance');
alertExists('Error uninstalling Operator');
alertExists('Error deleting Operands');
Expand Down

0 comments on commit 8ef94b7

Please sign in to comment.