Skip to content

Commit e6d63aa

Browse files
committed
Fix CI tests in helm and devconsole packages
1 parent b6b1302 commit e6d63aa

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

frontend/packages/dev-console/integration-tests/features/addFlow/create-from-devfile.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: Create Application from Devfile
99
And user is at Add page
1010

1111

12-
@regression @broken-test
12+
@regression
1313
Scenario: Deploy git workload with devfile from topology page: A-04-TC01
1414
Given user is at the Topology page
1515
When user right clicks on topology empty graph
@@ -31,7 +31,7 @@ Feature: Create Application from Devfile
3131
And user is able to see workload "node-example" in topology page
3232

3333

34-
@regression
34+
@regression @broken-test
3535
Scenario: No service is shown in the node sidebar if it is not defined in the devfile : A-04-TC03
3636
Given user has created workload "node-example" with resource type "Deployment"
3737
And user is at Topology page
@@ -40,7 +40,7 @@ Feature: Create Application from Devfile
4040
And user can see under Services section "No Services found for this resource."
4141

4242

43-
@regression
43+
@regression @broken-test
4444
Scenario: No route is shown in the node sidebar if it is not defined in the devfile : A-04-TC04
4545
Given user has created workload "node-example" with resource type "Deployment"
4646
And user is at Topology page

frontend/packages/dev-console/integration-tests/features/e2e/add-flow-ci.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ Feature: Create the different workloads from Add page
8686
Then user will be redirected to Topology page
8787
And user is able to see workload "mariadb" in topology page
8888

89-
@regression @broken-test
9089
Scenario: Deploy git workload with devfile from topology page: A-04-TC01
9190
Given user is at the Topology page
9291
When user right clicks on topology empty graph

frontend/packages/dev-console/integration-tests/support/step-definitions/addFlow/create-from-devfile.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ When('user right clicks on topology empty graph', () => {
88

99
When('user selects {string} option from Add to Project context menu', (option: string) => {
1010
cy.get(topologyPO.graph.contextMenuOptions.addToProject).focus().trigger('mouseover');
11-
cy.byTestActionID(option).click({ force: true });
11+
cy.get(`[data-test-action="${option}"] button[role="menuitem"]`)
12+
.should('be.visible')
13+
.click({ force: true });
1214
});
1315

1416
When('user enters Git Repo url {string} in Devfile page', (gitUrl: string) => {

frontend/packages/helm-plugin/integration-tests/features/helm-release.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Feature: Helm Release
3838
Then user will be redirected to Topology page
3939
And Topology page have the helm chart workload "nodejs-release"
4040

41-
@regression @broken-test
41+
4242
Scenario: Context menu options of helm release: HR-01-TC01
4343
Given user is at the Topology page
4444
When user right clicks on the helm release "nodejs-release" to open the context menu

frontend/packages/helm-plugin/integration-tests/support/step-definitions/helm/helm-release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Then(
4242
);
4343

4444
Then('user is able to see the context menu with actions Upgrade and Delete Helm Release', () => {
45-
cy.get('ul[role="menu"]').should('be.visible');
45+
cy.get('div.odc-topology-context-menu').should('be.visible');
4646
cy.byTestActionID('Upgrade').should('be.visible');
4747
cy.byTestActionID('Delete Helm Release').should('be.visible');
4848
});

frontend/packages/topology/integration-tests/support/page-objects/topology-po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const topologyPO = {
6363
showPodCount: '[id$=show-pod-count]',
6464
},
6565
contextMenuOptions: {
66-
addToProject: '.pf-topology-context-sub-menu',
66+
addToProject: 'button.pf-topology-context-sub-menu',
6767
},
6868
addLink: '[data-test="add-page"]',
6969
quickSearch: '[data-test="quick-search-bar"]',

0 commit comments

Comments
 (0)