Skip to content

Commit fde7df2

Browse files
Test correction
1 parent b75abb1 commit fde7df2

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

tests/integration/tests/namespace/test-namespace-overview.spec.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,14 @@ context(
3636
cy.contains('Events')
3737
.scrollIntoView()
3838
.should('be.visible');
39-
});
4039

41-
it('checks the visibility of charts', () => {
42-
cy.get('div.item-wrapper').each($parent => {
43-
// Check if the proper charts are visible.
44-
if ($parent.find('.radial-chart-card').length) {
45-
cy.contains('CPU Usage').should('be.visible');
46-
cy.contains('Memory Usage').should('be.visible');
47-
} else {
48-
cy.log('No pods metrics chart found in this wrapper.');
49-
}
50-
});
40+
cy.contains('CPU Usage')
41+
.scrollIntoView()
42+
.should('be.visible');
43+
44+
cy.contains('Memory Usage')
45+
.scrollIntoView()
46+
.should('be.visible');
5147
});
5248
},
5349
);

0 commit comments

Comments
 (0)