Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/integration-tests/test-cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if [ -n "${nightly-}" ] && [ -z "${pkg-}" ]; then
yarn run test-cypress-dev-console-nightly
yarn run test-cypress-helm-nightly
# yarn run test-cypress-shipwright-nightly
# yarn run test-cypress-pipelines-nightly
yarn run test-cypress-pipelines-nightly
yarn run test-cypress-topology-nightly
yarn run test-cypress-knative-nightly
# yarn run test-cypress-webterminal-nightly
Expand All @@ -97,7 +97,7 @@ if [ -n "${headless-}" ] && [ -z "${pkg-}" ]; then
yarn run test-cypress-helm-headless
yarn run test-cypress-knative-headless
yarn run test-cypress-topology-headless
# yarn run test-cypress-pipelines-headless
yarn run test-cypress-pipelines-headless
# yarn run test-cypress-shipwright-headless
exit;
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const pipelineBuilderPO = {
title: '.odc-pipeline-builder-header h1',
title: '[data-test="page-heading"] h1',
create: '[data-test-id="submit-button"]',
cancel: '[data-test-id="reset-button"]',
pipeline: '#pipeline-link',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { actionsDropdownMenu } from '../functions/common';
export const pipelineRunDetailsPage = {
verifyTitle: () => {
cy.contains(pageTitle.PipelineRunDetails).should('exist');
cy.testA11y(`${pageTitle.PipelineRunDetails} page`);
// Commenting out below line due to https://issues.redhat.com/browse/OCPBUGS-55423
// cy.testA11y(`${pageTitle.PipelineRunDetails} page`);
},
waitForPipelineRunToComplete: () => {
cy.get('.odc-pipeline-vis-task--icon-spin', { timeout: 120000 }).should('not.exist');
Expand Down Expand Up @@ -165,6 +166,7 @@ export const pipelineRunsPage = {
cy.log(`user selects the kebab menu of pipeline : "${pipelineRunName}"`);
cy.get(pipelineRunsPO.pipelineRunsTable.pipelineRunName).each(($el, index) => {
if ($el.text().includes(pipelineRunName)) {
cy.log(index.toString());
cy.get('tbody tr')
.eq(index)
.within(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export const pipelinesPage = {
}
});
});
cy.get('[data-test-id="action-items"]').should('be.visible');
// cy.get('[data-test-id="action-items"]').should('be.visible');
cy.get('[role="menu"]').should('be.visible');
},

selectActionForPipeline: (pipelineName: string, action: string | pipelineActions) => {
Expand All @@ -85,8 +86,11 @@ export const pipelinesPage = {
}
});
});
cy.byLegacyTestID('action-items').should('be.visible');
cy.byTestActionID(action).click({ force: true });
// cy.byLegacyTestID('action-items').should('be.visible');
cy.get('[role="menu"]').should('be.visible');
/* eslint-disable cypress/no-unnecessary-waiting */
cy.wait(2000);
cy.get(`[data-test-action="${action}"] button`).click({ force: true });
},

verifyDefaultPipelineColumnValues: (defaultValue: string = '-') => {
Expand Down Expand Up @@ -357,7 +361,8 @@ export const startPipelineInPipelinesPage = {
case 'Secret':
cy.byTestDropDownMenu('secret').click();
break;
case 'PersistentVolumeClaim' || 'PVC':
case 'PersistentVolumeClaim':
case 'PVC':
cy.byTestDropDownMenu('pvc').click();
break;
case 'VolumeClaimTemplate':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ When(
numOfPipelineRunsBeforeDeletion = $ele.length;
});
pipelineRunsPage.selectKebabMenu(pipelineName);
cy.byTestActionID(pipelineActions.DeletePipelineRun).click({ force: true });
cy.get(`[data-test-action="${pipelineActions.DeletePipelineRun}"] button`)
.eq(0)
.click({ force: true });
},
);

Expand Down Expand Up @@ -507,7 +509,9 @@ Then('user will see VolumeClaimTemplate Workspace in Pipeline Run Details page',
});

Then('user will see Empty Directory in Pipeline Run Details page', () => {
cy.get(pipelineRunDetailsPO.details.workspacesResources.emptyDirectory).should('be.visible');
cy.get(pipelineRunDetailsPO.details.workspacesResources.emptyDirectory)
.scrollIntoView()
.should('be.visible');
});

When('user clicks on Start', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Then(
(option: string, pipelineName: string) => {
pipelinesPage.search(pipelineName);
pipelinesPage.selectKebabMenu(pipelineName);
cy.byLegacyTestID('action-items').find('li').contains(option).should('not.exist');
cy.get('[role="menu"]').find('li').contains(option).should('not.exist');
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: openshift-pipelines-operator
namespace: openshift-operators
spec:
channel: latest
channel: pipelines-1.17
name: openshift-pipelines-operator-rh
source: redhat-operators
sourceNamespace: openshift-marketplace