Skip to content

Commit

Permalink
Fixed topology package e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketpathak committed Oct 27, 2023
1 parent 8a3c4f0 commit 98f1f28
Show file tree
Hide file tree
Showing 22 changed files with 253 additions and 195 deletions.
Expand Up @@ -50,5 +50,6 @@ export const devFilePage = {
cy.log(`Issue with git url ${gitUrl}, maybe a private repo url. Please check it`);
}
});
cy.get(gitPO.gitSection.validatedMessage).should('have.text', 'Validated');
},
};
Expand Up @@ -215,7 +215,7 @@ export const navigateTo = (opt: devNavigationMenu) => {
case devNavigationMenu.Consoles: {
cy.get('body').then(($body) => {
if ($body.text().includes('Consoles')) {
cy.byLegacyTestID('dev-perspective-nav').contains('Consoles').click();
cy.byTestID('draggable-pinned-resource-item').contains('Consoles').click();
cy.byTestID('cluster').should('be.visible').click();
} else {
cy.get(devNavigationMenuPO.search).click();
Expand Down Expand Up @@ -289,6 +289,14 @@ export const projectNameSpace = {
});
// Bug: ODC-6164 - is created related to Accessibility violation - Until bug fix, below line is commented to execute the scripts in CI
// cy.testA11y('Create Project modal');
cy.url().then(($url) => {
if ($url.includes('topology/all-namespaces')) {
cy.get('.odc-namespaced-page__content').should('be.visible');
}
else if ($url.includes('topology/ns')) {
cy.byLegacyTestID('item-filter').should('be.visible');
}
});
cy.byTestID('dropdown-text-filter').type(projectName);
cy.get('[data-test-id="namespace-bar-dropdown"] span.pf-c-menu-toggle__text')
.first()
Expand Down
@@ -1,4 +1,4 @@
@topology @smoke
@manual @topology @smoke
Feature: Perform actions on topology
User will be able to create workloads and perform actions on topology page

Expand Down
@@ -1,4 +1,4 @@
@topology
@manual @topology
Feature: Perform actions on HPA in Administrative perspective
As a user, I want to edit the HPA assigned to a workload

Expand Down
@@ -1,4 +1,4 @@
@topology
@topology @manual
Feature: Provide quick search from topology/list views to add to project
As a user, I should be able to have a quick way to search for items to add to my application/project in the Topology List/Graph view

Expand Down
@@ -1,6 +1,6 @@
@topology @ODC6771
@manual @topology @ODC6771
Feature: Update user in topology page if Quotas has been reached in a namespace
If any resource reached resource quota limit, a warning alert will be displayed for the user in Topology page.
If any resource reached resource quota limit, a warning alert will be displayed for the user in Topology page.

Background:
Given user is at developer perspective
Expand All @@ -14,16 +14,16 @@ Feature: Update user in topology page if Quotas has been reached in a namespace
And user navigates to Topology page
And user clicks on link to view resource quota details
Then user is redirected to resource quota details page


@regression
Scenario: multiple resources reached quota: T-19-TC02
Given user has created workload with resource type deployment
And user has created two resource quotas using 'testData/resource-quota/resource-quota.yaml' file
When user navigates to Topology page
And user clicks on link to view resource quota details
Then user is redirected to resource quota list page


@regression
Scenario: deployment node has yellow border around it and side-panel shows alert when resource quota is reached: T-19-TC03
Expand All @@ -33,17 +33,18 @@ Feature: Update user in topology page if Quotas has been reached in a namespace
When user clicks on workload 'ex-node-js1'
And user can see sidebar opens with Resources tab selected by default
Then user is able to see resource quota alert
And user is able to see yellow border around 'ex-node-js1' workload
And user is able to see yellow border around 'ex-node-js1' workload


@regression
Scenario: checking background color of deployment node for resource quota alert: T-19-TC04
Given user is at Topology page
When user continously clicks on zoom-out button until it gets maximum zoomed out
Then user is able to see yellow background on workload for resource quota alert


@regression
Scenario: deployment node shows alert when resource quota is reached in list view: T-19-TC05
Given user is at the Topology page
When user clicks on List view button
Then user will see resource quota alert in 'ex-node-js1' list node
Then user will see resource quota alert in 'ex-node-js1' list node
@@ -1,4 +1,4 @@
@topology
@manual @topology
Feature: Resources Groupings in Topology
User will be able to show and hide all types of resources on Topology graph and list view

Expand Down
@@ -1,4 +1,4 @@
@topology
@topology @manual
Feature: Application groupings in topology
As a user, I want to check application groupings

Expand Down

0 comments on commit 98f1f28

Please sign in to comment.