Skip to content

Commit

Permalink
Bug 1988133: Cypress - re-enable OLM globall install test, handle mul…
Browse files Browse the repository at this point in the history
…tiple csv's crd versions
  • Loading branch information
dtaylor113 committed Oct 26, 2021
1 parent cc1397e commit eb3c5cd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Expand Up @@ -61,7 +61,7 @@ describe('Interacting with OperatorHub', () => {
});

it('filters Operators by name', () => {
const operatorName = 'Alcide kAudit Operator';
const operatorName = 'Couchbase Operator';
cy.byTestID('search-operatorhub').type(operatorName);
cy.get('.catalog-tile-pf')
.its('length')
Expand Down
Expand Up @@ -11,9 +11,9 @@ const testOperator = {
};

const testOperand: TestOperandProps = {
name: 'CodeReady Workspaces Cluster',
name: 'CodeReady Workspaces instance Specification',
kind: 'CheCluster',
tabName: 'CodeReady Workspaces Cluster',
tabName: 'CodeReady Workspaces instance Specification',
exampleName: `codeready-workspaces`,
};

Expand Down
Expand Up @@ -109,7 +109,9 @@ export const operator = {
cy.log(`create operand "${exampleName}" for "${operatorName}" in ${installedNamespace}`);
operator.navToDetailsPage(operatorName, installedNamespace);
cy.log(`navigate to the "${tabName}" tab`);
cy.byLegacyTestID(`horizontal-link-${tabName}`).click();
cy.byLegacyTestID(`horizontal-link-${tabName}`)
.last()
.click();
cy.byTestID('msg-box-title').should('contain', 'No operands found');
cy.byTestID('msg-box-detail').should(
'contain',
Expand All @@ -136,7 +138,9 @@ export const operator = {
cy.log(`operand "${exampleName}" should exist for "${operatorName}" in ${installedNamespace}`);
operator.navToDetailsPage(operatorName, installedNamespace);
cy.log(`navigate to the "${tabName}" tab`);
cy.byLegacyTestID(`horizontal-link-${tabName}`).click();
cy.byLegacyTestID(`horizontal-link-${tabName}`)
.last()
.click();
cy.byTestOperandLink(exampleName).should('contain', exampleName);
cy.log(`navigate to the operand "Details" tab`);
cy.byTestOperandLink(exampleName).click();
Expand All @@ -152,7 +156,9 @@ export const operator = {
cy.log(`delete operand: ${exampleName}`);
operator.navToDetailsPage(operatorName, installedNamespace);
cy.log(`navigate to the "${tabName}" tab`);
cy.byLegacyTestID(`horizontal-link-${tabName}`).click();
cy.byLegacyTestID(`horizontal-link-${tabName}`)
.last()
.click();
// drilldown to Operand details page
cy.byTestOperandLink(exampleName).click();
detailsPage.clickPageActionFromDropdown(`Delete ${operandKind}`);
Expand All @@ -169,7 +175,9 @@ export const operator = {
cy.log(`operand "${exampleName}" should not exist`);
operator.navToDetailsPage(operatorName, installedNamespace);
cy.log(`navigate to the "${tabName}" tab`);
cy.byLegacyTestID(`horizontal-link-${tabName}`).click();
cy.byLegacyTestID(`horizontal-link-${tabName}`)
.last()
.click();
cy.byTestOperandLink(exampleName).should('not.exist');
},
uninstall: (operatorName: string, installedNamespace: string = GlobalInstalledNamespace) => {
Expand Down

0 comments on commit eb3c5cd

Please sign in to comment.