Skip to content

Commit 002a496

Browse files
committed
OCPBUGS-63471: Update e2e to reflect new UI
1 parent ad3367d commit 002a496

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

frontend/packages/dev-console/integration-tests/features/customization/customization-of-pinned-resource.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ Feature: Customization of pre-pinned resources
1313
When user navigates to Cluster configuration page
1414
And user clicks on Developer tab
1515
Then user should see Pre-pinned navigation items section
16-
16+
1717
@regression @manual
1818
Scenario: When pre-pinned resources customization is not added: DC-02-TC02
1919
Given user is at "operator.openshift.io/v1" console details page
20-
And user selects "Customize" in the Actions menu
20+
And user clicks the "Customize" button in the page heading
2121
And user selects "Developer" tab in "Cluster configuration" page
2222
Then user should see default pins from extension under "Pinned Resources" in "Pre-pinned navigation items"
2323

2424
@regression @manual
2525
Scenario: When resource is selected for pre-pinned navigation: DC-02-TC03
2626
Given user is at "operator.openshift.io/v1" console details page
27-
And user selects "Customize" in the Actions menu
27+
And user clicks the "Customize" button in the page heading
2828
And user selects "Developer" tab in "Cluster configuration" page
2929
When user selects "Deployment" under "Resources" and added to "Pinned Resources"
3030
Then user should see "Deployment" resource details in "operator.openshift.io/v1" console YAML under spec.customization.perspectives.id.pinnedResources for id 'dev'
31-
31+
3232
@regression @manual
3333
Scenario: When resource is removed from pre-pinned navigation: DC-02-TC04
3434
Given user is at "operator.openshift.io/v1" console details page
35-
And user selects "Customize" in the Actions menu
35+
And user clicks the "Customize" button in the page heading
3636
And user selects "Developer" tab in "Cluster configuration" page
3737
When user selects "Deployment" under "Pinned Resources" and moved back "Resources"
3838
Then user should not see "Deployment" resource details in "operator.openshift.io/v1" console YAML under spec.customization.perspectives.id.pinnedResources for id 'dev'

frontend/packages/dev-console/integration-tests/features/e2e/enable-dev-perspective-ci.feature

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ Feature: Enable dev perspective
66
Given user has only admin perspective enabled
77
And user has logged in as admin user
88

9-
9+
1010
Scenario: Enable dev perspective: P-01-TC04
1111
Given user is at admin perspective
1212
And user is at Search page in Home section
1313
And user searches "console"
1414
And user clicks on cluster
15-
And user selects "Customize" from actions menu
15+
And user clicks the "Customize" button in the page heading
1616
And user selects "Enabled" in the Developer under perspective section of general customisation
1717
Then user will see Saved alert
1818
And user refreshes the page to see developer option
1919
And user will see developer perspective in the perspective switcher
20-

frontend/packages/dev-console/integration-tests/features/perspectives/configure-perspectives.feature

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Configure perspectives
55

66
Background:
77
Given user has logged in as admin user
8-
8+
99
@regression @manual
1010
Scenario: Configuring available perspectives: P-01-TC01
1111
Given user is at cluster YAML of "operator.openshift.io/v1" console
@@ -45,9 +45,8 @@ Feature: Configure perspectives
4545
And user searches "console"
4646
And user clicks on cluster
4747
# And user selects "operator.openshift.io" console
48-
And user selects "Customize" from actions menu
48+
And user clicks the "Customize" button in the page heading
4949
And user selects "Enabled" in the Developer under perspective section of general customisation
5050
Then user will see Saved alert
5151
And user refreshes the page to see developer option
5252
And user will see developer perspective in the perspective switcher
53-

frontend/packages/dev-console/integration-tests/support/step-definitions/customization/configure-perspectives.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ When('user clicks on cluster', () => {
7070
cy.byTestID('cluster').should('be.visible').click({ force: true });
7171
});
7272

73-
When('user selects {string} from actions menu', (item: string) => {
74-
cy.byLegacyTestID('actions-menu-button').should('be.visible').click();
75-
cy.get(`[data-test-action="${item}"] button`).should('be.visible').click();
73+
When('user clicks the {string} button in the page heading', (item: string) => {
74+
cy.get(`button[data-test-action="${item}"]`).should('be.visible').click();
7675
cy.get('[data-test="page-heading"] h1').should('have.text', 'Cluster configuration');
7776
});
7877

0 commit comments

Comments
 (0)